/* ==========================================================================
   PALETA DE COLORES PERSONALIZADA - BABY MATER
   ========================================================================== */
:root {
    --primary: #2be66d; 
    --secondary: #09dbc2; 
    --tertiary: #ff996a; 
    --quaternary: #fee055; 
    --crown-gold: #fde24e;
    
    --text-dark: #2D3436;        
    --text-muted: #5A6D74;       
    --bg-creme: #fdfbf7;         
    --white: #ffffff;
    
    --radius-card: 16px;
    --radius-soft: 24px;
    --radius-round: 9999px;
    
    --transition-premium: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: all 0.3s ease;
}

/* ==========================================================================
   RESET Y CONFIGURACIÃ“N BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-creme);
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 2px, transparent 2px);
    background-size: 30px 30px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-handwriting {
    font-family: 'Brown Cookies', cursive;
}

section, .experiences-bg {
    scroll-margin-top: 74px; 
}
@media (min-width: 992px) {
    section, .experiences-bg {
        scroll-margin-top: 74px; 
    }
}

/* ==========================================================================
   HEADER / NAVEGACIÃ“N
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85); /* Más transparencia para ver el Mesh Gradient */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area { text-decoration: none; display: inline-block; }
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.header-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.logo-wrapper:hover .header-logo {
    transform: scale(1.1) rotate(-8deg);
}
.brand-wordmark {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}
.brand-wordmark span { display: inline-block; transition: transform 0.3s ease; }

.brand-wordmark .logo-B1  { color: var(--primary); }
.brand-wordmark .logo-A1  { color: var(--secondary); }
.brand-wordmark .logo-B2  { color: var(--tertiary); }
.brand-wordmark .logo-Y1  { color: var(--quaternary); }
.brand-wordmark .logo-M1  { color: var(--quaternary); }
.brand-wordmark .logo-A2  { color: var(--primary); }
.brand-wordmark .logo-T1  { color: var(--secondary); }
.brand-wordmark .logo-E1  { color: var(--tertiary); }
.brand-wordmark .logo-R1  { color: var(--primary); }

.brand-wordmark span:hover { animation: rubberBand 0.6s infinite alternate; }

