/* -------------------------------------------------------------
   SISTEMA DE DISEÑO - CENTRO ESTÉTICA BAMBOO
   Concepto: Minimalismo Orgánico + Temática Bamboo
   ------------------------------------------------------------- */

/* Variables CSS */
:root {
    /* Paleta de Colores Obligatoria */
    --color-primary: #1C2E24;     /* Bambú Profundo */
    --color-secondary: #EAE7E0;   /* Lino Natural */
    --color-accent: #A9BA9D;      /* Brote de Musgo */
    --color-bg: #F9F8F6;          /* Niebla de Mañana */
    --color-text-main: #141F1A;    /* Corteza de Humo */
    --color-text-sub: #6E7A72;     /* Sombra de Tallo */
    
    /* Tipografías y Tamaños */
    --font-title: 'Playfair Display', serif;
    --font-sub: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Curva Bezier Emil Kowalski */
    --transition-custom: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset General */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* ==========================================================================
   0. DETALLES ESTÉTICOS Y TEMÁTICA BAMBÚ (DISRUPTIVO)
   ========================================================================== */

/* Fondo decorativo con la imagen "Fondo Bamboo" del cliente */
.bamboo-leaf-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Colocado detrás de todo el contenido */
    opacity: 0.10; /* Opacidad sutil para mantener el contraste de lectura WCAG AA */
    background-image: url('images/fondo bamboo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}




/* ==========================================================================
   1. LOADER & PROGRESS BAR
   ========================================================================== */

/* Loader Inicial (Fondo verde bambú con textura mezclada) */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-primary); /* Verde Bambú Profundo */
    background-image: url('images/fondo bamboo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-blend-mode: multiply; /* Mezcla la textura con el verde */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo-img {
    height: 120px; /* Tamaño del logo en fase de carga */
    width: auto;
    object-fit: contain;
    filter: invert(1); /* Invierte colores para mostrar logo claro sobre fondo oscuro */
    mix-blend-mode: screen; /* Transparencia en el fondo negro resultante */
    animation: fadeInLogo 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.loader-sub {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent); /* Tono Brote de Musgo sobre fondo oscuro */
    opacity: 0;
    animation: fadeInLogo 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Línea de progreso de carga superior */
.progress-bar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--color-accent);
    z-index: 100000;
    transition: width 0.4s ease-out;
}

/* ==========================================================================
   2. ESTRUCTURA Y MAQUETACIÓN GENERAL
   ========================================================================== */

.section-container {
    padding: 8rem 10%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 650px;
    text-align: left;
}

.section-sub {
    font-family: var(--font-sub);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-sub);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.25rem;
    line-height: 1.3;
    color: var(--color-primary);
    font-weight: 400;
}

.section-intro {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-sub);
    margin-top: 1.5rem;
}

/* Línea minimalista de conexión visual vertical */
.connector-line {
    width: 1px;
    height: 60px;
    background-color: var(--color-text-sub);
    opacity: 0.2;
    margin-top: 2rem;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: none;
    font-family: var(--font-sub);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition-custom);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover {
    color: var(--color-accent) !important;
}

.btn:hover .btn-line {
    width: 100%;
}

/* Feedback de Click */
.btn:active, .skin-type-card:active, .chatbot-fab:active, .quiz-option-btn:active {
    transform: scale(0.98);
    opacity: 0.92;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

/* Animación de entrada Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-slow);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   3. NAVEGACIÓN (HEADER CON CRISTAL LÍQUIDO)
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 248, 246, 0.85); /* Translúcido */
    backdrop-filter: blur(12px); /* Cristal líquido */
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(28, 46, 36, 0.02);
    transition: var(--transition-custom);
}

.header-container {
    max-width: 100%;
    min-height: 90px;
    padding: 0.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    height: 54px; /* Altura del logo oficial */
    width: auto;
    object-fit: contain; /* Proporción natural según AGENTS.md */
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    align-items: center;
}

.nav-item {
    font-family: var(--font-sub);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-main);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-custom);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-item:hover {
    color: var(--color-accent);
}

.nav-item:hover::after {
    width: 100%;
}

/* ==========================================================================
   4. HERO SECTION (INTERACTIVO CON PARALLAX Y DOBLE CTA)
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    overflow: hidden;
    padding-top: 90px;
}

/* Bloque Izquierdo (5 columnas) */
.hero-split-left {
    grid-column: span 5;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    padding-left: 10%;
    padding-right: 5%;
    border-right: 1px solid rgba(110, 122, 114, 0.1);
    position: relative;
    z-index: 2;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInHero 800ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.geo-tag {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-sub);
    position: relative;
    padding-left: 1.5rem;
}

.geo-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--color-primary);
    font-weight: 400;
}

.hero-manifesto {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-sub);
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Bloque Derecho (7 columnas) */
.hero-split-right {
    grid-column: span 7;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-media-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
}

