/* --- VARIABLES ESTILO APPLE --- */
:root {
    --purple: #5E8C3A;  /* Verde (sustituye al morado) */ 
    --purple-hover: #496E2C;
    --bg-dark: #000000;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --text-dark: #1d1d1f;
    --text-light: #f5f5f7;
    --text-gray: #86868b;
    
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    line-height: 1.5; 
    background-color: var(--bg-dark); 
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; letter-spacing: -0.03em; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.bg-light { background-color: var(--bg-light); color: var(--text-dark); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
section { padding: 120px 0; }

/* --- ANIMACIONES APPLE REVEAL --- */
.js-active .apple-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(5px);
    transition: all 1.2s var(--ease-apple);
}
.js-active .apple-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
.js-active .delay-1 { transition-delay: 0.1s; }
.js-active .delay-2 { transition-delay: 0.2s; }
.js-active .delay-3 { transition-delay: 0.3s; }
.js-active .delay-4 { transition-delay: 0.4s; }

/* --- NAVEGACIÓN --- */
nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0; z-index: 1000;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2.5rem; font-size: 0.85rem; font-weight: 500; }
.nav-links a { color: var(--text-gray); transition: color 0.3s; }
.nav-links a:hover { color: var(--text-light); }

/* --- BOTONES --- */
.btn {
    display: inline-block; padding: 14px 28px; font-weight: 600; font-size: 0.9rem;
    border-radius: 980px; transition: all 0.3s var(--ease-apple); cursor: pointer; text-align: center;
}
.btn-primary { background-color: var(--purple); color: white; border: none; }
.btn-primary:hover { background-color: var(--purple-hover); transform: scale(1.02); }
.btn-outline { background-color: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background-color: white; color: black; }
.btn-nav { padding: 8px 16px; font-size: 0.8rem; background: rgba(255,255,255,0.1); border-radius: 980px; }
.btn-nav:hover { background: white; color: black; }
.btn-link { color: var(--purple); padding: 0; font-weight: 600; display: inline-block; margin-top: 10px; }
.btn-link:hover { color: var(--purple-hover); text-decoration: underline; }
.btn-block { width: 100%; display: block; }

/* --- PORTADA --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=2070') center/cover;
}
/* Título en 2 líneas forzado */
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.1; margin-bottom: 1rem; }
.hero h1 span { color: var(--purple); }
.hero p { font-size: 1.3rem; color: var(--text-gray); margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* --- STATEMENT --- */
.statement { padding: 60px 0; text-align: center; border-bottom: 1px solid #222; }
.statement h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-style: italic; color: var(--text-gray); font-weight: 500; }

/* --- TÍTULOS GLOBALES --- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3.5rem; margin-bottom: 0.5rem; }
.section-header p { font-size: 1.2rem; color: var(--text-gray); }
.subtitle { color: var(--purple); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1rem; }

/* --- SOBRE MÍ --- */
.about { border-bottom: 1px solid #222; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img { width: 100%; height: 500px; object-fit: cover; border-radius: 24px; }
.about-text h2 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.1; }
.about-text h2 span { color: var(--purple); }
.about-text p { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 1.5rem; }

/* --- BENTO GRID (PILARES TIPO APPLE) --- */
/* --- BENTO GRID REPARADO (TUS ESTILOS BASE ORIGINALES) --- */
.pillars { 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(2, 250px); 
    gap: 20px; 
}

.bento-box {
    background: var(--bg-white); 
    border-radius: 24px; 
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    border: 1px solid rgba(0,0,0,0.02);
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    transition: transform 0.4s var(--ease-apple);
}

.bento-box:hover { 
    transform: scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}

.bento-box h3 { 
    font-size: 2rem; 
    color: var(--purple); 
    margin-bottom: 1rem; 
}

.bento-box p { 
    color: var(--text-gray); 
    font-size: 1.1rem; 
}

/* --- LA DISTRIBUCIÓN DE LAS 4 CAJAS SIN OCULTAR NADA --- */

/* 1. Disciplina: Ocupa 2 columnas de ancho y 1 fila de alto */
.bento-box:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
}

