/*
Theme Name: BAC-726
Author: Edgar Andres
Description: Body Art Center (Cancún) — healthcare/LegitScript-oriented recreation of the "July O2"
             theme. Preserves the original design concept, layout, brand palette (burgundy + gold)
             and typography (Playfair Display / Cormorant Garamond / Montserrat) while refining
             typography consistency, spacing, alignment and overall visual quality, and restoring
             the complete homepage (services, products, testimonials, appointment form + contact).
             Front-end presentation only — all backend behaviour, custom post types, ACF hooks,
             Instagram integration, markup classes and IDs are preserved.
Version: 1.0
*/

/* ==========================================================================
   1. VARIABLES GLOBALES DE DISEÑO  (paleta de marca PRESERVADA)
   ========================================================================== */
:root {
    /* Paleta de color de marca — sin cambios */
    --primary:        #8C030E;   /* Rojo burdeos — autoridad clínica */
    --primary-light:  #b0040f;
    --primary-dark:   #650209;
    --gold:           #C5A059;   /* Oro apagado — toque de lujo */
    --gold-hover:     #A68446;
    --gold-light:     #e8d5a3;
    --nude:           #FAF7F4;   /* Fondo nude premium */
    --white:          #ffffff;
    --charcoal:       #2D3748;   /* Texto principal de alta legibilidad */
    --muted:          #718096;   /* Texto secundario */
    --border:         #E2E8F0;
    --border-dark:    #cbd5e0;

    /* Superficies de apoyo derivadas de la paleta (tonos cálidos premium) */
    --cream:          #FBF8F5;
    --cream-deep:     #F4ECE4;
    --blush:          #FBF1F1;
    --ink:            #1c1410;   /* Marrón-tinta profundo para footer/lujo */

    /* Tipografías (ya cargadas en header.php) */
    --serif:   'Playfair Display', 'Cormorant Garamond', serif;
    --display: 'Cormorant Garamond', serif;
    --sans:    'Montserrat', sans-serif;

    /* Sombras — suaves y elegantes */
    --shadow-sm:  0 2px 10px rgba(45,32,24,0.05);
    --shadow-md:  0 14px 40px rgba(45,32,24,0.08);
    --shadow-lg:  0 28px 70px rgba(45,32,24,0.12);
    --shadow-xl:  0 40px 90px rgba(28,20,16,0.20);

    /* Transiciones reutilizables */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast:  all 0.25s var(--ease-out);
    --t-med:   all 0.45s var(--ease-out);
    --t-slow:  all 0.7s var(--ease-out);

    /* Layout */
    --max-w: 1240px;
    --header-h: 88px;
    --header-h-scrolled: 72px;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 100px;
}

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

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

body {
    font-family: var(--sans);
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: transparent; }
::selection { background: var(--gold-light); color: var(--primary-dark); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.75rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* Cursor personalizado desactivado en esta variante */
.cursor-dot, .cursor-ring { display: none; }

/* Evita que el header fijo tape el inicio de cada sección al navegar por anclas */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ==========================================================================
   3. ENCABEZADO DE SECCIÓN (compartido)
   ========================================================================== */
section { position: relative; }

.about-section, .services-section, .products-section,
.testimonials-section, .portal-section, .contact-section {
    padding: 7.5rem 0;
}
.about-section, .testimonials-section { background: var(--white); }
.services-section { background: var(--cream); }
.products-section { background: var(--white); }
.portal-section { background: var(--cream); }
.contact-section { background: var(--white); }

.section-header { margin-bottom: 4rem; max-width: 720px; }
.section-header.text-center { margin-left: auto; margin-right: auto; }

.section-tag {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--gold-hover);
    margin-bottom: 1.4rem;
}
.section-tag::before {
    content: ''; width: 28px; height: 1px; background: var(--gold);
}
.text-center .section-tag { justify-content: center; }
.text-center .section-tag::after { content: ''; width: 28px; height: 1px; background: var(--gold); }

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
    color: var(--charcoal);
}
.title-line {
    width: 70px; height: 2px; background: var(--gold);
    margin-top: 1.5rem; position: relative;
}
.title-line::after {
    content: ''; position: absolute; left: 0; top: -1.5px; width: 22px; height: 4px;
    background: var(--primary); border-radius: var(--radius-pill);
}
.title-line.mx-auto { margin-left: auto; margin-right: auto; }
.title-line.mx-auto::after { left: 50%; transform: translateX(-50%); }
.section-desc { margin-top: 1.3rem; color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   4. BOTONES
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 1.05rem 2.2rem;
    border-radius: var(--radius-pill);
    transition: var(--t-fast);
    border: 1.5px solid transparent;
    white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 26px rgba(140,3,14,0.24); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(140,3,14,0.32); }
.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--border-dark); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.btn-outline-gold { background: transparent; color: var(--gold-hover); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--white); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(197,160,89,0.34); }

/* ==========================================================================
   5. LOADER
   ========================================================================== */
