/* ==========================================================================
   MATEMATOCAS - Página de Bienvenida y Portal Oficial
   Hoja de Estilos de la Portada (landing.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES GLOBALES Y CONFIGURACIÓN GENERAL
   -------------------------------------------------------------------------- */
:root {
    --color-primario: #198754;        /* Verde oficial Matematocas / Junta de Andalucía */
    --color-primario-hover: #157347;  /* Verde oscuro para estados interactivos (hover) */
    --color-primario-suave: #e8f5e9;  /* Verde muy claro para fondos de insignias e iconos */
    --color-fondo: #f0f2f5;           /* Fondo grisáceo claro para descanso visual */
    --color-tarjeta: #ffffff;         /* Fondo blanco para tarjetas de contenido */
    --color-texto: #2d3748;           /* Gris oscuro legible para textos principales */
    --color-secundario: #6c757d;      /* Gris medio para textos secundarios y subtítulos */
    --radio-borde: 1rem;              /* Curvatura estándar de las esquinas (16px) */
    --sombra-suave: 0 4px 15px rgba(0, 0, 0, 0.05); /* Sombra elegante para tarjetas */
    --sombra-hover: 0 10px 25px rgba(25, 135, 84, 0.15); /* Sombra destacada al pasar el ratón */
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   2. BARRA DE NAVEGACIÓN SUPERIOR (NAVBAR)
   -------------------------------------------------------------------------- */
.landing-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px); /* Efecto de cristal esmerilado moderno */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.landing-brand {
    font-weight: 700;
    color: var(--color-primario);
    text-decoration: none;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.landing-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   3. SECCIÓN HERO (PORTADA PRINCIPAL)
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 4.5rem 1rem 3rem 1rem;
    text-align: center;
}

.hero-badge {
    background-color: var(--color-primario-suave);
    color: var(--color-primario);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.hero-logo-principal {
    max-width: 220px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
    animation: flotar 4s ease-in-out infinite;
}

/* Animación de flotación suave para el logotipo */
@keyframes flotar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-motto {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.hero-motto span {
    color: var(--color-primario);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-secundario);
    max-width: 680px;
    margin: 0 auto 2rem auto;
}

/* Botón principal destacado con estilo redondeado */
.btn-cta-app {
    background-color: var(--color-primario);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 50rem;
    border: none;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
}

.btn-cta-app:hover {
    background-color: var(--color-primario-hover);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.4);
}

/* --------------------------------------------------------------------------
   4. TARJETAS DE ENLACES EXTERNOS Y ECOSISTEMA
   -------------------------------------------------------------------------- */
.card-enlace {
    background-color: var(--color-tarjeta);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-suave);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card-enlace:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-hover);
    border-color: rgba(25, 135, 84, 0.3);
    color: inherit;
}

/* Iconos de las tarjetas - Diseño minimalista sin fondo y con mayor presencia */
.card-icon-wrapper {
    width: auto;
    height: 64px;
    background: transparent !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2.75rem; /* Iconos más grandes y con mayor visibilidad */
    margin-bottom: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Logotipo de Matematocas en la tarjeta del Proyecto */
.card-icon-wrapper img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.card-enlace:hover .card-icon-wrapper {
    transform: scale(1.1) translateY(-2px);
}

/* Colores directos para los iconos de marca (sin fondo) */
.icon-proyecto {
    color: var(--color-primario);
}

.icon-youtube {
    color: #ff0000; /* Rojo oficial de YouTube */
}

.icon-instagram {
    color: #e1306c; /* Tono característico de Instagram */
}

.icon-aula {
    color: #0d6efd; /* Azul vivo de Aula en Juego */
}

.card-title-custom {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.card-text-custom {
    font-size: 0.92rem;
    color: var(--color-secundario);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.card-action-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-primario);
}

/* --------------------------------------------------------------------------
   5. BANNER DESTACADO PARA EL PROYECTO
   -------------------------------------------------------------------------- */
.banner-proyecto {
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    color: #ffffff;
    border-radius: var(--radio-borde);
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.25);
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.banner-proyecto h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.banner-proyecto p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.btn-banner-proyecto {
    background-color: #ffffff;
    color: var(--color-primario);
    font-weight: 700;
    padding: 0.7rem 1.8rem;
    border-radius: 50rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-banner-proyecto:hover {
    background-color: #f8f9fa;
    color: var(--color-primario-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   6. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.landing-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.5rem 1rem 1.5rem 1rem;
    margin-top: 4rem;
}

.footer-text {
    font-size: 0.88rem;
    color: var(--color-secundario);
}

.footer-links a {
    color: var(--color-secundario);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primario);
}

/* --------------------------------------------------------------------------
   7. ANIMACIONES DE ENTRADA
   -------------------------------------------------------------------------- */
.fade-in-up {
    animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   8. ESTILOS DE MIEMBROS DEL EQUIPO MATEMATOCAS
   -------------------------------------------------------------------------- */
.avatar-docente {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #198754, #20c997);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.2);
}

.bg-rol-equipo {
    background-color: #6f42c1 !important;
    color: #ffffff !important;
}
