/* 1. VARIABLES GLOBALES (Limpias y consolidadas) */
:root {
    --primary: #064848;      /* verde profundo */
    --accent: #00b894;       /* Verde salud */
    --deep-green: #1a2a26;   /* Verde editorial */
    --gold: #BFA35A;         /* Dorado elegante */
    --light-gold: rgba(191, 163, 90, 0.1); /*dorado suave para fondo de botones*/
    --bg-cream: #F9F7F2;     /* Fondo orgánico */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dark: #1a1a1a; /*para textos de titulos en fondos claros*/
    --white: #ffffff;
}

/* 2. RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

/* 3. HEADER */
/* --- ESTILOS DEL HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(6, 72, 72, 0.98); /* Verde profundo */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(191, 163, 90, 0.2);
    transition: 0.3s ease;
    color: var(--gold);
}

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

/* --- ESTILO DEL LOGO CON IMAGEN --- */
.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre imagen y texto */
    text-decoration: none;
}

.logo-img {
    height: 45px; /* Ajusta este valor según prefieras el tamaño */
    width: auto;  /* Mantiene la proporción original */
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Efecto sutil al pasar el mouse */
.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
}

.logo-text span {
    color: #BFA35A; /* Tu Dorado */
    display: block; /* Opcional: pone "Integral" debajo para un look más de marca */
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Ajuste para móviles (Logo un poco más pequeño) */
@media (max-width: 768px) {
    .logo-img {
        height: 38px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
}

/* Navegación Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-item:hover {
    color: #BFA35A;
}

/* Etiqueta de Disponibilidad */
.status-indicator {
    color: #4ade80;
    font-size: 0.8rem;
    background: rgba(74, 222, 128, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

/* Botón de Turnos */
.nav-btn-gold {
    background: #BFA35A;
    color: #064848 !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(191, 163, 90, 0.3);
}

/* Menú Mobile */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: #BFA35A;
    transition: 0.3s;
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 991px) {
    .hamburger { display: block; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #064848;
        width: 100%;
        height: 100vh;
        padding-top: 50px;
        transition: 0.4s ease;
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 20px 0; }

    /* Animación de Hamburguesa a X */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* 1. Base del Hero */
.hero-organic {
    display: flex;
    flex-direction: column; /* Apilado en móvil */
    min-height: 100vh;
    background-color: var(--primary);
    color: var(--white);
    padding-top: 80px; /* Espacio para el menú fijo */
    overflow: hidden;
}

/* 2. Contenedor de Texto */
.hero-content {
    padding: 40px 20px;
    text-align: center; /* Centrado en móvil */
    z-index: 5;
}

.hero-pretitle {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; /* Tamaño ajustado para móvil */
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--accent);
    font-style: italic;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 3. Botones en Móvil */
.hero-btns {
    display: flex;
    flex-direction: column; /* Uno arriba del otro en móvil */
    gap: 15px;
    align-items: center;
}

.btn-primary-green {
    background-color: var(--accent);
    color: var(--primary);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    width: 100%; /* Ancho completo en móvil */
    max-width: 280px;
}

.btn-link-gold {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 4. Estadísticas (Ajuste de rejilla) */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
}

/* AQUÍ LA MAGIA: El tercer elemento ocupa ambas columnas */
.stat-item:nth-child(3) {
    grid-column: span 2; 
    text-align: center; /* Centrado para que la frase se vea profesional */
    font-style: italic; /* Un toque de distinción para la cita */
}

.stat-item strong {
    font-size: 1.4rem;
    color: var(--accent);
    display: block;
}

.stat-item span {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* 5. Imagen (Oculta o ajustada en móvil para que no estorbe) */
.hero-visual {
    height: 300px;
    width: 100%;
}

.hero-image-mask {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%); /* Corte horizontal en móvil */
}

/* 🖥️ AJUSTES PARA ESCRITORIO (Pantallas grandes) */
@media (min-width: 992px) {
    .hero-organic {
        flex-direction: row;
        text-align: left;
    }

    .hero-content {
        flex: 1;
        padding: 0 5% 0 8%;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-btns {
        flex-direction: row;     /* Ponemos los botones uno al lado del otro */
        align-items: center;     /* Alineación vertical */
        justify-content: flex-start; /* Alinea todo a la izquierda */
    }
    .btn-primary-green {
        width: auto; /* Permite que el botón tome el ancho de su texto */
        padding: 14px 40px; /* Un poco más ancho para que luzca mejor */
    }
    .hero-visual {
        flex: 1;
        height: 100vh;
    }

    .hero-image-mask {
        clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%); /* Corte vertical */
    }
}




/* 5. SECCIÓN SOBRE MÍ (HYBRID) */
.about-me-hybrid {
    padding: 60px 20px;
    background-color: var(--white);
    text-align: center;
}

.image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: 0; right: -10px;
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    z-index: 3;
}

.personal-motto {
    margin-top: 25px;
    padding: 20px;
    border-left: 4px solid var(--accent);
    background: #f0fff4;
    font-style: italic;
}

/* 6. COMPONENTES EXTRA */
/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Verde oficial WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Animación de entrada y pulso */
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Efecto de parpadeo suave para que se note */
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

/* Ajuste para móvil (un poco más pequeño para no tapar contenido) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}

/*academia seccion */
.academic-section {
    padding: 80px 20px;
    background-color: var(--primary); /* El fondo crema suave de tus fotos */
    color: var(--white);
}

.academic-header {
    text-align: center;
    margin-bottom: 50px;
}

.pill-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--white);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.academic-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* En tablets o pantallas más grandes, dos columnas */
@media (min-width: 768px) {
    .academic-grid { grid-template-columns: 1fr 1fr; }
}

.academic-column {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(26, 42, 38, 0.03);
    border: 1px solid rgba(176, 141, 87, 0.1);
}

.column-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--deep-green);
}