.page-loader {
    position: fixed; inset: 0; z-index: 9999; background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { font-family: var(--serif); font-size: 2rem; font-weight: 700; letter-spacing: 0.06em; color: var(--charcoal); margin-bottom: 1.4rem; }
.loader-logo span { color: var(--primary); font-style: italic; }
.loader-bar { width: 220px; height: 2px; background: var(--cream-deep); border-radius: var(--radius-pill); overflow: hidden; margin: 0 auto; }
.loader-progress { width: 0; height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold)); animation: loaderFill 1.8s var(--ease-out) forwards; }
@keyframes loaderFill { to { width: 100%; } }

/* ==========================================================================
   6. HEADER / NAVEGACIÓN
   ========================================================================== */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-h);
    background: transparent; transition: var(--t-fast);
}
.main-header.scrolled {
    background: rgba(251,248,245,0.85); backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(197,160,89,0.18), var(--shadow-sm);
    height: var(--header-h-scrolled);
}
.header-container {
    max-width: var(--max-w); height: 100%; margin: 0 auto; padding: 0 1.75rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { flex-shrink: 0; }
.logo a { display: flex; flex-direction: column; line-height: 1; }
.logo-body { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; color: var(--charcoal); white-space: nowrap; }
.logo-center { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.5em; color: var(--gold-hover); margin-top: 4px; }

.nav-menu ul { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
    position: relative; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em;
    color: var(--charcoal); padding: 0.6rem 0.9rem; transition: var(--t-fast); white-space: nowrap;
}
.nav-link::after {
    content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem; height: 1.5px;
    background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform 0.35s var(--ease-out);
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { transform: scaleX(1); }
.nav-login-btn { color: var(--muted); }
.nav-login-btn:hover { color: var(--primary); }
.nav-link.btn-appointment-nav {
    background: var(--primary); color: var(--white); border-radius: var(--radius-pill);
    padding: 0.7rem 1.4rem; margin-left: 0.5rem; letter-spacing: 0.08em;
    box-shadow: 0 8px 20px rgba(140,3,14,0.22);
}
.nav-link.btn-appointment-nav::after { display: none; }
.nav-link.btn-appointment-nav:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }

/* Hamburguesa */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px; justify-content: center; z-index: 1100; flex-shrink: 0; }
.hamburger span { display: block; height: 2px; width: 100%; background: var(--charcoal); border-radius: 2px; transition: var(--t-fast); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop { position: fixed; inset: 0; background: rgba(28,20,16,0.45); opacity: 0; visibility: hidden; transition: var(--t-fast); z-index: 999; }
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero-section {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 3rem) 0 4rem; overflow: hidden; background: var(--ink);
}
.hero-bg {
    position: absolute; inset: -8% 0 0 0;
    background: url('background1.jpg') center/cover no-repeat;
    z-index: 0; will-change: transform;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(28,20,16,0.86) 0%, rgba(101,2,9,0.55) 45%, rgba(28,20,16,0.25) 100%),
        radial-gradient(120% 80% at 80% 20%, rgba(197,160,89,0.18) 0%, transparent 10%);
}
.hero-content { position: relative; z-index: 3; max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 1.75rem; }
.hero-location {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-light); margin-bottom: 1.6rem;
}
.hero-content h1 {
    font-family: var(--serif); font-size: clamp(2.8rem, 6.4vw, 5rem);
    font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; color: var(--white); max-width: 16ch;
}
.hero-content h1 em { color: var(--gold-light); font-style: italic; font-weight: 600; }
.hero-subtitle { margin: 1.8rem 0 2.6rem; font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 50ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.hero-cta .btn-secondary:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.hero-stats {
    position: relative; z-index: 3; max-width: var(--max-w); width: 100%;
    margin: 4rem auto 0; padding: 0 1.75rem;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.stat-chip {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px); border-radius: var(--radius-md); padding: 1.7rem 1.8rem;
}
.stat-chip-number { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--white); }
.stat-chip-suffix { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--gold-light); }
.stat-chip-label { display: block; margin-top: 0.35rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

.hero-scroll-hint { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 3; text-align: center; color: rgba(255,255,255,0.7); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; }
.scroll-arrow { margin-top: 0.6rem; animation: bounce 1.9s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ==========================================================================
   8. NOSOTROS
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 4rem; align-items: start; margin-bottom: 5.5rem; }
.about-intro {
    font-family: var(--display); font-size: 1.55rem; font-weight: 400; line-height: 1.55;
    color: var(--charcoal); margin-bottom: 2.4rem;
}
.about-intro::first-letter { color: var(--primary); }

.mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card {
    background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 2rem; transition: var(--t-med);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.mv-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--primary); font-size: 1.3rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm); }
.mv-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--charcoal); }
.mv-card p { font-size: 0.94rem; color: var(--muted); font-style: italic; }

.about-metrics { display: flex; flex-direction: column; gap: 1.25rem; }
.metric-block {
    background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--gold);
    border-radius: var(--radius-md); padding: 1.7rem 1.9rem;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem; transition: var(--t-fast);
}
.metric-block:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.metric-num { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--primary); line-height: 1; }
.metric-symbol { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--gold-hover); }
.metric-label { flex-basis: 100%; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }

.values-section { margin-bottom: 5.5rem;}
.values-heading { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); text-align: center; margin-bottom: 3rem; color: var(--charcoal); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 2.2rem 1.8rem; text-align: center; transition: var(--t-med); position: relative; overflow: hidden;
}
.value-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--gold)); transform: scaleX(0); transition: transform 0.4s var(--ease-out); }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.value-card:hover::before { transform: scaleX(1); }
.value-icon-wrap { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--primary); font-size: 1.5rem; margin: 0 auto 1.3rem; transition: var(--t-fast); }
.value-card:hover .value-icon-wrap { background: var(--primary); color: var(--white); transform: scale(1.08); }
.value-card h4 { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--charcoal); }
.value-card p { font-size: 0.88rem; color: var(--muted); }
.value-line { width: 0; height: 2px; background: var(--gold); margin: 1.2rem auto 0; transition: width 0.45s var(--ease-out); }
.value-card:hover .value-line { width: 44px; }

.team-section .values-heading { margin-bottom: 3rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.doctor-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: var(--t-med); }
.doctor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.doctor-avatar { position: relative; aspect-ratio: 4/3.5; background: linear-gradient(150deg, var(--primary), var(--primary-dark)); display: grid; place-items: center; overflow: hidden; }
.doctor-avatar::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 10%, rgba(197,160,89,0.3), transparent 55%); }
.avatar-initials { font-family: var(--serif); font-size: 2.9rem; font-weight: 700; color: rgba(255,255,255,0.95); letter-spacing: 0.05em; z-index: 1; }
.doctor-overlay { position: absolute; inset: 0; background: rgba(101,2,9,0.62); display: grid; place-items: center; opacity: 0; transition: var(--t-fast); z-index: 2; }
.doctor-card:hover .doctor-overlay { opacity: 1; }
.doctor-cta { background: var(--white); color: var(--primary); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.7rem 1.6rem; border-radius: var(--radius-pill); }
.doctor-info { padding: 1.5rem 1.6rem 1.8rem; text-align: center; }
.doctor-info h4 { font-family: var(--serif); font-size: 1.2rem; color: var(--charcoal); margin-bottom: 0.3rem; }
.doctor-specialty { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-hover); margin-bottom: 0.7rem; }
.doctor-info p { font-size: 0.86rem; color: var(--muted); }

/* ==========================================================================
   9. SERVICIOS
   ========================================================================== */
.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 3.25rem; }
.tab-btn {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted);
    padding: 0.7rem 1.6rem; border-radius: var(--radius-pill); border: 1px solid var(--border-dark);
    background: var(--white); transition: var(--t-fast);
}
.tab-btn:hover { color: var(--primary); border-color: var(--primary); }
.tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 8px 20px rgba(140,3,14,0.2); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card { position: relative; transition: var(--t-med); }
.service-card.hidden { display: none; }
.service-card-inner {
    position: relative; z-index: 2; height: 100%;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 2.4rem 2.1rem; transition: var(--t-med); overflow: hidden;
}
.service-card:hover .service-card-inner { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-tag { display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); margin-bottom: 1.3rem; }
.cirugia-tag { background: var(--blush); color: var(--primary); }
.inyectable-tag { background: #fbf2e3; color: var(--gold-hover); }
.tecnologia-tag { background: #eef1f6; color: var(--charcoal); }
.service-icon { width: 60px; height: 60px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--cream); font-size: 1.6rem; color: var(--primary); margin-bottom: 1.3rem; transition: var(--t-fast); }
.service-card:hover .service-icon { background: var(--primary); color: var(--white); }
.service-card h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.8rem; color: var(--charcoal); }
.service-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }
.service-link { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); transition: var(--t-fast); }
.service-link:hover { gap: 0.9rem; color: var(--gold-hover); }
.service-card-glow { display: none; }

/* ==========================================================================
   10. PRODUCTOS
   ========================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.services-container { display: contents; }

.product-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
    overflow: hidden; position: relative;
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
    display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-badge {
    position: absolute; top: 1rem; left: 1rem; z-index: 4;
    background: var(--gold); color: var(--white);
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
}
.product-image { aspect-ratio: 1/1; overflow: hidden; background: var(--cream); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem; color: var(--gold); background: linear-gradient(150deg, var(--blush), var(--cream-deep)); }
.product-info { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hover); margin-bottom: 0.55rem; }
.product-info h4 { font-family: var(--serif); font-size: 1.18rem; line-height: 1.25; margin-bottom: 0.55rem; color: var(--charcoal); }
.product-info p { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.3rem; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; }
.product-price, .price { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.product-price small { font-size: 0.68rem; color: var(--muted); font-weight: 500; letter-spacing: 0.05em; }
.btn-product, .duration {
    background: var(--primary); color: var(--white);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
    padding: 0.6rem 1.2rem; border-radius: var(--radius-pill); border: 1.5px solid var(--primary);
    display: inline-flex; align-items: center; gap: 0.45rem; transition: var(--t-fast);
}
.btn-product:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.duration { background: var(--blush); color: var(--primary); border-color: transparent; }

/* ==========================================================================
   11. TESTIMONIOS
   ========================================================================== */
