/* ==========================================================================
   1. VARIABLES, CONFIGURACIÓN BASE Y TÉCNICA DE FONDOS PREMIUM
   ========================================================================== */
:root {
    --primary: #C0005F;         /* Magenta corporativo de la asociación */
    --primary-dark: #8E0046;    /* Magenta oscuro para interactivos */
    --secondary: #1E293B;      /* Azul pizarra oscuro para textos principales y legibilidad */
    --light-bg: #F8FAFC;       /* Gris Slate ultra-claro institucional */
    --white: #FFFFFF;          /* Blanco puro */
    --dark-blue: #0F172A;      /* Color profundo para fondos de tarjetas e información destacada */
    
    /* Variables de Sombras Suaves (Efecto Elevación Profesional) */
    --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    background-color: var(--white);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* Técnica de Fondo Avanzada: Capas de Micro-Gradientes Esféricos */
section, .about-section, .social-feeds-section, .cv-section, .animakids-section, .contacto-container {
    background-color: var(--light-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(192, 0, 95, 0.02) 0px, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(15, 23, 42, 0.03) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(192, 0, 95, 0.01) 0px, transparent 50%);
}

/* Barra de Scroll Estilizada Corporativa */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* ==========================================================================
   2. ELEMENTOS COMUNES: CABECERA Y BOTÓN "HAZTE SOCIO" OPTIMIZADO
   ========================================================================== */
.header {
    background: rgba(255, 255, 255, 0.96);
    padding: 16px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 25px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.brand-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748B;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    margin-left: 24px;
    font-size: 0.92rem;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-menu a:not(.btn-socios)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.2s ease;
}

.nav-menu a:not(.btn-socios):hover {
    color: var(--primary);
}

.nav-menu a:not(.btn-socios):hover::after {
    width: 100%;
}

/* Espaciado Mejorado del Botón Destacado */
.nav-menu .btn-socios {
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 700 !important;
    margin-left: 35px;
    box-shadow: 0 6px 20px rgba(192, 0, 95, 0.2);
    transition: var(--transition) !important;
}

.btn-socios:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 0, 95, 0.35);
}


/* ==========================================================================
   3. CÓDIGO EXCLUSIVO DE LA PÁGINA: INICIO (INDEX.HTML)
   ========================================================================== */
.hero {
    height: 100vh;
    background: url(../images/img.jpg) no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(192, 0, 95, 0.55) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 0 24px;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    max-width: 900px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 30px auto;
    border-radius: 10px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(192, 0, 95, 0.3);
}

.about-section {
    padding: 100px 10%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: inline-block;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--dark-blue);
}

.about-text p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 18px;
}

.legal-badge {
    background: rgba(192, 0, 95, 0.03);
    padding: 20px 24px;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    margin-top: 30px;
    font-size: 0.95rem;
    font-style: italic;
    color: #334155;
}

.about-image {
    position: relative;
}

.img-responsive {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.image-border {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0.1;
    top: 20px;
    left: -20px;
    border-radius: 16px;
    z-index: 1;
}

.colaboradores {
    padding: 90px 10%;
    text-align: center;
}

.colaboradores h3 {
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-blue);
    font-weight: 800;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-item {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.logo-wrapper {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.logo-item:hover .logo-wrapper img {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-item p {
    font-weight: 700;
    font-size: 0.9rem;
    color: #94A3B8;
}

.news-section {
    padding: 100px 10%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    position: relative;
    height: 230px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-blue);
}

.news-body p {
    color: #64748B;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.social-feeds-section {
    padding: 100px 10%;
}

.social-title {
    text-align: center;
    margin-bottom: 50px;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: center;
}

.feed-container {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.feed-container h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--dark-blue);
}

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

/* ==========================================================================
   4. CÓDIGO EXCLUSIVO DE LA PÁGINA: CURSOS (CURSOS.HTML)
   ========================================================================== */
.cursos-hero {
    display: block; /* Fuerza a que el bloque exista en el flujo */
    width: 100%;
    padding: 180px 10% 100px; /* Más espaciado arriba para empujar el contenido abajo del header fixed */
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    box-sizing: border-box;
    z-index: 1;
}

.cursos-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    color: var(--white);
}

.cursos-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 10%;
    max-width: 1300px;
    margin: 0 auto;
}