/* 2. Constancia: Ocupa 1 columna de ancho y 2 filas de alto (Columna derecha) */
.bento-box:nth-child(2) {
    grid-column: span 1;
    grid-row: span 2;
}

/* 3. Progreso: Ocupa 1 columna abajo a la izquierda */
.bento-box:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

/* 4. Hábitos: Ocupa 1 columna abajo en el centro */
.bento-box:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
}

/* Forzar que todas las clases del HTML se muestren siempre */
.bento-large, .bento-medium-tall, .bento-medium-wide, .bento-small {
    display: flex !important; 
}

/* Layout del Bento */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-medium-tall { grid-column: 3; grid-row: span 2; }
.bento-medium-wide { grid-column: span 2; grid-row: 2; display: none; /* Ajuste para mantener la limpieza */ }
.bento-small { display: none; }

/* Redefinición del layout bento para 4 elementos exactos */
.bento-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.bento-box:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.bento-box:nth-child(2) { grid-column: 2; grid-row: 1; }
.bento-box:nth-child(3) { grid-column: 2; grid-row: 2; }
.bento-box:nth-child(4) { grid-column: 1 / 3; text-align: center; align-items: center;}

/* --- MÉTODO (FLEXBOX PARA ALTERNAR) --- */
.method-row { display: flex; align-items: center; gap: 5rem; margin-bottom: 8rem; }
/* La clase row-reverse fuerza la imagen a la derecha y texto a la izq */
.method-row.row-reverse { flex-direction: row-reverse; }
.method-row > div { flex: 1; }

.method-img-box img { width: 100%; height: 450px; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.method-text-box .number { font-family: 'Montserrat'; font-size: 5rem; font-weight: 900; color: var(--purple); opacity: 0.2; line-height: 1; margin-bottom: -10px; }
.method-text-box h3 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-dark); }
.method-text-box p { color: var(--text-gray); font-size: 1.15rem; }


/* --- SERVICIOS (IMÁGENES CORREGIDAS) --- */
.service-card {
    display: flex; background: var(--bg-white); border-radius: 24px; overflow: hidden;
    margin-bottom: 3rem; box-shadow: 0 10px 40px rgba(0,0,0,0.04); transition: transform 0.4s var(--ease-apple);
}
.service-card:hover { transform: scale(1.01); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.service-img-container { flex: 1; }
.service-img-container img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; display: block;}
.service-info { flex: 1.2; padding: 4rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.service-info .tag { color: var(--purple); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.service-info h3 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-dark); }
.service-info p { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 2rem; }
.check-list { list-style: none; margin-bottom: 2.5rem; width: 100%; }
.check-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 0.8rem; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 10px;}
.check-list li::before { content: '✓'; color: var(--purple); font-weight: bold; }

/* --- CALENDARIO NATIVO --- */
.calendar-app {
    display: flex; background: var(--bg-white); border-radius: 24px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05);
    max-width: 900px; margin: 0 auto;
}
.calendar-left { flex: 1; padding: 2rem; border-right: 1px solid rgba(0,0,0,0.05); }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.cal-header h4 { font-size: 1.2rem; }
.cal-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--purple); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.8rem; color: var(--text-gray); margin-bottom: 1rem; font-weight: 600; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day-btn { aspect-ratio: 1; border: none; background: transparent; border-radius: 50%; font-size: 1rem; cursor: pointer; transition: 0.2s; font-family: 'Inter'; }
.day-btn:hover:not(:empty) { background: rgba(94, 140, 58, 0.1); color: var(--purple); }
.day-btn.selected { background: var(--purple); color: white; font-weight: bold; }

