:root {
    --primary: #8FBC8F; /* Verde Salvia (Mantenemos por la calma) */
    --primary-dark: #6e966e;
    --accent: #ff9f43; /* NUEVO: Naranja suave (tomado de la ilustración) */
    --text: #2d3436;
    --bg-light: #fffcf5; /* Un crema más cálido */
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* --- RESET Y BASES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); color: #2c3e50; margin-bottom: 0.5rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- ANIMACIONES --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }

/* --- NAVEGACIÓN --- */
/* Contenedor principal de la navegación */
/* Contenedor principal */
.navbar {
    display: flex;
    justify-content: space-between; /* Mantiene logo a la izquierda y menú a la derecha */
    align-items: center;
    padding: 0.5rem 5%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* El enlace que contiene la imagen */
.logo {
    display: flex;
    align-items: center;
    height: 100%;       /* Ocupa el alto de la navbar */
}

/* La imagen propiamente tal */
.logo-img {
    height: 65px;       /* Ajusta este valor (ej: 50px o 60px) hasta que te guste */
    width: auto;        /* Evita que se deforme */
    max-height: 100%;   /* Nunca será más alta que la barra */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Alineación de los links a la derecha */
.nav-links {
    display: flex;
    align-items: center;
    margin-left: auto; /* Esta línea asegura que el menú se pegue a la derecha */
}

.nav-links li {
    margin-left: 2.5rem; /* Espaciado entre cada opción del menú */
}
.nav-links a:hover { color: var(--accent); }

.btn-nav {
    background: var(--primary); color: white !important;
    padding: 0.6rem 1.5rem; border-radius: 25px;
}
.btn-nav:hover { background: var(--accent); }

.pulse-button { animation: pulse-animation 2s infinite; }
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.7); } /* Pulso naranja */
    70% { box-shadow: 0 0 0 10px rgba(255, 159, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0); }
}

/* --- HERO --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.8)), url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?q=80&w=2000&auto=format&fit=crop');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
.hero-content { max-width: 800px; padding: 2rem; }
.hero h1 { font-size: 3rem; color: var(--primary-dark); }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; color: #555; }

.btn-primary {
    background: var(--accent); color: white;
    padding: 1rem 2.5rem; border-radius: 30px; display: inline-block;
    font-weight: 700; box-shadow: 0 5px 15px rgba(255, 159, 67, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); background: #e58e3c; }

.btn-secondary {
    margin-left: 10px; color: var(--text); padding: 1rem 2rem;
    border: 2px solid var(--primary); border-radius: 30px;
}
.btn-secondary:hover { background: var(--primary); color: white; }

/* --- PERFIL PROFESIONAL (Badges) --- */
.section { padding: 3rem 5%; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }

/* Estilo para la imagen subida */
.about-image img {
    width: 100%; 
    max-width: 500px;
    border-radius: 20px;
    /* Eliminamos la sombra sólida y ponemos una suave */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.badge {
    background: #ecf0f1; padding: 5px 15px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 700; color: #555; display: flex; align-items: center; gap: 5px;
}
.badge i { color: var(--accent); }

/* --- SERVICIOS --- */
.bg-light { background-color: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem;}

.card {
    background: white; padding: 2.5rem; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: left;
    border-top: 5px solid var(--primary); transition: transform 0.3s;
}
.card:hover { transform: translateY(-10px); border-color: var(--accent); }

.icon-wrapper {
    width: 60px; height: 60px; background: rgba(143, 188, 143, 0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; color: var(--primary-dark); font-size: 1.5rem;
}

.service-list { list-style: circle; margin-left: 1.5rem; margin-top: 1rem; color: #666; }
.service-list li { margin-bottom: 0.5rem; }

/* --- CALENDARIO --- */
.booking-wrapper {
    background: white; padding: 3rem; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1); border: 2px solid #eee;
}
.calendar-container { min-height: 500px; }

/* --- FOOTER --- */
footer { background: #2d3436; color: #fff; padding: 4rem 5% 1rem; }
.footer-content { 
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
    padding-bottom: 2rem; border-bottom: 1px solid #444;
}
.footer-info i { color: var(--accent); width: 25px; }
.socials a { color: white; display: flex; align-items: center; gap: 10px; background: #25D366; padding: 10px 20px; border-radius: 30px; text-decoration: none;}
.copyright { text-align: center; padding-top: 1rem; font-size: 0.9rem; color: #aaa; }

.floating-btn {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--accent); color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.2); z-index: 99;
}

/* Responsive */
@media (max-width: 768px) {

    /* 1. Ajustar el contenedor del Hero para que no corte contenido */
    .hero {
        padding: 120px 20px 60px 20px; /* Más espacio arriba, menos a los lados */
        height: auto; /* Permitir que crezca si el texto es largo */
        min-height: 100vh;
        background-position: center;
    }

    /* 2. Arreglar el título y texto */
    .hero h1 {
        font-size: 2.2rem; /* Letra un poco más pequeña para que quepa bien */
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* 3. ARREGLO DE LOS BOTONES (Lo más importante) */
    /* Asumiendo que los botones están dentro de un div contenedor */
    .hero div { 
        display: flex;
        flex-direction: column; /* Pone los botones en columna vertical */
        align-items: center;    /* Los centra */
        gap: 20px;              /* Espacio entre el botón naranja y el transparente */
        width: 100%;
    }

    /* Estilo para los botones individuales en móvil */
    .cta-main, .cta-btn, button, a.btn { /* Apuntamos a posibles nombres de clase */
        width: 100%;            /* Que ocupen todo el ancho disponible */
        max-width: 280px;       /* Pero que no se vean gigantes */
        margin: 0 !important;   /* Quitar márgenes raros */
        display: block;
        text-align: center;
    }

    /* 4. Ocultar líneas decorativas complejas si rompen el diseño */
    /* Esas líneas curvas verdes que se ven rotas en la foto */
    .hero a::before, 
    .hero a::after {
        display: none !important; /* En móvil es mejor diseño limpio sin líneas raras */
    }
    
    /* Si el segundo botón tenía un borde raro, lo simplificamos */
    .btn-secondary, .ver-especialidades {
        border: 2px solid #2A9D8F; /* Borde simple y limpio */
        border-radius: 50px;
        background: transparent;
    }
    
    /* Ajustamos la navbar para que el logo no use tanto espacio */
    .navbar {
        height: 70px;
        padding: 0 5%;
    }

    .logo-img {
        height: 50px; /* Logo un poco más pequeño en móvil */
    }

    /* Menú lateral oculto */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 75%; /* Ocupa buena parte de la pantalla */
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Escondido a la derecha */
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    /* Clase que activa el JS */
    .nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin-left: 0; /* Quitamos el margen lateral del escritorio */
        margin-bottom: 2rem; /* Espacio vertical entre links */
    }

    /* --- BOTÓN BURGER (Indispensable) --- */
    .burger {
        display: block !important; /* Forzamos que aparezca */
        cursor: pointer;
        z-index: 1000; /* Siempre por encima de todo */
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--text);
        margin: 5px;
        transition: all 0.3s ease;
    }

    /* Animación de la hamburguesa a X (opcional) */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Ajustes de Hero y Grillas en móvil */
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-content { flex-direction: column; }

}