.curso-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.curso-image-placeholder {
    width: 100%;
    height: 190px;
    background: #E2E8F0;
    overflow: hidden;
}

.curso-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.curso-card:hover .curso-image-placeholder img {
    transform: scale(1.03);
}

.curso-body {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.curso-body h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    font-weight: 700;
    line-height: 1.3;
}

.btn-info {
    padding: 11px 26px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    align-self: center;
}

.curso-card:hover .btn-info {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(192, 0, 95, 0.2);
}

/* --- Sistema de Ventanas Emergentes (Modales) Estilo Premium --- */
.modal-window {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(8px); 
    z-index: 2000; 
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-window.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-window.active .modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-title-header {
    font-size: 1.8rem;
    color: var(--dark-blue);
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(192, 0, 95, 0.1);
    padding-bottom: 10px;
}

.modal-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-items-list li {
    font-size: 1.05rem;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-items-list li::before {
    content: "•";
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

/* ==========================================================================
   4. CÓDIGO EXCLUSIVO DE LA PÁGINA: CURSOS (CURSOS.HTML)
   ========================================================================== */
.cursos-hero {
    padding: 160px 10% 80px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
}

.cursos-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.cursos-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 10%;
    max-width: 1300px;
    margin: 0 auto;
}

.curso-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.curso-image-placeholder {
    width: 100%;
    height: 190px;
    background: #E2E8F0;
    overflow: hidden;
}

.curso-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.curso-card:hover .curso-image-placeholder img {
    transform: scale(1.03);
}

.curso-body {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.curso-body h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    font-weight: 700;
    line-height: 1.3;
}

.btn-info {
    padding: 11px 26px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    align-self: center;
}

.curso-card:hover .btn-info {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(192, 0, 95, 0.2);
}

/* --- Sistema de Ventanas Emergentes (Modales) Estilo Premium --- */
.modal-window {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Capa oscura translúcida */
    backdrop-filter: blur(8px); /* Difuminado de fondo premium */
    z-index: 2000; /* Por encima de la cabecera fija */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Clase activa controlada por JavaScript */
.modal-window.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-window.active .modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-title-header {
    font-size: 1.8rem;
    color: var(--dark-blue);
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(192, 0, 95, 0.1);
    padding-bottom: 10px;
}

.modal-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-items-list li {
    font-size: 1.05rem;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Viñeta personalizada con el color magenta de la asociación */
.modal-items-list li::before {
    content: "•";
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

/* ==========================================================================
   5. CÓDIGO EXCLUSIVO DE LA PÁGINA: CONTACTO (CONTACTO.HTML) - MEJORADO
   ========================================================================== */
.contacto-hero-section {
    padding-top: 80px; /* Margen para salvar la cabecera fija */
    background-color: var(--light-bg);
}

.contacto-header {
    text-align: center;
    padding: 70px 24px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1e293b 60%, var(--primary) 100%);
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow-md);
}

.contacto-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.contacto-header p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.contacto-container {
    padding: 60px 10%;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: var(--dark-blue);
    padding: 40px;
    border-radius: 16px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.info-card p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.main-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.main-form input, 
.main-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    font-family: inherit;
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.main-form input:focus, 
.main-form textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(192, 0, 95, 0.08);
}

.cv-section {
    padding: 90px 10%;
    text-align: center;
}

.cv-form {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-top: 35px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.cv-form input, 
.cv-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background-color: #F8FAFC;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.cv-form input:focus, 
.cv-form textarea:focus {
    border-color: var(--primary);
    background-color: var(--white);
}

.file-upload {
    border: 2px dashed #CBD5E1;
    background: #F8FAFC;
    padding: 35px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 25px;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(192, 0, 95, 0.01);
}

.btn-cv {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    background-color: var(--primary);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cv:hover {
    background-color: var(--dark-blue);
}

.map-section {
    width: 100%;
    line-height: 0;
}


/* ==========================================================================
   6. CÓDIGO EXCLUSIVO DE LA PÁGINA: ANIMACIÓN (ANIMACION.HTML)
   ========================================================================== */
.animakids-hero {
    height: 70vh;
    background: url('../images/fondo.png') center center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.animakids-hero-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(192, 0, 95, 0.65));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.animakids-hero-content {
    max-width: 800px;
    color: var(--white);
}

.animakids-logo {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.animakids-hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 15px;
    font-weight: 800;
}

.animakids-section {
    padding: 100px 10%;
}

.animakids-header {
    text-align: center;
    margin-bottom: 60px;
}

.animakids-header h2 {
    color: var(--primary);
    font-size: 2.3rem;
}

.animakids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.animakids-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.animakids-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.animakids-card.destacado {
    border-top: 6px solid var(--primary);
}

.animakids-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #E2E8F0;
}

.animakids-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.animakids-card:hover .animakids-image img {
    transform: scale(1.03);
}

.animakids-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.animakids-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
}


/* ==========================================================================
   7. PIE DE PÁGINA TOTALMENTE UNIFORME, EQUILIBRADO Y CONTROLADO
   ========================================================================== */
.footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 70px 10% 30px;
    border-top: 4px solid var(--primary);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    max-height: 55px !important;
    width: auto !important;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    align-self: flex-start;
}

.footer-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94A3B8;
}

.footer-contact h4, 
.footer-social h4 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-contact h4::after, 
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
}