.calendar-right { flex: 1; padding: 2rem; background: #fafafa; display: flex; flex-direction: column; }
.calendar-right h4 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.time-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.time-btn { padding: 12px; border: 1px solid rgba(0,0,0,0.1); background: white; border-radius: 8px; cursor: pointer; transition: 0.2s; font-family: 'Inter'; font-weight: 500; }
.time-btn:hover { border-color: var(--purple); color: var(--purple); }
.time-btn.selected { background: rgba(94, 140, 58, 0.1); border-color: var(--purple); color: var(--purple); font-weight: bold; }
.empty-state { color: var(--text-gray); font-size: 0.9rem; grid-column: span 2; text-align: center; padding: 2rem 0; }

/* --- CONTACTO --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: center;}
.contact-text h2 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.1; }
.contact-text h2 span { color: var(--text-gray); }
.contact-text p { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 3rem; }
.info-group { display: flex; gap: 3rem; }
.info-item h5 { color: var(--text-gray); margin-bottom: 0.2rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.info-item p { font-size: 1.1rem; font-weight: 500; }

.contact-form-box { background: #111111; padding: 1rem; border-radius: 24px; border: 1px solid rgba(255,255,255,0.05); }
.form-control { margin-bottom: 1.5rem; }
.form-control input, .form-control textarea {
    width: 100%; padding: 16px; background: #000; border: 1px solid #333;
    color: white; border-radius: 12px; font-family: 'Inter', sans-serif; transition: all 0.3s;
}
.form-control input:focus, .form-control textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(94, 140, 58, 0.2); }
.form-control textarea { height: 120px; resize: none; }

/* --- FOOTER APPLE --- */
footer { background: #000; padding: 4rem 0 2rem; border-top: 1px solid #111; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-gray); max-width: 300px; }
.footer-links h4 { color: white; margin-bottom: 1.5rem; font-size: 1rem; }
.footer-links a { display: block; margin-bottom: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #222; padding-top: 2rem; color: var(--text-gray); }


/* --- 1. VARIABLES GLOBALES Y RESET --- */
:root {
    --purple: #5E8C3A;  /* Verde (sustituye al morado) */ 
    --purple-hover: #496E2C;
    --bg-dark: #000000;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --bg-input: #1d1d1f; 
    --text-dark: #1d1d1f;
    --text-light: #f5f5f7;
    --text-gray: #86868b;
    --accent: #0071e3;
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    line-height: 1.5; 
    background-color: var(--bg-dark); 
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
}

/* --- 2. NAVEGACIÓN Y PORTADA --- */
nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0; z-index: 1000;
}
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }

/* --- 3. CALENDARIO Y FORMULARIOS (APPLE PREMIUM) --- */
.calendar-app {
    display: flex; background: var(--bg-white); border-radius: 24px; 
    overflow: hidden; max-width: 900px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Inputs y Textareas - Color corregido */
#booking-form input, 
#booking-form textarea {
   
    color: black !important;
    border: 1px solid #333333 !important;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#booking-form input:focus, 
#booking-form textarea:focus {
    border-color: var(--accent) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3);
}

#booking-form input::placeholder, 
#booking-form textarea::placeholder {
    color:black !important;
}

/* Botón Confirmar */


/* Calendario Botones */
.day-btn, .time-btn {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s;
}

.day-btn.selected, .time-btn.selected {
    background: var(--purple) !important;
    color: #ffffff !important;
    border-color: var(--purple) !important;
}


/* --- SECCIÓN PARA QUIÉN (COMPARATIVA 2 COLUMNAS) --- */
.comparison-section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exactamente 2 columnas de igual tamaño */
    gap: 3rem;
    align-items: stretch; /* Fuerza a que ambas cajas midan lo mismo de alto */
}

.comparison-box {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.4s var(--ease-apple), box-shadow 0.4s;
}

.comparison-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Colores de borde superior estilo Apple */
.box-success { border-top: 5px solid #34c759; }
.box-danger { border-top: 5px solid #ff3b30; }

.comparison-box h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1.5rem;
}

.comparison-box ul {
    list-style: none;
    padding-left: 0;
}

.comparison-box ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Bullets personalizados con CSS */
.box-success ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #34c759;
    font-weight: bold;
    font-size: 1.2rem;
}