.testimonials-section { background: var(--ink); overflow: hidden; }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-tag { color: var(--gold-light); }
.testimonials-section .section-tag::before, .testimonials-section .section-tag::after { background: var(--gold); }
.testimonials-bg-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(197,160,89,0.16) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.6; z-index: 0;
}
.testimonials-section .container { position: relative; z-index: 2; }
.carousel-wrapper { position: relative; max-width: 860px; margin: 0 auto; }
.carousel-track { position: relative; min-height: 340px; }
.testimonial-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(18px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out), visibility 0.65s;
}
.testimonial-slide.active { position: relative; opacity: 1; visibility: visible; transform: translateY(0); }
.testimonial-body {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px); border-radius: var(--radius-lg);
    padding: 3.5rem 3.5rem 3rem; position: relative; text-align: center;
}
.quote-mark { font-family: var(--serif); font-size: 5.5rem; line-height: 0.4; color: var(--gold); height: 2.4rem; }
.testimonial-text { font-family: var(--display); font-size: 1.55rem; font-style: italic; line-height: 1.6; color: var(--white); margin-bottom: 2rem; }
.testimonial-author-block { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.author-avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: 1.15rem; background: var(--av-color, var(--primary)); box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }
.author-details { text-align: left; }
.author-details strong { display: block; color: var(--white); font-size: 1.02rem; }
.author-details span { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.stars { color: var(--gold-light); font-size: 0.8rem; margin-top: 0.25rem; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: var(--white);
    transition: var(--t-fast); display: grid; place-items: center;
}
.carousel-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-50%) scale(1.08); }
.btn-prev { left: -16px; }
.btn-next { right: -16px; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.4rem; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: var(--t-fast); }
.carousel-dot.active { background: var(--gold); width: 30px; border-radius: var(--radius-pill); }

/* ==========================================================================
   12. PORTAL
   ========================================================================== */
.portal-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2.25rem; align-items: stretch; }
.portal-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem; box-shadow: var(--shadow-sm); }
.admin-portal { background: linear-gradient(155deg, var(--primary), var(--primary-dark)); color: var(--white); border-color: transparent; }
.portal-icon { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--blush); color: var(--primary); margin-bottom: 1.5rem; }
.admin-icon { background: rgba(255,255,255,0.14); color: var(--gold-light); }
.portal-card h3 { font-family: var(--serif); font-size: 1.85rem; margin-bottom: 0.9rem; }
.portal-card p { color: var(--muted); margin-bottom: 1.8rem; }
.admin-portal p { color: rgba(255,255,255,0.78); }
.portal-features { margin-bottom: 2.1rem; display: flex; flex-direction: column; gap: 0.85rem; }
.portal-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; color: var(--charcoal); transition: var(--t-fast); }
.admin-portal .portal-features li { color: rgba(255,255,255,0.88); }
.portal-features li i { color: var(--gold); font-size: 0.85rem; }
.admin-portal .portal-features li i { color: var(--gold-light); }
.portal-divider { display: grid; place-items: center; }
.portal-divider span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--border); color: var(--gold-hover); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }

/* ==========================================================================
   13. CONTACTO
   contact-grid grid-template-columns: 1.05fr 0.95fr; AFTER DISPLAY GRID 
   ========================================================================== */

.contact-grid { display: grid; gap: 2.5rem; justify-content: center; align-items: center; }
.contact-form-panel, .contact-info-panel { border-radius: var(--radius-lg); padding: 3rem; }
.contact-info-panel { max-width:800px;max-height: 1080px;}
.contact-form-panel { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.contact-info-panel { background: var(--ink); color: rgba(255,255,255,0.82); }
.contact-form-panel h3, .contact-info-panel h3 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 0.6rem; }
.contact-form-panel h3 { color: var(--charcoal); }
.contact-info-panel h3 { color: var(--white); }
.form-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 2.1rem; }
.contact-info-panel .form-desc { color: rgba(255,255,255,0.65); }

.appointment-form, .modal-form { display: flex; flex-direction: column; gap: 1.6rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-floating { position: relative; }
.form-floating input, .form-floating select, .form-floating textarea {
    width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--charcoal);
    padding: 1.2rem 1.1rem 0.55rem; background: var(--cream);
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    transition: var(--t-fast); resize: vertical;
}
.form-floating textarea { min-height: 120px; }
.form-floating label { position: absolute; left: 1.1rem; top: 1rem; font-size: 0.95rem; color: var(--muted); pointer-events: none; transition: var(--t-fast); }
.form-floating input:focus, .form-floating select:focus, .form-floating textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(197,160,89,0.14); }
.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label,
.form-floating select:focus + label,
.form-floating select:valid + label {
    top: 0.32rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-hover);
}
.form-select-wrap select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; }
.input-line { display: none; }
.btn-submit { margin-top: 0.5rem; width: 100%; }

