/* ==========================================================================
   🌿 ESTILOS PRINCIPALES - PSIC. KARINA DOCO
   ========================================================================== */

/* 1. TOKENS DE DISEÑO Y VARIABLES GLOBALES
   ========================================================================== */
:root {
    /* Paleta de Colores de Bienestar */
    --primary: hsl(135, 18%, 28%);        /* Verde oliva profundo y terapéutico */
    --primary-light: hsl(135, 15%, 38%);
    --primary-dark: hsl(135, 22%, 18%);
    --accent: hsl(24, 25%, 52%);         /* Terracota/Arena cálido para acentos */
    --accent-light: hsl(24, 30%, 65%);
    --bg-primary: hsl(35, 30%, 97%);     /* Crema suave y relajante */
    --bg-secondary: hsl(35, 20%, 93%);   /* Arena suave para contraste */
    --text-dark: hsl(135, 25%, 12%);     /* Verde bosque ultra oscuro para legibilidad */
    --text-light: hsl(135, 8%, 45%);     /* Gris verdoso para texto secundario */
    --white: hsl(0, 0%, 100%);
    --error: hsl(0, 75%, 45%);
    
    /* Efectos de Cristal (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 8px 32px 0 rgba(110, 130, 115, 0.08);

    /* Sombras y Bordes */
    --shadow-soft: 0 10px 40px -10px rgba(90, 110, 95, 0.12);
    --shadow-hover: 0 20px 50px -15px rgba(60, 80, 65, 0.2);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Fuentes */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Animaciones */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

/* 2. RESET Y BASES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

ul {
    list-style: none;
}

/* 3. UTILIDADES DE MAQUETACIÓN
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center { text-align: center; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }
.max-w-xl { max-width: 700px; }
.max-w-md { max-width: 500px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.align-center { align-items: center; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 4. COMPONENTES: BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 1.1rem 2.4rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 62, 50, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(45, 62, 50, 0.35);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid rgba(45, 62, 50, 0.15);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: var(--bg-primary);
    transform: translateY(-3px);
}

/* 5. DISEÑO DE SECCIONES (SECCIÓN POR SECCIÓN)
   ========================================================================== */

/* 5.1 HEADER & NAVEGACIÓN */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
}

.main-nav {
    display: none; /* Mobile first hidden */
}

.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary-dark);
    border-radius: 4px;
    transition: var(--transition-fast);
}

/* Mobile Navigation Open */
.main-nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    padding: 6rem 2rem 2rem;
    z-index: 999;
}

.main-nav.active ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.main-nav.active ul a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.main-nav.active .nav-action {
    display: block;
    width: 100%;
    text-align: center;
}

.main-nav.active .nav-action .btn {
    width: 100%;
}

@media (min-width: 992px) {
    .mobile-nav-toggle { display: none; }
    .main-nav {
        display: flex;
        align-items: center;
        gap: 3rem;
    }
    .main-nav ul {
        display: flex;
        gap: 2.2rem;
    }
    .main-nav ul a {
        font-size: 0.95rem;
        font-weight: 400;
        color: var(--text-light);
        position: relative;
        padding: 0.3rem 0;
    }
    .main-nav ul a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent);
        transition: var(--transition-smooth);
    }
    .main-nav ul a:hover {
        color: var(--text-dark);
    }
    .main-nav ul a:hover::after {
        width: 100%;
    }
}

/* 5.2 HERO SECTION */
.hero {
    padding: 8rem 0 5rem;
    background-image: radial-gradient(circle at 80% 20%, hsl(35, 30%, 94%) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160,180,165,0.12) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 620px;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.2rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
    }
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-avatars {
    display: flex;
}

.avatar-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
    margin-left: -10px;
}

.avatar-dot:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
}

.aesthetic-shape {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background-color: var(--bg-secondary);
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; /* Blob orgánico */
    animation: blob-bounce 12s infinite alternate ease-in-out;
    z-index: 1;
}

.hero-abstract-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    opacity: 0.25;
}

.circle-1 {
    width: 250px;
    height: 250px;
    background-color: var(--primary-light);
    top: 15%;
    left: 10%;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background-color: var(--accent-light);
    bottom: 20%;
    right: 15%;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background-color: hsl(150, 10%, 80%);
    top: 40%;
    left: 35%;
}