.box-danger ul li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 0;
    color: #ff3b30;
    font-weight: bold;
    font-size: 1.2rem;
}


/* --- BOTÓN VOLVER ARRIBA --- */
.scroll-top-btn {
    position: fixed;
    /* Calculado para quedar justo encima del WhatsApp (30px bottom + 60px alto + 15px margen) */
    bottom: 105px; 
    /* Calculado para centrarse con el WhatsApp: WhatsApp es 60px, este 50px. (60-50)/2 + 30 = 35px */
    right: 35px; 
    width: 50px;
    height: 50px;
    background-color: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    
    /* Oculto por defecto hasta que se haga scroll */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-apple);
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
}

.scroll-top-btn:hover {
    background-color: var(--purple);
    transform: translateY(-3px) scale(1.05);
}

/* Clase que se activa con JS al bajar */
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



/* --- 4. RESPONSIVE Y UTILIDADES --- */
@media (max-width: 992px) {
    .calendar-app { flex-direction: column; }
    .nav-links { display: none; }

    #imgeer{
    height: 320px!important;
    }
}


/* --- CALENDARIO RESPONSIVO --- */

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas iguales */
    gap: 4px; /* Un poco menos de espacio para asegurar que quepa */
    width: 100%;
}

.day-btn {
    width: 100%; /* El botón ocupa todo el hueco de la celda */
    aspect-ratio: 1 / 1; /* Mantiene el círculo perfecto */
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: clamp(0.7rem, 2vw, 1rem); /* El texto se ajusta según el tamaño */
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste específico para pantallas pequeñas */
@media (max-width: 480px) {

    /* Ajuste botón volver arriba en móviles */
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        /* WhatsApp móvil bottom 20px + alto 50px + 10px margen = 80px */
        bottom: 80px; 
        /* WhatsApp móvil right 20px + ancho 50px. Flecha 40px. (50-40)/2 + 20 = 25px */
        right: 25px; 
    }
    
    .scroll-top-btn svg {
        width: 18px;
        height: 18px;
    }

    #terr{
        max-width: 260px!important;
    }
    

    .calendar-left {
        padding: 1rem; /* Menos padding en móviles para ganar espacio */
    }
    
    .cal-weekdays {
        font-size: 0.7rem; /* Texto más pequeño en días de la semana */
    }

    .cal-days {
        gap: 2px; /* Reducimos el espacio entre días */
    }
}

.calendar-app {
    overflow-x: hidden; /* Evita que el calendario se desplace lateralmente */
}


.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
}