.success-message { margin-top: 1.5rem; text-align: center; padding: 1.7rem; background: #eef9f1; border: 1px solid #bfe6cb; border-radius: var(--radius-md); color: #1f7a4d; }
.success-message i { font-size: 2rem; margin-bottom: 0.4rem; }
.success-message strong { display: block; margin-bottom: 0.2rem; }
.success-message p { font-size: 0.9rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(197,160,89,0.16); color: var(--gold-light); font-size: 1.05rem; }
.contact-item h5 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.88rem; color: rgba(255,255,255,0.78); }

.map-container { position: relative; height: 210px; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(150deg, var(--primary), var(--primary-dark)); margin-bottom: 1.9rem; display: grid; place-items: center; }
.map-container::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 20%, rgba(197,160,89,0.28), transparent 55%); }
.map-pin-overlay { text-align: center; color: var(--white); position: relative; z-index: 1; }
.map-pin-overlay i { font-size: 2rem; margin-bottom: 0.5rem; color: var(--gold-light); }
.map-pin-overlay strong { display: block; font-size: 1.08rem; font-family: var(--serif); }
.map-pin-overlay span { font-size: 0.82rem; opacity: 0.85; }
.map-link { display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 0.9rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); }
.social-links { display: flex; gap: 0.7rem; }
.social-links a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: var(--white); transition: var(--t-fast); }
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-4px); }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.main-footer { background: var(--ink); color: rgba(255,255,255,0.66); }
.footer-top { padding: 5rem 0 3.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2.75rem; }
.footer-logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 1.1rem; }
.footer-logo span { color: var(--gold); }
.footer-brand p { font-size: 0.92rem; margin-bottom: 1.5rem; }
.footer-certs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-certs span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; letter-spacing: 0.05em; padding: 0.4rem 0.85rem; border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-pill); }
.footer-certs i { color: var(--gold); }
.footer-nav h5, .footer-legal h5 { color: var(--white); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.3rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a { font-size: 0.9rem; transition: var(--t-fast); }
.footer-nav a:hover { color: var(--gold); padding-left: 5px; }
.footer-legal p { font-size: 0.82rem; margin-bottom: 0.85rem; line-height: 1.65; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.6rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.82rem; transition: var(--t-fast); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ==========================================================================
   15. MODAL
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(28,20,16,0.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: var(--t-fast); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 470px; padding: 3rem 2.75rem; position: relative; box-shadow: var(--shadow-xl); max-height: 92vh; overflow-y: auto; transform: translateY(18px) scale(0.98); transition: transform 0.45s var(--ease-out); }
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 1.3rem; right: 1.3rem; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--charcoal); display: grid; place-items: center; transition: var(--t-fast); }
.modal-close:hover { background: var(--primary); color: var(--white); }
.modal-logo { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; text-align: center; color: var(--charcoal); }
.modal-logo span { color: var(--primary); }
.modal-subtitle { text-align: center; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hover); margin-bottom: 1.8rem; }
.modal-tabs { display: flex; background: var(--cream); border-radius: var(--radius-pill); padding: 5px; margin-bottom: 1.9rem; }
.modal-tab { flex: 1; padding: 0.75rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); border-radius: var(--radius-pill); transition: var(--t-fast); }
.modal-tab.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }
.modal-panel { display: none; }
.modal-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.forgot-pass { font-size: 0.82rem; color: var(--primary); text-align: right; }
.btn-modal-submit { width: 100%; }
.modal-divider { display: flex; align-items: center; gap: 1rem; margin: 1.7rem 0; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.05em; }
.modal-divider::before, .modal-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem; border: 1.5px solid var(--border-dark); border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 600; color: var(--charcoal); transition: var(--t-fast); }
.social-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--blush); }
.password-strength { display: flex; align-items: center; gap: 0.7rem; font-size: 0.76rem; background: var(--cream); border-radius: var(--radius-pill); padding: 0.55rem 0.85rem; }
.password-strength .pw-bar { height: 6px; width: 0; border-radius: var(--radius-pill); background: var(--primary); transition: var(--t-fast); flex: 0 0 auto; min-width: 60px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); }
.checkbox-label input { margin-top: 3px; accent-color: var(--primary); }
.checkbox-label a { color: var(--primary); }

/* ==========================================================================
   16. WIDGETS FLOTANTES
   ========================================================================== */
.whatsapp-float { position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 1500; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white); font-size: 1.7rem; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,0.42); transition: var(--t-fast); }
.whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: waPulse 2s infinite; z-index: -1; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }
.whatsapp-float:hover { transform: scale(1.1); }
.wa-tooltip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--ink); color: var(--white); font-size: 0.78rem; padding: 0.55rem 1rem; border-radius: var(--radius-sm); opacity: 0; pointer-events: none; transition: var(--t-fast); }
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

.back-to-top { position: fixed; bottom: 1.6rem; right: 6.2rem; z-index: 1400; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--t-fast); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ==========================================================================
   17. ANIMACIONES DE REVELADO
   ========================================================================== */
.scroll-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--delay, 0s); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */

/* --- Medium / tablet: colapsar la navegación a menú lateral para EVITAR el
       solapamiento del logo, los enlaces y el botón en anchos intermedios --- */