@keyframes rubberBand {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.25, 0.75, 1); }
    40% { transform: scale3d(0.75, 1.25, 1); }
    50% { transform: scale3d(1.15, 0.85, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

.nav-menu { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-link:hover { 
    color: var(--primary); 
    transform: translateY(-2px);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.active { 
    color: var(--primary); 
}
.nav-link.active::after {
    width: 100%;
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; }

/* ==========================================================================
   SECCIÃ“N 1: HERO CON COLLAGE DE RETAZOS MEJORADO
   ========================================================================== */
/* ==========================================================================
   SECCIÃ“N 1: HERO CON COLLAGE DE RETAZOS MEJORADO
   ========================================================================== */
.hero-section {
    padding: 7rem 1.5rem 4rem;
    background-color: transparent;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Animaciones de blobs globales para secciones */
@keyframes floatBlobs {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(40px, -40px) scale(1.1) rotate(10deg); }
    66% { transform: translate(-30px, 30px) scale(0.9) rotate(-5deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* Burbujas de acuarela difuminada (Mesh Gradient) */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.35;
    animation: floatBlobs 15s ease-in-out infinite alternate;
}

.hero-section::before {
    width: 500px;
    height: 500px;
    background: var(--primary); /* Verde */
    top: -150px;
    right: -150px;
}

.hero-section::after {
    width: 400px;
    height: 400px;
    background: var(--tertiary); /* Coral */
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

/* Base shape for backgrounds */
.animated-bg {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.25;
    animation: floatBlobs 20s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Quienes Somos Blobs (Yellow/Teal) */
#quienes-somos::before { width: 400px; height: 400px; background: var(--quaternary); top: -150px; left: -100px; }
#quienes-somos::after { width: 350px; height: 350px; background: var(--secondary); bottom: -100px; right: -100px; animation-delay: -5s; }

/* Aulas Blobs (Teal/Coral) */
#aulas::before { width: 450px; height: 450px; background: var(--secondary); top: 150px; right: -150px; }
#aulas::after { width: 400px; height: 400px; background: var(--tertiary); bottom: 50px; left: -150px; animation-delay: -10s; }

/* Experiencias Blobs (Coral/Yellow) */
.experiences-bg::before { width: 500px; height: 500px; background: var(--tertiary); top: 50px; left: -200px; }
.experiences-bg::after { width: 400px; height: 400px; background: var(--quaternary); bottom: -100px; right: -100px; animation-delay: -7s; }

/* Contacto Blobs (Green/Teal) */
#contacto::before { width: 450px; height: 450px; background: var(--primary); top: -150px; right: 50px; }
#contacto::after { width: 350px; height: 350px; background: var(--secondary); bottom: -100px; left: -100px; animation-delay: -3s; }

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem); 
    line-height: 1.15; /* Interlineado muy cÃ³modo */
    margin-bottom: 1.6rem;
    font-weight: 800; /* Negrita limpia */
    letter-spacing: -1.2px; /* Espaciado premium */
    color: var(--text-dark); /* Color sólido sin degradado */
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    font-weight: 500;
    line-height: 1.7; /* Interlineado espacioso */
    letter-spacing: 0px;
}

/* --- Contenedor de Enfoques Estilo Pastilla Premium (como en la imagen) --- */
.dynamic-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.4rem;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1.5px solid #e4e2de;
    width: fit-content;
}

.badge-prefix {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666666;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- BotÃ³n WhatsApp Rectangular con Esquinas Suaves (como en la imagen) --- */
.hero-cta-group { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    align-items: flex-start; 
}

.btn-hero-whatsapp {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 800;
    padding: 1.1rem 2.2rem;
    border-radius: var(--radius-round);
    font-size: 1.05rem;
    letter-spacing: 0px;
    box-shadow: 0 8px 20px rgba(0, 110, 46, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: var(--transition-premium);
}

.btn-hero-whatsapp:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(32, 58, 67, 0.15);
}

.btn-hero-whatsapp:active {
    transform: scale(0.96) translateY(-2px);
}

.cta-arrow-icon {
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-hero-whatsapp:hover .cta-arrow-icon {
    transform: translateX(6px);
}

.cta-subtitle { font-size: 0.85rem; color: #666666; font-weight: 500; padding-left: 0.2rem; }

/* --- HERO IMAGE GRID (MOSAICO 2x2) --- */
.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.hero-image-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.hero-image-grid img:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

/* Bordes orgánicos asimétricos (estilo Experiencias Significativas) */
.hero-image-grid img:nth-child(1) {
    border-top-left-radius: 60px;
}
.hero-image-grid img:nth-child(4) {
    border-bottom-right-radius: 60px;
}

/* Responsividad para móviles */
@media (max-width: 992px) {
    .hero-image-grid { margin-top: 2rem; }
    .hero-image-grid img { height: 180px; }
}

@media (max-width: 480px) {
    .hero-image-grid { gap: 0.8rem; }
    .hero-image-grid img { height: 140px; }
    .hero-image-grid img:nth-child(1) { border-top-left-radius: 40px; }
    .hero-image-grid img:nth-child(4) { border-bottom-right-radius: 40px; }
}

/* --- Animaciones de Entrada --- */
.hero-fade-in { animation: fadeInIntro 1s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.hero-slide-in { animation: slideInIntro 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

@keyframes fadeInIntro {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInIntro {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   SECCIÃ“N 1.5: QUIÃ‰NES SOMOS BABY MATER
   ========================================================================== */
#quienes-somos {
    background-color: rgba(254, 224, 85, 0.12); /* Amarillo pastel */
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-soft);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.about-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-top-left-radius: 80px;
    border-bottom-right-radius: 80px;
    transition: transform 0.4s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

.about-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.about-icon-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-icon-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-soft);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.about-icon-box:hover {
    transform: translateY(-5px);
}

.brand-wordmark {
    line-height: 1;
    display: flex;
    align-items: center;
    letter-spacing: -1px;
}
.crown-icon {
    will-change: transform;
}

.icon-circle {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    will-change: transform;
}

.about-icon-box h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.about-icon-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Colores Específicos para Pilares */
.box-green { border-bottom: 4px solid var(--primary); }
.box-green:hover { box-shadow: 0 10px 30px rgba(43, 230, 109, 0.15); }
.box-green .icon-circle { background: rgba(43, 230, 109, 0.25); }
.box-green:hover .icon-circle { transform: scale(1.1) rotate(-5deg); }

.box-teal { border-bottom: 4px solid var(--secondary); }
.box-teal:hover { box-shadow: 0 10px 30px rgba(9, 219, 194, 0.15); }
.box-teal .icon-circle { background: rgba(9, 219, 194, 0.25); }
.box-teal:hover .icon-circle { transform: scale(1.1) rotate(5deg); }

.box-coral { border-bottom: 4px solid var(--tertiary); }
.box-coral:hover { box-shadow: 0 10px 30px rgba(255, 153, 105, 0.15); }
.box-coral .icon-circle { background: rgba(255, 153, 105, 0.25); }
.box-coral:hover .icon-circle { transform: scale(1.1) rotate(-5deg); }

.box-yellow { border-bottom: 4px solid var(--quaternary); }
.box-yellow:hover { box-shadow: 0 10px 30px rgba(254, 224, 85, 0.15); }
.box-yellow .icon-circle { background: rgba(254, 224, 85, 0.25); }
.box-yellow:hover .icon-circle { transform: scale(1.1) rotate(5deg); }

@media (max-width: 992px) {
    .about-image { height: 350px; }
    .about-icon-box-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECCIÃ“N 2: AULAS (ESTILOS Y ANIMACIONES OPTIMIZADAS)
   ========================================================================== */
#aulas {
    background-color: rgba(9, 219, 194, 0.05); /* Turquesa muy suave */
}

.section-padding { 
    padding: 40px 1.5rem 60px; 
}
@media (min-width: 992px) {
    .section-padding { 
        padding: 60px 1.5rem 80px; 
    }
}

.section-title { 
    text-align: center; 
    font-size: clamp(2.2rem, 4.5vw, 2.8rem); 
    margin-bottom: 3.5rem; 
    font-weight: 900; 
    color: var(--text-dark); 
    letter-spacing: -1px;
}
.section-title span { 
    /* Colores dinámicos gestionados por clases utilitarias */
}

/* Clases Utilitarias para Títulos */
.text-teal { color: var(--secondary) !important; }
.text-coral { color: var(--tertiary) !important; }
.text-yellow { color: var(--quaternary) !important; }
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 8px;
    background: rgba(0, 0, 0, 0.08); /* Línea sólida, redondeada y amigable */
    margin: 0.8rem auto 0;
    border-radius: var(--radius-round);
}

.programs-grid { 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Tarjeta Base MetamÃ³rfica */
.card { 
    background: var(--white); 
    border-radius: 2rem; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(32, 58, 67, 0.04); 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease, border-bottom 0.4s ease; 
}

.card-pollitos {
    border: 1px solid rgba(255, 223, 86, 0.2); 
    border-bottom: 4px solid rgba(255, 223, 86, 0.5);
}
.card-pollitos:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 22px 40px rgba(255, 223, 86, 0.22); 
    border-color: rgba(255, 223, 86, 0.4); 
    border-bottom: 10px solid var(--quaternary);
}

.card-img-wrapper { height: 260px; width: 100%; overflow: hidden; position: relative; }
.card-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: var(--transition-premium); }
.card:hover .card-img { transform: scale(1.05); }

.card-content { padding: 2.2rem 2rem; display: flex; flex-direction: column; flex-grow: 1; }

/* TipografÃ­a de TÃ­tulos de Aulas */
.card-content h3 { 
    font-size: 1.65rem; 
    color: var(--text-dark); 
    font-weight: 800; 
    letter-spacing: -0.5px;
}

/* Badge de Edad Estilizado para Aula Pollitos */
.age-badge { 
    display: inline-block; 
    align-self: flex-start; 
    padding: 0.5rem 1.2rem; 
    border-radius: var(--radius-round); 
    font-weight: 700; 
    font-size: 0.85rem; 
    margin-top: 0.6rem; 
    margin-bottom: 1.4rem; 
    letter-spacing: 0.2px;
}
.age-pollitos {
    background-color: rgba(255, 223, 86, 0.15); 
    color: #856404;
    border: 1px solid rgba(255, 223, 86, 0.3);
}

.card-intro-text { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem; 
    font-weight: 500;
    line-height: 1.6;
}

/* CONTENEDOR DESPLEGABLE CON ANIMACIÃ“N CÃ“MODA */
.details-panel { 
    max-height: 0; 
    overflow: hidden; 
    opacity: 0; 
    visibility: hidden; 
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, padding 0.4s ease; 
    border-radius: 18px; 
}

.details-panel.open { 
    max-height: 500px; /* Suficiente espacio para los 7 Ã­tems */
    opacity: 1; 
    visibility: visible; 
    margin-bottom: 1.6rem; 
    padding: 1.4rem; 
    border-radius: 18px; 
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, padding 0.4s ease; 
}

.card-pollitos .details-panel.open {
    border: 2px dashed var(--quaternary); 
    background-color: #FFFDF2; 
}

.card-gatitos .details-panel.open {
    border: 2px dashed var(--tertiary); 
    background-color: #FFF8F5; 
}

.card-creativos .details-panel.open {
    border: 2px dashed var(--secondary); 
    background-color: #F2FFFD; 
}

.program-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

/* Lista de Ã­tems en mayÃºsculas estÃ©ticas */
.classroom-program-list, .kittens-program-list, .creative-program-list { 
    list-style: none; 
    padding-left: 0;
}
.classroom-program-list li, .kittens-program-list li, .creative-program-list li { 
    margin-bottom: 0.6rem; 
    position: relative; 
    padding-left: 1.8rem; 
    font-size: 0.9rem; 
    font-weight: 700; 
    text-transform: uppercase; /* Convierte el texto a mayÃºsculas elegantes */
    color: #555e61;
}

/* Icono animado de pollito como viÃ±eta */
.classroom-program-list li::before { 
    content: '🐣'; 
    position: absolute; 
    left: 0; 
    top: -1px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.card:hover .classroom-program-list li::before {
    transform: scale(1.15) rotate(5deg);
}

/* Botones Personalizados */
.btn-outline { 
    background: transparent; 
    border: 2.5px solid var(--secondary); 
    color: var(--secondary); 
    width: 100%; 
    justify-content: center; 
    font-weight: 800;
    padding: 0.9rem;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: var(--transition-premium);
}
.btn-outline:active {
    transform: scale(0.96);
}
.btn-pollitos {
    border-color: var(--quaternary);
    color: #856404;
}
.btn-pollitos:hover {
    background: var(--quaternary);
    color: var(--text-dark);
    border-color: var(--quaternary);
    box-shadow: 0 8px 20px rgba(255, 223, 86, 0.3);
}
/* --- PersonalizaciÃ³n Aula Gatitos (Cartilla 2) --- */
.card-gatitos {
    border: 1px solid rgba(255, 153, 105, 0.2); 
    border-bottom: 4px solid rgba(255, 153, 105, 0.5);
}
.card-gatitos:hover {
    transform: translateY(-12px);
    box-shadow: 0 22px 40px rgba(255, 153, 105, 0.22);
    border-color: rgba(255, 153, 105, 0.4);
    border-bottom: 10px solid var(--tertiary);
}

.age-gatitos {
    background-color: rgba(255, 153, 105, 0.15);
    color: #a14b21;
    border: 1px solid rgba(255, 153, 105, 0.3);
}

/* --- Iconos y Animaciones para Aula Gatitos --- */
.kittens-program-list li::before {
    content: '🐱'; /* Cambiado a carita de gatito */
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* AnimaciÃ³n: El gatito se inclina con curiosidad al hacer hover */
.card-gatitos:hover .kittens-program-list li::before {
    transform: scale(1.2) rotate(15deg);
}

.btn-gatitos {
    border-color: var(--tertiary);
    color: #a14b21;
}

.btn-gatitos:hover {
    background: var(--tertiary);
    color: var(--white);
    border-color: var(--tertiary);
    box-shadow: 0 8px 20px rgba(255, 153, 105, 0.3);
}


/* --- PersonalizaciÃ³n Aula Creativos (Cartilla 3) --- */
.card-creativos {
    border: 1px solid rgba(9, 219, 194, 0.2); 
    border-bottom: 4px solid rgba(9, 219, 194, 0.5);
}
.card-creativos:hover {
    transform: translateY(-12px);
    box-shadow: 0 22px 40px rgba(9, 219, 194, 0.22);
    border-color: rgba(9, 219, 194, 0.4);
    border-bottom: 10px solid var(--secondary);
}

.age-creativos {
    background-color: rgba(9, 219, 194, 0.15);
    color: #006b5e;
    border: 1px solid rgba(9, 219, 194, 0.3);
}

/* Etiqueta especial para el servicio de aprestamiento */
.service-badge-aprestamiento {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #007dcf;
    background-color: rgba(0, 125, 207, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 1.2rem;
    border: 1px dashed rgba(0, 125, 207, 0.3);
}

/* --- Iconos y Animaciones para Aula Creativos --- */
.creative-program-list li::before {
    content: '🎨'; /* Cambiado a paleta de pintor / mezclador de pintura */
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* AnimaciÃ³n: La paleta hace un giro sutil simulando el trazo de un pincel */
.card-creativos:hover .creative-program-list li::before {
    transform: scale(1.2) rotate(-20deg) translateY(-1px);
}

.btn-creativos {
    border-color: var(--secondary);
    color: #006b5e;
}

.btn-creativos:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(9, 219, 194, 0.3);
}

/* ==========================================================================
   DIVIDER ONDULADO Y EXPERIENCIAS
   ========================================================================== */
.wave-container { width: 100%; overflow: hidden; line-height: 0; background-color: var(--bg-creme); }
.wave-container svg { position: relative; display: block; width: calc(100% + 1.3px); height: 60px; }
.wave-bg { fill: rgba(255, 223, 86, 0.08); }

.experiences-bg { 
    background-color: rgba(255, 153, 105, 0.05); /* Coral pastel */
    padding: 40px 1.5rem 60px; 
}
@media (min-width: 992px) {
    .experiences-bg {
        padding: 60px 1.5rem 80px;
    }
}

.experiences-grid { max-width: 1200px; margin: 0 auto; }

/* Efecto Polaroid para la GalerÃ­a de Fotos */
.exp-item { 
    background: var(--white); 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(32, 58, 67, 0.06); 
    display: flex; 
    flex-direction: column; 
    will-change: transform;
    padding: 12px; /* Efecto borde fotogrÃ¡fico Polaroid de 12px */
    transition: var(--transition-premium); 
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

/* InclinaciÃ³n orgÃ¡nica alternante de Polaroid */
.experiences-grid > div:nth-child(4n+1) .exp-item { transform: rotate(-1.5deg); }
.experiences-grid > div:nth-child(4n+2) .exp-item { transform: rotate(1deg); }
.experiences-grid > div:nth-child(4n+3) .exp-item { transform: rotate(-1deg); }
.experiences-grid > div:nth-child(4n+4) .exp-item { transform: rotate(1.5deg); }

.exp-item:hover { 
    transform: translateY(-12px) scale(1.03) rotate(0deg); 
    box-shadow: 0 20px 45px rgba(32, 58, 67, 0.16); 
    z-index: 10;
}
.exp-item:active {
    transform: translateY(-10px) scale(0.98) rotate(0deg);
}

.exp-img-box { width: 100%; height: 200px; border-radius: 8px; overflow: hidden; position: relative; }
.exp-img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.exp-item:hover .exp-img-box img {
    transform: scale(1.08);
}
.exp-text { padding: 1.2rem 0.5rem 0.5rem 0.5rem; }
.exp-text h3 { font-size: 1.35rem; margin-bottom: 0.5rem; font-weight: 700; }

.exp-item:nth-child(1) h3 { color: var(--tertiary); }
.exp-item:nth-child(2) h3 { color: var(--secondary); }
.exp-item:nth-child(3) h3 { color: var(--primary); }
.exp-item:nth-child(4) h3 { color: #d4a300; }

.reveal-element { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-element.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   SECCIÃ“N 4: CONTACTO
   ========================================================================== */
#contacto {
    background-color: rgba(43, 230, 109, 0.05); /* Verde pastel suave */
}

.contact-form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(32, 58, 67, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.contact-form-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}
.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.custom-input {
    border: 2px solid #e4e2de; /* light grey-cream */
    border-radius: 8px; /* 0.5rem standard radius */
    padding: 0.75rem 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--white);
    transition: var(--transition-smooth);
}
.custom-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(9, 219, 194, 0.15);
    outline: none;
}
select.custom-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232D3436' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px;
    padding-right: 2.5rem;
}
.btn-submit-form {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: var(--radius-round);
    border: none;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0, 110, 46, 0.2);
    transition: var(--transition-premium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-submit-form:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(32, 58, 67, 0.2);
}
.btn-submit-form:hover .submit-arrow {
    transform: translateX(4px);
}
.btn-submit-form:active {
    transform: scale(0.96) translateY(-1px);
}

.contact-info-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.2rem 2rem;
    box-shadow: 0 10px 30px rgba(32, 58, 67, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.info-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.info-links-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.info-links-stack .info-link {
    margin-bottom: 0;
}

.contact-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.info-link { display: flex; align-items: center; gap: 1.2rem; text-decoration: none; color: var(--text-dark); padding: 1.2rem; background: var(--white); border-radius: 20px; box-shadow: 0 8px 22px rgba(32, 58, 67, 0.03); transition: var(--transition-premium); }
.color-link-teal { border-left: 6px solid var(--secondary); }
.color-link-coral { border-left: 6px solid var(--tertiary); }
.color-link-yellow { border-left: 6px solid var(--quaternary); }
.info-link:hover { transform: translateX(8px) scale(1.01); box-shadow: 0 12px 25px rgba(32, 58, 67, 0.07); }
.info-link:active { transform: scale(0.98) translateX(6px); }
.static-link:hover { transform: none; box-shadow: 0 8px 22px rgba(32, 58, 67, 0.03); }

.info-icon { 
    width: 46px; 
    height: 46px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    background-color: var(--bg-creme); 
    position: relative; 
    flex-shrink: 0; 
    transition: var(--transition-smooth); 
}

.info-icon i, .info-icon svg {
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.color-link-teal .info-icon { color: var(--secondary); }
.color-link-coral .info-icon { color: var(--tertiary); }
.color-link-yellow .info-icon { color: #856404; background-color: rgba(255, 223, 86, 0.2); }

.color-link-teal:hover .info-icon { 
    background-color: var(--secondary); 
    color: var(--white); 
}
.color-link-coral:hover .info-icon { 
    background-color: var(--tertiary); 
    color: var(--white); 
}

.info-text-wrapper { display: flex; flex-direction: column; }
.info-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.info-value { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); }

.contact-banner-card { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--quaternary) 100%); 
    padding: 2.5rem 2rem; 
    border-radius: 24px; 
    color: var(--white); 
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 110, 46, 0.15); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 992px) {
    .contact-banner-card {
        padding: 3rem 2.5rem;
    }
}
.contact-banner-card h4 { font-size: 1.8rem; margin-bottom: 0.8rem; font-weight: 800; color: var(--white); }
.contact-banner-card p { font-size: 0.95rem; margin-bottom: 1.8rem; font-weight: 500; color: rgba(255,255,255,0.9); line-height: 1.6; }
.banner-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--tertiary);
    color: var(--white);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-round);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(255, 153, 105, 0.4);
    animation: pulseBadge 2s infinite alternate;
}
@keyframes pulseBadge {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}
.btn-banner-cta { 
    background-color: var(--tertiary); 
    color: var(--white) !important; 
    font-weight: 800; 
    padding: 1rem 2.2rem;
    border-radius: var(--radius-round);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    transition: var(--transition-premium);
}
.btn-banner-cta:hover { 
    background-color: var(--text-dark); 
    color: var(--white) !important; 
    transform: translateY(-3px); 
    box-shadow: 0 12px 25px rgba(32, 58, 67, 0.2); 
}
.btn-banner-cta:active {
    transform: scale(0.96) translateY(-1px);
}

/* ==========================================================================
   SISTEMA RESPONSIVE INTEGRAL
   ========================================================================== */
.container {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .container {
        max-width: 960px;
        padding-right: 80px;
        padding-left: 80px;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1024px) {
    .hero-cta-group { align-items: center; }
    .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; width: 100%; background: var(--white);
        flex-direction: column; padding: 2rem; gap: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 4px solid var(--secondary); display: none;
    }
    .nav-menu.active { display: flex; }
    .hero-section { padding-top: 8rem; }
    .nav-link::after { display: none; }
    .nav-link { width: 100%; text-align: center; padding: 0.6rem 0; }
}

@media (max-width: 480px) {
    .brand-wordmark { font-size: 1.6rem; }
    .contact-banner h4 { font-size: 1.7rem; }
}

/* ==========================================================================
   BOTÃ“N VOLVER ARRIBA
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(9, 219, 194, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.scroll-to-top:hover {
    background-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 110, 46, 0.4);
    transform: translateY(-5px);
    color: var(--white);
}
.scroll-to-top:active {
    transform: scale(0.9) translateY(-3px);
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-creme);
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 2px, transparent 2px);
    background-size: 30px 30px;
    padding: 1rem 1.5rem 0.5rem;
    border-top: none;
    border-radius: 20px 20px 0 0;
    margin-top: -10px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.02);
}
.footer-logo {
    font-size: 1.8rem;
    display: inline-block;
}
.footer-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    max-width: 280px;
    line-height: 1.5;
}
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.footer-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.footer-nav a:hover { color: var(--primary); }
.footer-social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
@media (min-width: 768px) {
    .footer-social-links { justify-content: flex-end; }
    .footer-text { margin: 0.5rem 0 0 0; text-align: left; }
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(0,0,0,0.03);
    color: var(--text-dark);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-premium);
}
.social-icon:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(43, 230, 109, 0.3);
}
.social-icon[aria-label="Instagram"]:hover { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.3); 
}
.social-icon[aria-label="TikTok"]:hover { 
    background-color: var(--text-dark); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
}
.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