/* Añade esto dentro de @media (max-width: 992px) */
.info-group {
    flex-direction: column; /* Cambia de horizontal a vertical */
    gap: 1.5rem;            /* Reduce el espacio exagerado en móvil */
    align-items: flex-start; /* Alinea el contenido a la izquierda */
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    
    /* ... el resto de tus estilos móviles ... */

    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

    /* AQUÍ LO DETECTA Y LO CORRIGE */
    .info-group {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .method-row, .method-row.row-reverse { flex-direction: column; gap: 2rem; text-align: left; }
    /* ... el resto de tu código ... */
    /* --- Ajuste Comparativa en Móvil --- */
    .comparison-grid {
        grid-template-columns: 1fr; /* Pasa a 1 sola columna (una caja sobre la otra) */
        gap: 2rem;
    }
    
    .comparison-box {
        padding: 2rem; /* Reduce un poco el relleno en pantallas pequeñas */
    }
}

/* --- Ocultar elementos por defecto --- */
.hamburger { display: none; }
.btn-nav-mobile { display: none; }

/* --- MEJORAS RESPONSIVAS GLOBALES (Móviles y Tablets) --- */
@media (max-width: 992px) {
    section { padding: 60px 0; }
    
    .section-header h2 { font-size: 2.2rem; }
    .section-header p { font-size: 1rem; }

    /* --- Menú Hamburguesa Funcional --- */
    .nav-content { position: relative; }
    .btn-nav-desktop { display: none; }
    .btn-nav-mobile { display: block; text-align: center; margin-top: 1.5rem; width: 100%; }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100;
    }
    
    .hamburger span {
        width: 100%;
        height: 2px;
        background-color: var(--text-light);
        border-radius: 4px;
        transition: all 0.3s var(--ease-apple);
    }

    /* Animación Activa de la Hamburguesa (X) */
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Panel Desplegable Lateral */
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 6rem 2rem 2rem;
        gap: 1.8rem;
        transition: right 0.4s var(--ease-apple);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1050;
    }
    
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.1rem; color: var(--text-light); width: 100%; }

    /* --- Hero / Portada --- */
    .hero h1 { font-size: 2.4rem; padding: 0 10px; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; gap: 10px; width: 100%; padding: 0 1.5rem; }
    .hero-buttons .btn { width: 100%; }

    /* --- Sobre Mí --- */
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-img { height: 320px; border-radius: 16px; }
    .about-text h2 { font-size: 2rem; }
    .about-text p { font-size: 1rem; }

    /* --- Bento Grid (Pilares y Para Quién) --- */
    .bento-grid { 
        grid-template-columns: 1fr !important; 
        grid-template-rows: auto !important; 
        gap: 16px;
    }
    .bento-box { 
        grid-column: span 1 !important; 
        grid-row: span 1 !important; 
        padding: 1.8rem; 
        border-radius: 16px;
    }
    .bento-box h3 { font-size: 1.6rem; }
    .bento-box:nth-child(4) { text-align: left; align-items: flex-start; }

    /* --- Método --- */
    .method-row, .method-row.row-reverse { flex-direction: column; gap: 1.5rem; text-align: left; margin-bottom: 4rem; }
    .method-img-box img { height: 260px; border-radius: 16px; }
    .method-text-box h3 { font-size: 1.6rem; }
    .method-text-box .number { font-size: 3.5rem; }

    /* --- Servicios --- */
    .service-card { flex-direction: column; border-radius: 16px; margin-bottom: 2rem; }
    .service-img-container img { min-height: 240px;  }
    .service-info { padding: 1.8rem; }
    .service-info h3 { font-size: 1.8rem; }

    /* --- Calendario Premium --- */
    .calendar-app { flex-direction: column; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .calendar-left { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1.2rem 0.8rem; }
    .calendar-right { padding: 1.2rem 0.8rem; }
    .time-slots { grid-template-columns: 1fr; }
    .day-btn { font-size: 0.9rem; }

    /* --- Contacto --- */
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-text h2 { font-size: 2.2rem; }
    .info-group { flex-direction: column; gap: 1.2rem; align-items: flex-start; }
    .contact-form-box { padding: 1.5rem; border-radius: 16px; }

    /* --- Footer --- */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1.2rem; text-align: center; }
}

/* Ajuste fino para pantallas extremadamente pequeñas (<480px) */
@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .cal-days { gap: 2px; }
    .day-btn { font-size: 0.8rem; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-float img { width: 28px; }
}

/* ==========================================================================
   SELECTOR DE IDIOMA (banderas)
   ========================================================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* Botón con la bandera actual */
.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    padding: 7px 12px;
    border-radius: 980px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-apple);
    -webkit-tap-highlight-color: transparent;
}
.lang-current:hover { background: rgba(255, 255, 255, 0.2); }

.lang-current .flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.lang-current .lang-code { letter-spacing: 0.5px; }

.lang-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.3s var(--ease-apple);
    opacity: 0.8;
}
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