@media (max-width: 1024px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed; top: 0; right: 0; height: 100vh; width: min(86vw, 360px);
        background: var(--white); box-shadow: var(--shadow-xl);
        transform: translateX(100%); transition: transform 0.45s var(--ease-out);
        padding: calc(var(--header-h) + 1.5rem) 2rem 2rem; overflow-y: auto;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu ul { flex-direction: column; align-items: stretch; gap: 0.3rem; }
    .nav-link { padding: 0.95rem 1.1rem; font-size: 0.92rem; }
    .nav-link::after { display: none; }
    .nav-link.btn-appointment-nav { margin-left: 0; margin-top: 0.6rem; text-align: center; justify-content: center; }

    .values-grid, .team-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .portal-grid { grid-template-columns: 1fr; }
    .portal-divider { display: none; }
}

@media (max-width: 768px) {
    .hero-stats { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .mission-vision-grid { grid-template-columns: 1fr; }
    .about-section, .services-section, .products-section,
    .testimonials-section, .portal-section, .contact-section { padding: 5rem 0; }
    .btn-prev { left: 0; }
    .btn-next { right: 0; }
    .testimonial-body { padding: 2.6rem 1.7rem; }
    .testimonial-text { font-size: 1.3rem; }
}

@media (max-width: 540px) {
    .values-grid, .team-grid, .products-grid, .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.6rem; }
    .about-intro { font-size: 1.3rem; }
    .contact-form-panel, .contact-info-panel, .portal-card { padding: 2rem; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .back-to-top { right: 1.6rem; bottom: 5.6rem; }
}

/* ==========================================================================
   18. SECCIÓN PROMOCIONES  (añadida — debajo del hero)
   Dos plantillas:
     A) Slideshow cinematográfico 16:9  (.promo-slideshow)
     B) Tira estilo Instagram 1:1       (.ig-promos)
   Usa la paleta de marca: burdeos (--primary), oro (--gold), tinta (--ink).
   ========================================================================== */
.promo-section { padding: 7.5rem 0; background: var(--cream); }
.promo-section .section-header { margin-bottom: 3.2rem; }

/* --------------------------------------------------------------------------
   A) SLIDESHOW 16:9
   -------------------------------------------------------------------------- */
.promo-slideshow {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--ink);
    aspect-ratio: 4 / 5;
}

/* La ventana fija la relación de aspecto 16:9 — el corazón de la plantilla */
.promo-viewport {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
}

/* Cada slide se apila en el mismo espacio y aparece con fade */
.promo-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.promo-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.promo-slide-img {
   
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s ease-out;
    aspect-ratio: 4 / 5;
}

.promo-slide.is-active .promo-slide-img { transform: scale(1); }


/* Overlay degradado de marca para legibilidad del texto */
.promo-slide-overlay {
    position: absolute; inset: 0;
    background:
        /* 
        linear-gradient(105deg, rgba(28,20,16,0.86) 0%, rgba(101,2,9,0.55) 45%, rgba(28,20,16,0.10) 100%),
        linear-gradient(0deg, rgba(28,20,16,0.55) 0%, transparent 55%);
        */
}

.promo-slide-content {
    position: absolute; inset: 0; z-index: 3;
    display: flex-end; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.15rem;
    padding: clamp(1.5rem, 5vw, 4rem);
    max-width: 440px;
}

.promo-badge {
    display: inline-flex; align-items:flex-start; justify-content: flex-end; gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    padding: 0.5rem 1rem; border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(197,160,89,0.4);
}
.promo-slide-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1.1;
    color: var(--white);
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.promo-slide-title em { font-style: italic; color: var(--gold-light); }
.promo-slide-text {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: rgba(255,255,255,0.9);
    max-width: 46ch; line-height: 1.7;
}
.promo-slide-cta { position: absolute; bottom: 1.2rem; right: 1.2rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.3rem; }
.promo-price {
    font-family: var(--display); color: var(--gold-light);
    font-size: 1.5rem; font-weight: 600; line-height: 1;
}
.promo-price span { display: block; font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.25rem; }

/* Flechas de navegación */
.promo-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.14); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3); color: var(--white);
    font-size: 0.95rem; transition: var(--t-fast);
}
.promo-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-50%) scale(1.08); }
.promo-prev { left: 1.1rem; }
.promo-next { right: 1.1rem; }

/* Dots */
.promo-dots {
    position: absolute; left: 0; right: 0; bottom: 1.3rem; z-index: 6;
    display: flex; justify-content: center; gap: 0.5rem;
}
.promo-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255,255,255,0.4); transition: var(--t-fast);
}
.promo-dot.active { background: var(--gold); width: 30px; border-radius: var(--radius-pill); }

/* --------------------------------------------------------------------------
   B) TIRA ESTILO INSTAGRAM 1:1
   -------------------------------------------------------------------------- */
