/*
Theme Name: New June
Author: Edgar Andres
Description: Standalone copy of "June Theme" extended with an admin-only Clinic Patient Manager
             entry point. Identical to "June Theme" except the "Dashboard Médico" portal card now
             links to the private Clinic Patient Manager panel (the [clinic_admin] shortcode page).
             Backend, markup hooks, classes, IDs and the brand color palette are preserved; the
             original "June Theme" folder is left completely untouched.
Version: 1.1
*/

/* ==========================================================================
   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('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?auto=format&fit=crop&w=1700&q=80') 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 60%);
}
.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 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: start; }
.contact-form-panel, .contact-info-panel { border-radius: var(--radius-lg); padding: 3rem; }
.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; }
}
