/* ESTRUCTURA EDUCACIÓN INFANTIL - JAIME SAN SEGUNDO VILLANUEVA */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800;900&family=Quicksand:wght@400;600;700&display=swap');

:root {
    --kid-primary: #10B981;   /* Verde menta (Naturaleza, crecimiento) */
    --kid-secondary: #3B82F6; /* Azul cielo (Calma, seguridad) */
    --kid-accent: #F59E0B;    /* Ámbar/Amarillo (Alegría, creatividad) */
    --kid-bg: #FDF8F5;        /* Fondo muy suave y cálido */
    --text-main: #374151;     /* Gris oscuro para legibilidad */
    --white: #FFFFFF;
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', system-ui, sans-serif; background-color: var(--kid-bg); color: var(--text-main); line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Quicksand', sans-serif; color: var(--kid-secondary); font-weight: 700; }

/* CABECERA ALEGRE Y LIMPIA */
header { background: var(--white); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-bottom: 4px solid var(--kid-accent); }
.brand h1 { font-size: 2.2rem; color: var(--kid-primary); font-weight: 900; letter-spacing: -0.5px; }
.brand h1 span { color: var(--kid-accent); }
.brand p { font-size: 0.9rem; color: #6B7280; font-family: 'Nunito', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
nav { display: flex; gap: 30px; align-items: center; }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 800; font-size: 1rem; transition: var(--transition); position: relative; padding: 5px 0; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0; background-color: var(--kid-primary); transition: var(--transition); border-radius: 2px; }
.nav-links a:hover { color: var(--kid-primary); }
.nav-links a:hover::after { width: 100%; }
.lang-selector { padding: 8px 16px; background: var(--kid-secondary); border: none; color: var(--white); font-weight: 800; border-radius: 20px; cursor: pointer; transition: var(--transition); font-family: 'Nunito', sans-serif; }
.lang-selector:hover { background: var(--kid-primary); transform: scale(1.05); }

/* HERO (VÍDEO LOCAL DE FONDO) */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: flex-start; padding: 0 5%; overflow: hidden; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: brightness(60%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin-top: 60px; padding: 50px; background: rgba(255, 255, 255, 0.95); border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-left: 8px solid var(--kid-primary); }
.hero-content h2 { font-size: 3.5rem; color: var(--kid-secondary); line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 1.25rem; color: var(--text-main); font-weight: 600; }

/* BLOQUES DE CONTENIDO */
.content-block { padding: 100px 5%; max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.content-block.full { grid-template-columns: 1fr; max-width: 1000px; text-align: center; }
.content-block h2 { font-size: 2.8rem; margin-bottom: 30px; position: relative; padding-bottom: 15px; color: var(--kid-secondary); }
.content-block h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 70px; height: 5px; background: var(--kid-accent); border-radius: 5px; }
.content-block.full h2::after { left: 50%; transform: translateX(-50%); }
.content-block p { font-size: 1.15rem; margin-bottom: 20px; text-align: justify; }

/* SERVICIOS: REGLA ESTRICTA -> SOLO TÍTULOS E IMÁGENES EXTERNAS ESTABLES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; width: 100%; }
.service-card { position: relative; height: 320px; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: var(--kid-secondary); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border: 3px solid var(--white); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.6s ease; filter: brightness(60%); }
.service-card:hover img { transform: scale(1.08); filter: brightness(40%); }
.service-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(59,130,246,0.95) 0%, rgba(59,130,246,0) 70%); z-index: 2; pointer-events: none; }
.service-card h3 { position: relative; z-index: 3; color: var(--white); font-size: 1.4rem; font-weight: 800; text-align: center; padding: 25px 20px; width: 100%; font-family: 'Quicksand', sans-serif; }

/* TESTIMONIOS: REGLA ESTRICTA -> 100% ANÓNIMOS */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-top: 40px; }
.testimonial-card { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.04); position: relative; border-bottom: 5px solid var(--kid-accent); text-align: left; }
.testimonial-card p { font-size: 1.15rem; font-style: italic; color: var(--text-main); position: relative; z-index: 1; font-weight: 600; }
.testimonial-card::before { content: '”'; position: absolute; top: 5px; right: 25px; font-family: 'Quicksand', serif; font-size: 6rem; color: #FEF3C7; line-height: 1; z-index: 0; }

/* FAQ: REGLA ESTRICTA -> EXACTAMENTE 2 PREGUNTAS (H3 + P) */
.faq-container { background: var(--white); padding: 50px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.04); text-align: left; border-left: 8px solid var(--kid-primary); margin-top: 40px; }
.faq-item { margin-bottom: 40px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item h3 { color: var(--kid-secondary); font-size: 1.5rem; margin-bottom: 15px; font-weight: 800; }
.faq-item p { font-size: 1.15rem; color: var(--text-main); }

/* FOOTER DESPLEGADO ÍNTEGRAMENTE */
footer { background-color: var(--white); padding: 70px 5% 30px; margin-top: 80px; color: var(--text-main); border-top: 4px solid var(--kid-secondary); box-shadow: 0 -10px 20px rgba(0,0,0,0.02); }
.footer-columns { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; max-width: 1300px; margin: 0 auto 40px; }
.footer-columns > div { flex: 1; min-width: 220px; }
.footer-columns h4 { color: var(--kid-primary); font-size: 1.3rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.footer-columns p { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.footer-menu-links { list-style: none; }
.footer-menu-links li { margin-bottom: 12px; }
.footer-menu-links a { color: var(--text-main); text-decoration: none; font-size: 1.05rem; transition: var(--transition); display: block; font-weight: 600; }
.footer-menu-links a:hover { color: var(--kid-accent); padding-left: 5px; }

/* LOGO KIT DIGITAL */
.logo-kit-centered { display: block; margin: 0 auto 30px; max-width: 350px; width: 100%; height: auto; background-color: transparent; }
.footer-legal-text { text-align: center; color: #9CA3AF; font-size: 0.95rem; border-top: 2px solid #F3F4F6; padding-top: 25px; width: 100%; font-weight: 600; }