.ig-promos {
    position: relative;
    max-width: 1080px; margin: 4rem auto 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

/* Cabecera tipo perfil de Instagram */
.ig-header { display: flex; align-items: center; gap: 1rem; padding: 0.25rem 0.25rem 1.25rem; }
.ig-avatar {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    color: var(--white); font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
    /* Anillo degradado característico de Instagram, en tonos de marca */
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--white), 0 0 0 6px transparent;
    position: relative;
}
.ig-avatar::before {
    content: ''; position: absolute; inset: -6px; border-radius: 50%; z-index: -1;
    background: conic-gradient(from 210deg, var(--gold), var(--primary-light), var(--gold-hover), var(--primary), var(--gold));
}
.ig-meta { display: flex; flex-direction: column; line-height: 1.3; }
.ig-meta strong { font-size: 0.98rem; color: var(--charcoal); display: flex; align-items: center; gap: 0.35rem; }
.ig-meta strong i { color: var(--gold-hover); font-size: 0.82rem; }
.ig-meta span { font-size: 0.82rem; color: var(--muted); }
.ig-follow {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--white); background: var(--primary);
    padding: 0.6rem 1.3rem; border-radius: var(--radius-pill);
    transition: var(--t-fast);
}
.ig-follow:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Pista con scroll horizontal y scroll-snap */
.ig-track {
    display: flex; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0.25rem; scroll-behavior: smooth;
    scrollbar-width: none;          /* Firefox */
}
.ig-track::-webkit-scrollbar { display: none; }   /* Chrome/Safari */

/* Tarjeta cuadrada 1:1 */
.ig-card {
    flex: 0 0 clamp(220px, 28%, 280px);
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--t-fast);
}
.ig-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }

.ig-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.ig-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.ig-card:hover .ig-card-media img { transform: scale(1.07); }
.ig-tag {
    position: absolute; top: 0.8rem; left: 0.8rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
    color: var(--white); background: var(--primary);
    padding: 0.35rem 0.75rem; border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}
.ig-card-cap { padding: 0.9rem 1rem 1.1rem; }
.ig-card-cap p { font-size: 0.85rem; color: var(--charcoal); line-height: 1.5; margin-bottom: 0.6rem; }
.ig-card-cap strong { color: var(--primary); }
.ig-like { font-size: 0.76rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.ig-like i { color: var(--primary-light); }

/* Flechas del carrusel IG (desktop) */
.ig-arrow {
    position: absolute; top: calc(50% + 30px); transform: translateY(-50%); z-index: 4;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--white); border: 1px solid var(--border); color: var(--charcoal);
    box-shadow: var(--shadow-md); transition: var(--t-fast);
}
.ig-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.ig-prev { left: -10px; }
.ig-next { right: -10px; }

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .promo-slide, .promo-slide-img, .ig-track { transition: none; }
    .promo-slide.is-active .promo-slide-img { transform: scale(1); }
}

/* Responsive de la sección de promociones */
@media (max-width: 768px) {
    .promo-section { padding: 5rem 0; }
    .promo-slide-content { max-width: 100%; }
    .promo-arrow { width: 42px; height: 42px; }
    .promo-prev { left: 0.6rem; } .promo-next { right: 0.6rem; }
    .ig-arrow { display: none; }   /* En móvil se usa swipe nativo */
    .ig-card { flex-basis: 70%; }
}
@media (max-width: 540px) {
    .promo-slide-cta { gap: 1rem; }
    .promo-price { font-size: 1.2rem; }
    .ig-promos { padding: 1rem; }
    .ig-card { flex-basis: 78%; }
}

/* ==========================================================================
   JULY O2 · Ajustes de cumplimiento (LegitScript / Meta)
   Estilos añadidos para los elementos nuevos de la revisión de cumplimiento.
   No se modifica ninguna regla existente; sólo se añaden reglas nuevas.
   ========================================================================== */

/* --- Hero: chips de confianza cualitativos (sustituyen a las cifras) ------- */
.hero-stats .stat-chip { text-align: center; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.65rem; }
.hero-stats .stat-chip > i { font-size: 1.7rem; color: var(--gold-light); }
.hero-stats .stat-chip .stat-chip-label { margin-top: 0; }

/* --- Nosotros: bloques de compromiso (sustituyen a las métricas inventadas) - */
.commit-block { background: var(--white); border: 1px solid var(--border);
    border-left: 3px solid var(--gold); border-radius: var(--radius-md);
    padding: 1.5rem 1.7rem; transition: var(--t-fast); }
.commit-block:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.commit-icon { width: 46px; height: 46px; border-radius: 50%; display: grid;
    place-items: center; background: var(--blush); color: var(--primary);
    font-size: 1.15rem; margin-bottom: 0.9rem; }
.commit-block h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--charcoal);
    margin-bottom: 0.4rem; }
.commit-block p { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }

/* --- Dirección médica y credenciales (transparencia) ---------------------- */
.credentials-section { background: var(--cream); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 3rem 2.5rem; margin-bottom: 1rem; }
.credentials-section .values-heading { margin-bottom: 1rem; }
.credentials-intro { text-align: center; max-width: 720px; margin: 0 auto 2.5rem;
    color: var(--muted); font-size: 0.98rem; line-height: 1.7; }
.credentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.credential-card { background: var(--white); border: 1px solid var(--border);
    border-top: 3px solid var(--primary); border-radius: var(--radius-md); padding: 1.8rem;
    transition: var(--t-fast); }
.credential-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.credential-icon { width: 52px; height: 52px; border-radius: 50%; display: grid;
    place-items: center; background: var(--blush); color: var(--primary);
    font-size: 1.3rem; margin-bottom: 1rem; }
.credential-card h4 { font-family: var(--serif); font-size: 1.2rem; color: var(--charcoal);
    margin-bottom: 0.7rem; }
/* Uniform body typography across the three cards: normal-weight labels, 600 values.
   (Card 1 previously wrapped everything in <strong> with no <p>, which broke uniformity.) */
.credential-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.85; font-weight: 400; }
.credential-card p strong { color: var(--charcoal); font-weight: 600; }
.credentials-note { margin: 2rem 0 0; text-align: center; font-size: 0.85rem;
    color: var(--muted); background: var(--white); border: 1px dashed var(--border-dark);
    border-radius: var(--radius-md); padding: 1rem 1.3rem; line-height: 1.65; }
.credentials-note i, .section-disclaimer i { color: var(--gold-hover); margin-right: 0.4rem; }

/* --- Aviso médico a pie de sección ---------------------------------------- */
.section-disclaimer { max-width: 900px; margin: 2.5rem auto 0; text-align: center;
    font-size: 0.85rem; color: var(--muted); line-height: 1.7; background: var(--cream);
    border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.5rem; }

/* --- Instagram: estado neutro (sin fotos de stock ni descuentos ficticios) - */
.ig-card-empty { display: flex; align-items: center; justify-content: center;
    background: var(--cream); border: 1px dashed var(--border-dark); }
.ig-empty-cap { text-align: center; padding: 2rem 1.5rem; }
.ig-empty-cap > i { font-size: 2rem; color: var(--primary); margin-bottom: 0.8rem; display: block; }
.ig-empty-cap p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.ig-empty-btn { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.8rem;
    padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--primary); color: #fff;
    font-size: 0.82rem; transition: var(--t-fast); }
.ig-empty-btn:hover { background: var(--primary-dark); }

/* --- Consentimiento de datos en el formulario de contacto ----------------- */
.form-consent { margin-top: 1rem; font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
.form-consent a { color: var(--primary); text-decoration: underline; }

/* --- Footer: enlaces legales y aviso -------------------------------------- */
.footer-legal-links { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.footer-legal-links li { margin-bottom: 0.6rem; }
.footer-legal-links a { color: rgba(255,255,255,0.72); font-size: 0.86rem; transition: var(--t-fast); }
.footer-legal-links a:hover { color: var(--gold-light); }
.footer-legal-note { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* --- Páginas legales (Aviso de Privacidad / Términos) --------------------- */
.legal-page { padding: 130px 20px 80px; background: var(--nude); min-height: 100vh; }
.legal-container { max-width: 860px; margin: 0 auto; }
.legal-header { text-align: center; margin-bottom: 3rem; padding-bottom: 2rem;
    border-bottom: 1px solid var(--border); }
.legal-eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hover); margin-bottom: 1rem; }
.legal-header h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--charcoal); }
.legal-updated { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.legal-page h2 { font-family: var(--serif); font-size: 1.4rem; color: var(--primary); margin: 2.4rem 0 0.8rem; }
.legal-page h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--charcoal); margin: 1.4rem 0 0.5rem; }
.legal-page p { font-size: 0.95rem; color: var(--charcoal); line-height: 1.8; margin-bottom: 1rem; }
.legal-page ul { margin: 0 0 1.2rem 1.3rem; }
.legal-page li { font-size: 0.95rem; color: var(--charcoal); line-height: 1.8; margin-bottom: 0.5rem; }
.legal-page a { color: var(--primary); text-decoration: underline; }
.legal-disclaimer { margin-top: 2.5rem; padding: 1.2rem 1.4rem; background: var(--blush);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    font-size: 0.85rem !important; color: var(--muted) !important; line-height: 1.7; }

/* --- Responsive de los bloques nuevos ------------------------------------- */
@media (max-width: 860px) {
    .credentials-grid { grid-template-columns: 1fr; }
    .credentials-section { padding: 2.2rem 1.5rem; }
}
@media (max-width: 600px) {
    .hero-stats .stat-chip { flex-direction: row; justify-content: flex-start; gap: 0.8rem; }
    .hero-stats .stat-chip > i { font-size: 1.3rem; }
}

/* --- Productos: estado vacío (BAC-726) ------------------------------------ */
.products-empty { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem;
    color: var(--muted); }
.products-empty .product-img-placeholder { width: 84px; height: 84px; margin: 0 auto 1rem;
    border-radius: 50%; display: grid; place-items: center; background: var(--cream-deep);
    color: var(--gold-hover); font-size: 1.8rem; }
.products-empty p { font-size: 0.95rem; max-width: 420px; margin: 0 auto; }