.art-overlay-text {
    position: relative;
    z-index: 3;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.5;
    text-shadow: 0 4px 20px rgba(255,255,255,0.4);
}

@keyframes blob-bounce {
    0% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; transform: scale(1); }
    100% { border-radius: 64% 36% 47% 53% / 54% 63% 37% 46%; transform: scale(1.05) rotate(5deg); }
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
    .hero-title {
        font-size: 3.4rem;
    }
}

/* 5.3 VIDEO SECTION */
.video-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
    border: 8px solid var(--white);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--primary-dark);
}

.video-bg-simulation {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(45, 62, 50, 0.4), rgba(45, 62, 50, 0.75)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%232d3e32"/><circle cx="50" cy="50" r="40" fill="none" stroke="%233b5141" stroke-width="1"/></svg>');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--transition-smooth);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.video-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    margin-bottom: 1rem;
}

.play-icon {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-play-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent);
    color: var(--white);
}

.video-duration {
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.hidden-video {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-loading-indicator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 5.4 ENFOQUE SECTION */
.enfoque-section {
    padding: 7rem 0;
}

.enfoque-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.visual-card {
    background-color: var(--white);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(45, 62, 50, 0.05);
    transition: var(--transition-smooth);
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.visual-card.accent {
    background-color: var(--primary);
    color: var(--white);
}

.visual-card.accent .visual-icon {
    background-color: rgba(255, 255, 255, 0.15);
}

.visual-icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    font-size: 1.8rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.enfoque-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.enfoque-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.check-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: bold;
}

/* 5.5 ESPECIALIDADES SECTION */
.especialidades {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.especialidad-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(45, 62, 50, 0.03);
    position: relative;
    top: 0;
}

.especialidad-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(45, 62, 50, 0.1);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.especialidad-card:hover .card-icon-wrapper {
    background-color: var(--primary);
    color: var(--white);
}

.card-icon {
    width: 30px;
    height: 30px;
}

.especialidad-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.especialidad-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 5.6 SOBRE MÍ SECTION */
.sobre-mi {
    padding: 7rem 0;
}

.profile-frame {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.profile-frame::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
}

.profile-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--primary-dark);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
    background-image: radial-gradient(circle at center, var(--primary-light) 0%, var(--primary-dark) 100%);
}

.profile-initials {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--bg-primary);
    opacity: 0.15;
}

.badge-exp {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.badge-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.badge-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.sobre-mi-content {
    max-width: 580px;
}

.sobre-mi-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cred-item {
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
}

.cred-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.cred-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* 5.7 CÓMO FUNCIONA */
.como-funciona {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        position: relative;
    }
    
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 15%;
        right: 15%;
        height: 1px;
        border-top: 2px dashed rgba(45, 62, 50, 0.15);
        z-index: 1;
    }
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    border: 2px solid var(--bg-secondary);
    transition: var(--transition-smooth);
}