.column-title i {
    font-size: 1.5rem;
    color: var(--gold);
}

.column-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.academic-list {
    list-style: none;
    padding: 0;
}

.academic-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
    position: relative;
    padding-left: 15px;
}

.academic-list li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.academic-list li:last-child { border: none; }

/* --- SECCIÓN SERVICIOS --- */
.services-section {
    padding: 80px 20px;
    background-color: var(--bg-cream);
}

.services-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin: 10px 0;
}

.services-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(176, 141, 87, 0.1); /* Borde dorado muy suave */
    box-shadow: 0 10px 30px rgba(26, 42, 38, 0.05);
    transition: transform 0.3s ease;
}

/* Efecto cuando tocas la tarjeta en móvil */
.service-card:active {
    transform: scale(0.98);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gold);
    color: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--deep-green);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-link::after {
    content: '→';
}

/* Estilo para la tarjeta resaltada */
.service-card.active {
    border-color: var(--gold);
    background: linear-gradient(to bottom right, #ffffff, #fdfbf8);
}

/* Definimos la animación */
/* 1. Definimos la animación primero */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Aplicamos la animación a las tarjetas */
.service-card {
    /* Agregamos 'both' para que la opacidad 0 del inicio se respete */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* 3. Retrasos individuales (Asegúrate de que no haya espacios extras) */
.service-card:nth-child(1) { 
    animation-delay: 0.2s !important; 
}
.service-card:nth-child(2) { 
    animation-delay: 0.5s !important; 
}
.service-card:nth-child(3) { 
    animation-delay: 0.8s !important; 
}

/* Logo completo */

.visual-separator {
    width: 100%;
    max-width: 1000px; /* Aquí limitamos el ancho máximo */
    margin: 40px auto;  /* Centrado automático en la página */
    padding: 0 20px;    /* Un poco de aire en móviles */
}

.centered-image {
    width: 100%;
    height: auto;
    max-height: 400px;  /* Limitamos la altura para que no sea gigante */
    object-fit: cover;
    border-radius: 20px; /* Le da un toque suave y moderno */
    border-color: var(--gold);
    display: block;
    box-shadow: 0 10px 30px var(--primary); /* Efecto de profundidad */
}


.btn-final-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--gold);
    color: var(--white);
    padding: 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-final-cta:active { transform: scale(0.95); }






.modalities-section {
    padding: 60px 20px;
    background-color: var(--primary);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 10px;
}

.modalities-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modality-card {
    padding: 25px;
    border-radius: 15px;
    background: var(--bg-cream);
    border: 1px solid rgba(0,0,0,0.05);
}

.modality-card h3 {
    font-size: 1.1rem;
    color: var(--deep-green);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.modality-list {
    list-style: none;
}

.modality-list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.modality-list i { color: var(--gold); }

/* Resalte para la parte Holística */
.modality-card.highlight {
    border: 1px solid var(--gold);
    background: var(--white);
}

/* Formas de Pago */
.payment-methods {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.payment-methods h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.payment-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-icons span {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
}

/* El botón verde oscuro de tu imagen */
.coordination-cta {
    margin-top: 50px;
    text-align: center;
}

.coordination-cta p {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--white);
}

.btn-reserve-space {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary);
    border: 1px solid var(--gold);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/*footer*/
.main-footer {
    background-color: var(--primary); /* El verde #064848 */
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 40px;
}

/* En tablets/PC se divide en 3 columnas */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

.logo-footer {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.logo-footer span {
    color: var(--gold); /* El dorado #BFA35A */
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.main-footer h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}
/* --- ESTILOS LINKS LEGALES FOOTER --- */
.footer-legal-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrado en móvil */
    gap: 25px;               /* Espacio entre enlaces */
    padding: 20px 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Línea divisoria muy sutil */
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6); /* Blanco suave/grisáceo */
    text-decoration: none;
    font-size: 0.8rem;               /* Tamaño reducido para jerarquía legal */
    font-weight: 400;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.footer-legal-links a:hover {
    color: #BFA35A;                  /* Dorado al hacer hover */
    text-decoration: underline;      /* Refuerzo visual de link */
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .footer-legal-links {
        flex-direction: column;      /* Apilados en móviles */
        align-items: center;
        gap: 12px;
        padding: 15px 0;
    }
    
    .footer-legal-links a {
        font-size: 0.75rem;
    }
}

/* --- SISTEMA DE ANIMACIONES --- */

/* Clase base: el elemento está oculto y un poco más abajo */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    visibility: hidden;
}

/* Clase activa: el elemento sube y se hace visible */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Variación: Revelado desde la izquierda (ideal para texto en el Hero) */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Retrasos para que no todo aparezca al mismo tiempo (efecto cascada) */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 0.10s; }



/* Ocultamos todas las secciones por defecto */
.legal-content {
    display: none;
    padding: 40px;
    background: white;
    border-radius: 12px;
}

/* Cuando el enlace apunta a un ID, lo mostramos */
.legal-content:target {
    display: block;
}

/* Opcional: Si ninguna sección está seleccionada, mostramos un mensaje */
.legal-container:not(:has(:target)) .legal-content:first-child {
    display: block;
}



/* --- SPLASH SCREEN Mensaje Bienvenida--- */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #064848;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Esto permite hacer clic en el sitio una vez oculto */
}
.splash-content {
    text-align: center;
    color: #ffffff;
}
.splash-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #ffffff;
}

.splash-content span {
    color: #BFA35A;
}

/* Clase para ocultar el splash */
.splash-hidden {
    opacity: 0;
    visibility: hidden;
}