.footer-social {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #94A3B8;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-icon-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: var(--transition);
}

.social-link-item:hover {
    transform: translateX(4px);
    color: var(--white);
}

.social-link-item:hover .social-icon-img {
    filter: brightness(0) invert(1) opacity(1);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #1E293B;
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
}


/* ==========================================================================
   8. REGLAS MULTIMEDIA (MEDIA QUERIES RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
   .header-container {
        display: flex !important;
        flex-direction: row !important; /* Mantiene el logo a la izquierda y el botón a la derecha */
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    /* Mostramos el botón de hamburguesa en móviles */
    .hamburger-button {
        display: flex !important;
       z-index: 1001;
    }

    /* Rediseñamos el menú para que actúe como persiana desplegable */
    .nav-menu {
        display: none;             /* Oculto por defecto */
        flex-direction: column;    /* Los botones se apilan hacia abajo */
        width: 100%;               /* Ocupa todo el ancho */
        background-color: var(--white);
        position: absolute;        /* Se posiciona de forma flotante */
        top: 100%;                 /* Justo debajo de la cabecera */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(15, 23, 42, 0.05);
        border-top: 1px solid #E2E8F0;
        text-align: center;
    }

    /* Estilos para los enlaces del menú en modo desplegado */
    .nav-menu a {
        display: block;
        padding: 12px 0;
        margin-left: 0 !important; /* Eliminamos el espacio horizontal de PC */
        font-size: 1rem;
    }

    /* Adaptación del botón Hazte Socio dentro del menú móvil */
    .nav-menu .btn-socios {
        display: inline-block;
        margin: 10px auto 0 auto;  /* Centrado horizontal */
        padding: 10px 24px;
    }

    /* LA MAGIA: Si el checkbox está marcado, mostramos el menú hacia abajo */
    .menu-toggle-checkbox:checked ~ .nav-menu {
        display: flex;
    }

    /* EFECTO VISUAL OPCIONAL: Transforma las tres rayas en una "X" cuando está abierto */
    .menu-toggle-checkbox:checked ~ .hamburger-button span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle-checkbox:checked ~ .hamburger-button span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-checkbox:checked ~ .hamburger-button span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mantenemos tus grids y columnas adaptables de móvil intactos aquí abajo */
    .about-grid, 
    .contacto-grid, 
    .cv-grid, 
    .logos-grid, 
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .about-section, .news-section, .colaboradores, .social-feeds-section, .cursos-grid, .contacto-container, .cv-section, .animakids-section {
        padding: 60px 6%;
    }
    
    .contacto-header h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2rem; }
}
    
    .about-grid, 
    .contacto-grid, 
    .cv-grid, 
    .logos-grid, 
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .about-section, 
    .news-section, 
    .colaboradores, 
    .social-feeds-section, 
    .cursos-grid, 
    .contacto-container, 
    .cv-section, 
    .animakids-section {
        padding: 60px 6%;
    }
    
    .contacto-header h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Tarjeta Simulada de Instagram Premium */