.step-card:hover .step-num {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: scale(1.1);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* 5.8 TESTIMONIOS */
.testimonios {
    padding: 7rem 0;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4.5rem;
}

@media (min-width: 768px) {
    .testimonios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonio-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(45, 62, 50, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-light);
    height: 30px;
    opacity: 0.4;
}

.testimonio-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.patient-info {
    border-top: 1px solid rgba(45, 62, 50, 0.08);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

.patient-age {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.patient-topic {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 5.9 AGENDAMIENTO & PRECIOS */
.booking-section {
    padding: 7rem 0;
    background-color: var(--bg-secondary);
}

.booking-info {
    max-width: 600px;
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.price-card {
    background-color: var(--white);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.price-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.price-card.active-price {
    border-color: var(--accent);
    background-image: linear-gradient(to bottom, var(--white), hsl(35, 30%, 99%));
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.price-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.badge-price {
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.badge-save {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.price-val {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 1.2rem;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.period {
    font-size: 0.85rem;
    color: var(--text-light);
}

.price-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (min-width: 480px) {
    .price-features {
        grid-template-columns: 1fr 1fr;
    }
}

.price-features li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -0.5em;
}

.booking-policies {
    background-color: rgba(45, 62, 50, 0.04);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.booking-policies h4 {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.booking-policies ul {
    list-style-type: disc;
    margin-left: 1.2rem;
    color: var(--text-light);
}

.booking-widget-container {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    border: 1px solid rgba(45, 62, 50, 0.05);
}

.widget-header {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    background-color: #52c41a;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #52c41a;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(82, 196, 26, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(82, 196, 26, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(82, 196, 26, 0); }
}

.widget-header h4 {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.booking-widget-box {
    min-height: 500px;
    position: relative;
    background-color: var(--bg-primary);
}

.booking-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(45, 62, 50, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin-widget 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin-widget {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tidycal-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.hidden-iframe {
    display: none;
}

@media (min-width: 992px) {
    .booking-section .container {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

/* 5.10 PREGUNTAS FRECUENTES (FAQ) */
.faq-section {
    padding: 7rem 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3.5rem;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(45, 62, 50, 0.02);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    transition: var(--transition-fast);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    display: none; /* JS controla expansión */
}

/* 6. FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links h4, .footer-legal h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--white);
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-flex {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom a {
    color: var(--white);
    text-decoration: underline;
}

/* ==========================================================================
   7. CHATBOT WIDGET (AGENT DE IA)
   ========================================================================== */
.chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
}

/* Botón flotante */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(45, 62, 50, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.08) translateY(-2px);
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(45, 62, 50, 0.35);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-toggle .chat-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.chatbot-toggle .chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Ventana de Chat */
.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 50px);
    height: 500px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(45, 62, 50, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Cabecera del Chat */
.chatbot-header {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.profile-avatar {
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.profile-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #2ec4b6;
    border-radius: 50%;
}

.chatbot-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 0.8;
    padding: 0.3rem;
    transition: color 0.2s;
}

.chatbot-close:hover {
    color: var(--white);
}

/* Área de Mensajes */
.chatbot-messages {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f9fbf9;
    scroll-behavior: smooth;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.bot-message {
    background-color: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    border: 1px solid rgba(45, 62, 50, 0.05);
}

.user-message {
    background-color: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Indicador de escritura (Cargador) */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background-color: var(--white);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    border: 1px solid rgba(45, 62, 50, 0.05);
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-light);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Sugerencias de Conversación */
.chatbot-suggestions {
    padding: 0.5rem 1rem 0.8rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    background-color: #f9fbf9;
    scrollbar-width: none; /* Firefox */
}

.chatbot-suggestions::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.suggestion-chip {
    white-space: nowrap;
    background-color: var(--white);
    border: 1px solid var(--primary-light);
    color: var(--primary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.suggestion-chip:hover {
    background-color: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

/* Input del Chat */
.chatbot-input-area {
    padding: 0.8rem 1rem;
    background-color: var(--white);
    border-top: 1px solid rgba(45, 62, 50, 0.08);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chatbot-input-area input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 0.7rem 1rem;
    border-radius: 24px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input-area input:focus {
    border-color: var(--primary-light);
}

.chatbot-input-area button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chatbot-input-area button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.chatbot-input-area button:active {
    transform: scale(0.95);
}

.chatbot-input-area button svg {
    margin-left: 2px;
}

/* ============================================================
   Agendador propio (calendario + pago)
   ============================================================ */
.booking-flow {
    position: relative;
    min-height: 280px;
}

.bk-step {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.bk-step.bk-center {
    align-items: center;
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.bk-step-title {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin: 0;
}

.bk-summary {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.bk-back {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
}

.bk-back:hover { text-decoration: underline; }

/* Fechas */
.bk-dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.bk-date {
    padding: 0.6rem 0.4rem;
    border: 1px solid var(--bg-secondary);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-dark);
    text-transform: capitalize;
    transition: var(--transition-fast);
}

.bk-date:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
}

/* Horarios */
.bk-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
}

.bk-slot {
    padding: 0.7rem;
    border: 1px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-fast);
}

.bk-slot:hover {
    background: var(--primary);
    color: var(--white);
}

.bk-empty {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Formulario */
.bk-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bk-form input,
.bk-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-dark);
    box-sizing: border-box;
}

.bk-form input:focus,
.bk-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.bk-submit { margin-top: 0.3rem; }

.bk-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0.6rem 0 0;
}

.bk-error {
    color: var(--error);
    font-size: 0.85rem;
    margin: 0;
}

.bk-big-emoji { font-size: 2.5rem; }

#mp-brick { margin-top: 0.5rem; }