.hero-kenburns-img {
    width: 110%; /* Sobredimensionada para compensar el efecto Parallax */
    height: 110%;
    position: absolute;
    top: -5%;
    left: -5%;
    object-fit: cover;
    transition: transform 0.2s ease-out; /* Parallax fluido */
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 46, 36, 0.08); /* Tinte de bambú */
    pointer-events: none;
    z-index: 2;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   5. SERVICIOS SECTION (CON HOVER 3D DE EMIL KOWALSKI)
   ========================================================================== */

.services-section {
    background-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    perspective: 1000px; /* Para efecto 3D */
}

.service-card {
    background-color: transparent;
    padding: 1.5rem; /* Relleno constante para evitar saltos de maquetación */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: background-color 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d; /* Soporte 3D */
}

.service-card-offset {
    transform: translateY(30px);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    transform: translateZ(20px); /* Separación visual en 3D */
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0.5rem;
    transform: translateZ(10px);
}

.card-number {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    color: var(--color-text-sub);
    letter-spacing: 0.1em;
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
}

.card-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-sub);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(110, 122, 114, 0.1);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.card-action {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
}

.arrow-icon {
    color: var(--color-primary);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hovers de las Cards */
.service-card:hover {
    background-color: var(--color-secondary);
    box-shadow: 0 10px 30px rgba(28, 46, 36, 0.05);
}

.service-card:hover .card-img {
    transform: scale(1.03);
}

.service-card:hover .arrow-icon {
    transform: translateX(5px);
}

/* ==========================================================================
   6. DIAGNÓSTICO DIGITAL PREVIO (CRISTAL CON GRADIENTE)
   ========================================================================== */

.diagnostic-section {
    background-color: var(--color-secondary);
    border-radius: 12px;
    margin: 4rem 10%;
    padding: 6rem 8%;
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.3);
}

.diagnostic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.skin-types-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.skin-type-card {
    background-color: var(--color-bg);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(110, 122, 114, 0.1);
    transition: var(--transition-custom);
}

.skin-type-card h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.skin-indicator {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-sub);
}

.skin-type-card:hover {
    border-color: var(--color-accent);
}

.skin-type-card.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.01);
}

.skin-type-card.active h4 {
    color: var(--color-bg);
}

.skin-type-card.active .skin-indicator {
    color: var(--color-accent);
}

/* Panel de recomendación con Glassmorphism */
.skin-recommendation-panel {
    background-color: rgba(249, 248, 246, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 3rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(28, 46, 36, 0.03);
}

.panel-skin-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    color: var(--color-primary);
    font-weight: 400;
}

.panel-skin-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-sub);
}

.panel-recommendation-box {
    background-color: var(--color-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
}

.panel-recommendation-box h5 {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-sub);
    margin-bottom: 0.5rem;
}

.recommended-treatment-name {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--color-primary);
}

/* ==========================================================================
   7. SOBRE NOSOTROS (FILOSOFÍA)
   ========================================================================== */

.philosophy-section {
    background-color: transparent;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: 6rem;
    align-items: center;
}

.philosophy-content-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.philosophy-essay {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-sub);
    text-align: left;
}

.philosophy-image-right {
    width: 100%;
}

.philosophy-image-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
}

.philosophy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.philosophy-image-wrapper:hover .philosophy-img {
    transform: scale(1.02);
}

/* ==========================================================================
   8. TESTIMONIOS (EXPERIENCIAS REALES)
   ========================================================================== */

.testimonials-section {
    background-color: transparent;
    border-top: 1px solid rgba(110, 122, 114, 0.1);
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.rating-number {
    font-family: var(--font-sub);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.rating-stars {
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

.rating-count {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
}

.testimonial-item {
    background-color: var(--color-bg);
    border: 1px solid rgba(110, 122, 114, 0.1);
    padding: 3rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: var(--transition-custom);
}

.testimonial-rating {
    color: var(--color-accent);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.testimonial-text {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-text-main);
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(110, 122, 114, 0.1);
    padding-top: 1.5rem;
}

.testimonial-author {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-date {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-sub);
}

.testimonial-item:hover {
    border-color: var(--color-accent);
    background-color: rgba(234, 231, 224, 0.2);
}

/* ==========================================================================
   9. UBICACIÓN Y CONTACTO (CON FACHADA EXTERIOR)
   ========================================================================== */

.contact-section {
    background-color: transparent;
    border-top: 1px solid rgba(110, 122, 114, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.map-container-wrapper {
    width: 100%;
}

.map-placeholder {
    width: 100%;
    height: 520px;
    background-color: var(--color-secondary);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(110, 122, 114, 0.2);
}

.live-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
    filter: grayscale(0.2) contrast(1.05); /* Desaturación sutil y elegante */
    transition: var(--transition-custom);
}

.live-map-iframe:hover {
    filter: grayscale(0); /* A todo color en interacción */
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.clinic-address-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-style: normal;
}

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

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-block h4 {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    font-weight: 600;
}

.info-block p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-sub);
}

.phone-link {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-custom);
    display: inline-block;
}

.phone-link:hover {
    color: var(--color-accent);
}

/* Banner de Fachada Exterior */
.exterior-image-card {
    width: 100%;
    height: 140px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(110, 122, 114, 0.1);
}

.exterior-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.exterior-image-card:hover .exterior-img {
    transform: scale(1.04);
}

.exterior-card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(28, 46, 36, 0.8);
    backdrop-filter: blur(4px);
    color: var(--color-secondary);
    padding: 0.3rem 0.8rem;
    font-family: var(--font-sub);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

/* ==========================================================================
   10. FOOTER CON LOGO INTEGRADO
   ========================================================================== */

.main-footer {
    background-color: var(--color-primary);
    padding: 4rem 10%;
    color: var(--color-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(234, 231, 224, 0.1);
    padding-top: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo-img {
    height: 48px; /* Proporción natural en footer */
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-link-item {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition-custom);
}

.footer-link-item:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.8rem;
    opacity: 0.8;
}

.agency-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-custom);
}