/* ==========================================================================
   TARJETAS DE REDES SOCIALES PREMIUM (SIMÉTRICAS)
   ========================================================================== */
/* --- Contenedor Principal de Redes Sociales --- */
/* ==========================================================================
   TARJETAS DE REDES SOCIALES PREMIUM (UNIFICADAS Y SIMÉTRICAS)
   ========================================================================== */

.social-feeds-section {
    display: flex;
    flex-wrap: wrap; /* Permite que baje una debajo de otra en móviles */
    gap: 30px; /* Espacio de separación entre ambas tarjetas */
    justify-content: center;
    align-items: center;
    padding: 60px 10%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.social-feeds-section .feed-container {
    flex: 1;
    min-width: 280px; /* Evita que se encojan demasiado en pantallas pequeñas */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- Tarjeta de Instagram --- */
.instagram-mock-card {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.instagram-gradient-bg {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Alinea los elementos al inicio para manejar el flujo */
    padding: 40px 30px; /* Espaciado interno elegante */
    color: var(--white);
    text-align: center;
    box-sizing: border-box;
}

.insta-hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    animation: pulse 2s infinite alternate;
}

.instagram-gradient-bg h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: var(--white);
}

.instagram-gradient-bg p {
    font-size: 0.9rem; /* Un pelín más compacto para mejorar el espacio */
    color: rgba(255, 255, 255, 0.9);
    max-width: 290px;
    margin-bottom: 20px; /* Espacio reducido para evitar desbordes */
    line-height: 1.5;
}

.btn-insta {
    background: var(--white);
    color: #d6249f !important;
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    display: inline-block;
    margin-top: auto; /* Empuja el botón al fondo de la tarjeta */
}

.btn-insta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    background: var(--light-bg);
}

/* --- Tarjeta de Facebook --- */
.facebook-mock-card {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.facebook-gradient-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1877F2 0%, #08449E 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Alinea los elementos al inicio para manejar el flujo */
    padding: 40px 30px; /* Mismo espaciado interno que Instagram */
    color: var(--white);
    text-align: center;
    box-sizing: border-box;
}

.fb-hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    animation: pulseFb 2s infinite alternate;
}

.facebook-gradient-bg h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: var(--white);
}

.facebook-gradient-bg p {
    font-size: 0.9rem; /* Mismo tamaño simétrico */
    color: rgba(255, 255, 255, 0.9);
    max-width: 290px;
    margin-bottom: 20px; /* Mismo margen que Instagram */
    line-height: 1.5;
}

.btn-fb {
    background: var(--white);
    color: #1877F2 !important; /* Fuerza el color azul oficial de Facebook */
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    display: inline-block;
    margin-top: auto; /* Empuja el botón al fondo de la tarjeta quedando a la misma altura */
}

.btn-fb:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    background: var(--light-bg);
}

/* --- Animaciones de las tarjetas --- */
@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes pulseFb {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Ocultar el checkbox por defecto en ordenadores */
.menu-toggle-checkbox {
    display: none;
}

/* Estilos base para el botón hamburguesa (oculto en PC) */
.hamburger-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

/* Las 3 líneas del botón */
.hamburger-button span {
    width: 100%;
    height: 3px;
    background-color: #0F172A !important; /* Forzamos un azul oscuro/negro para que resalte */
    border-radius: 2px;
    transition: var(--transition);
}