/* Menú desplegable */
.lang-dropdown {
    list-style: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 165px;
    background: rgba(28, 28, 30, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    margin: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-apple), transform 0.25s var(--ease-apple), visibility 0.25s;
    z-index: 1200;
}
/* Variante que se abre hacia arriba (footer) */
.lang-dropdown.lang-dropdown-up {
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateY(8px);
}
.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li { margin: 0; }
.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.lang-dropdown a:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-light); }
.lang-dropdown a.active {
    color: #fff;
    background: rgba(94, 140, 58, 0.18);
}
.lang-dropdown a.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--purple);
    font-weight: 700;
}
.lang-dropdown .flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Footer: agrupar enlaces legales + selector */
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --- Responsive del selector --- */
@media (max-width: 992px) {
    /* El selector se queda visible junto a la hamburguesa */
    .nav-actions { margin-left: auto; }
    .hamburger { margin-left: 1.2rem; }

    .footer-bottom-right {
        flex-direction: column;
        gap: 1.2rem;
    }
    /* En el footer móvil el menú se centra mejor abriéndose hacia arriba */
    .lang-switcher-footer .lang-dropdown { right: 50%; transform: translate(50%, 8px); }
    .lang-switcher-footer.open .lang-dropdown { transform: translate(50%, 0); }
}


/* ==========================================================================
   EFECTO: FONDO QUE CAMBIA DE COLOR SEGÚN SE HACE SCROLL
   Un color de la paleta por sección, elegido para que el texto SIEMPRE
   contraste. (Cherry Blossom, Apple, Moss, Gunmetal, Black Iris)
   ========================================================================== */

/* El fondo del body transiciona suavemente de un color a otro */
body {
    background-color: #21252F; /* Black Iris (color inicial / hero) */
    transition: background-color 1.1s var(--ease-apple);
}

/* Las secciones se vuelven transparentes para dejar ver el color del body */
.bg-light { background-color: transparent; }
.bg-dark  { background-color: transparent; }
.about    { background-color: transparent; }

/* El footer cierra la página en Black Iris */
footer { background: #21252F; }

.about, .pillars, .method, .comparison-section, .services, .booking, .contact {
    border-bottom-color: rgba(0,0,0,0.06);
}

/* ----- SOBRE MÍ — fondo Gunmetal (#4E5053), texto claro ----- */
#sobre-mi .subtitle        { color: #C5E0A0; }
#sobre-mi .about-text h2,
#sobre-mi .about-text h3   { color: #ffffff; }
#sobre-mi .about-text h2 span { color: #C5E0A0; }
#sobre-mi .about-text p    { color: #e6e7e9; }
#sobre-mi .about-text p strong { color: #ffffff; }
#sobre-mi .btn-link        { color: #C5E0A0; }

/* ----- PILARES — fondo Cherry Blossom (#DEAEC1), texto oscuro ----- */
#pilares .section-header h2 { color: #21252F; }
#pilares .section-header p  { color: #5a3f49; }

/* ----- MÉTODO — fondo Apple (#8EAF55), texto oscuro ----- */
#metodo .section-header h2 { color: #1f2c12; }
#metodo .section-header p  { color: #36471f; }
/* Número 01/02/03: antes era verde claro y no se veía. Ahora Moss bien visible */
#metodo .method-text-box .number { color: #2D4729; opacity: 0.85; }
#metodo .method-text-box h3 { color: #1f2c12; }
#metodo .method-text-box p  { color: #2f3d1c; }

/* ----- PARA QUIÉN — fondo Cherry Blossom (#DEAEC1), texto oscuro ----- */
#para-quien .section-header h2 { color: #21252F; }

/* ----- SERVICIOS — fondo Apple (#8EAF55), texto oscuro ----- */
#servicios .section-header h2 { color: #1f2c12; }
#servicios .section-header p  { color: #36471f; }

/* ----- RESERVAR — fondo Cherry Blossom (#DEAEC1), texto oscuro ----- */
#reservar .section-header h2 { color: #21252F; }
#reservar .section-header p  { color: #5a3f49; }

/* ----- CONTACTO — fondo Moss (#2D4729), texto claro ----- */
#contacto .contact-text h2      { color: #ffffff; }
#contacto .contact-text h2 span { color: #aacb9c; }
#contacto .contact-text p       { color: #c9dac1; }
#contacto .info-item h5         { color: #9fb795; }
#contacto .info-item p          { color: #eef3ea; }