.agency-link:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   11. ASISTENTE MODAL DE RESERVA (WHATSAPP SEGMENTATION)
   ========================================================================== */

/* Botón flotante WhatsApp */
.chatbot-floating-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.chatbot-floating-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chatbot-fab {
    background-color: var(--color-accent);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(28, 46, 36, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-custom);
}

.chatbot-fab svg {
    transition: var(--transition-custom);
}

.chatbot-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(28, 46, 36, 0.25);
    background-color: var(--color-secondary);
}

.chatbot-fab:hover svg {
    stroke: var(--color-primary);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(28, 46, 36, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.open {
    opacity: 1;
}

/* Contenido del Modal con Cristal Líquido */
.modal-content {
    background-color: rgba(249, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

/* Cerrar Modal */
.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-sub);
    transition: var(--transition-custom);
}

.modal-close-btn:hover {
    color: var(--color-primary);
}

/* Estructura Quiz */
.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.quiz-step-indicator {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-sub);
}

.quiz-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
}

.quiz-progress-track {
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.quiz-progress-fill {
    height: 100%;
    width: 33%;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Paneles de pasos - Transición líquida horizontal */
.quiz-step-panel {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.quiz-step-panel.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Botón opción */
.quiz-option-btn {
    background-color: var(--color-bg);
    border: 1px solid rgba(110, 122, 114, 0.2);
    padding: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: var(--transition-custom);
    width: 100%;
}

.quiz-option-btn:hover {
    border-color: var(--color-accent);
    background-color: var(--color-secondary);
}

.quiz-option-btn.selected {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.quiz-option-btn.selected .option-title {
    color: var(--color-bg);
}

.quiz-option-btn.selected .option-desc {
    color: var(--color-accent);
}

.option-title {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition-custom);
}

.option-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-sub);
    transition: var(--transition-custom);
}

/* Navegación dentro del Quiz */
.quiz-navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-back {
    padding: 0.8rem 2rem;
}

.btn-submit {
    flex-grow: 1;
}

/* Tarjeta de Resumen */
.quiz-summary-card {
    background-color: var(--color-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(28, 46, 36, 0.1);
    padding-bottom: 0.5rem;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: var(--color-text-sub);
}

.summary-value {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.quiz-disclaimer {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-sub);
    line-height: 1.5;
}

/* ==========================================================================
   12. RESPONSIVIDAD (MOBILE-FIRST)
   ========================================================================== */

/* Breakpoint Móvil / Tablet (<= 1024px) */
@media (max-width: 1024px) {
    .section-container {
        padding: 6rem 5%;
        gap: 3rem;
    }

    .header-container {
        padding: 0.5rem 5%;
    }

    .nav-links {
        gap: 2rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .hero-split-left {
        grid-column: span 12;
        padding: 6rem 5% 4rem 5%;
        border-right: none;
        border-bottom: 1px solid rgba(110, 122, 114, 0.1);
    }

    .hero-split-right {
        grid-column: span 12;
        height: 450px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .service-card-offset {
        transform: translateY(0);
    }

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

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

    .philosophy-image-right {
        order: -1;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .map-placeholder {
        height: 380px;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Breakpoint Móvil Estricto (<= 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section-container {
        padding: 4rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .header-container {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .diagnostic-section {
        margin: 2rem 1.5rem;
        padding: 3rem 1.5rem;
    }

    .skin-recommendation-panel {
        padding: 1.5rem;
    }

    .contact-sub-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-item {
        padding: 2rem;
    }

    .map-placeholder {
        height: 320px;
    }

    .modal-content {
        padding: 2.5rem 1.5rem;
    }

    .chatbot-floating-container {
        bottom: 20px;
        right: 20px;
    }
}
