/* ---- css/fonts.css ---- */
/* Plus Jakarta Sans (SIL Open Font License 1.1), fuente variable, subconjunto latin.
   Alojada aqui para no depender de fonts.googleapis.com (pagina en blanco si no
   responde, CLS por el cambio de fuente y una peticion a Google por visita). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- css/tokens.css ---- */
/* ============================================================
   QUINTANA MEDICAL SERVICES — Design System Tokens
   WCAG 2.2 AA Compliant · "Bright Medical Premium" Direction
   ============================================================ */

:root {
  /* Surface & Base Backgrounds (60-70% ratio: Bright, luminous, warm) */
  --q-bg-primary:       #FAFAF7; /* Warm White */
  --q-bg-secondary:     #F5F3EC; /* Soft Ivory */
  --q-bg-surface:       #FFFFFF; /* Pure White Card Surface */
  --q-bg-surface-sage:  #DCE5DC; /* Soft Sage (Supporting surfaces) */
  --q-bg-dark:          #193D2A; /* Deep Forest Green (Footers, final CTA) */
  --q-bg-dark-overlay:  rgba(25, 61, 42, 0.94);

  /* Brand Greens (20-25% ratio: Structure, CTAs, Authority) */
  --q-green-deep:       #193D2A; /* Deep Forest Green - High Authority (11.5:1 on #FAFAF7) */
  --q-green-emerald:    #245640; /* Emerald Medical Green - Primary CTA (8.1:1 on #FAFAF7) */
  --q-green-hover:      #163725; /* Darker green hover state */
  --q-green-active:     #0F281B;

  /* Supporting Greens (5-10% ratio) */
  --q-sage:             #DCE5DC; /* Soft Sage */
  --q-eucalyptus:       #AABDAF; /* Muted Eucalyptus - Graphic lines, rings, borders */
  --q-mint-subtle:      #EDF4EF; /* Ultra-light mint tint for hover states */
  --q-leaf-accent:      #367B54;

  /* Restrained Warm Gold Accent (<5% ratio: Medical heritage & trust) */
  --q-gold:             #C4A45E; /* Warm Muted Gold */
  --q-gold-hover:       #B2924E;
  --q-gold-text:        #8A6F33; /* Darker Gold for accessible text (4.6:1 on #FAFAF7) */
  --q-gold-light:       #E8CE8C; /* Gold highlight on dark backgrounds */

  /* Typography Colors (High contrast & readability) */
  --q-text-main:        #1C2420; /* Dark slate ink - 15.2:1 contrast */
  --q-text-muted:       #4F5C55; /* Neutral medical slate - 6.7:1 contrast */
  --q-text-inverse:     #FAFAF7; /* Warm white text on dark green */
  --q-text-inverse-dim: #DCE5DC; /* Sage muted text on dark green */

  /* Borders & Dividers */
  --q-border-subtle:    #E4E8E2;
  --q-border-card:      #D9DED7;
  --q-border-medium:    #AABDAF;
  --q-border-gold:      rgba(196, 164, 94, 0.4);

  /* Functional & Feedback */
  --q-success:          #2E6B4E;
  --q-warning:          #8C6A1F;
  --q-error:            #A8402F;
  --q-focus-ring:       #193D2A;

  /* Typography Families (Biograph Editorial Quality Stack) */
  --q-font-serif:       Georgia, 'Times New Roman', serif;
  --q-font-sans:        'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --q-font-brand:       'Cinzel', serif;
  --q-font-italic:      Georgia, 'Times New Roman', serif;

  /* Typography Scale */
  --q-text-xs:          0.75rem;    /* 12px */
  --q-text-sm:          0.875rem;   /* 14px */
  --q-text-base:        1rem;       /* 16px */
  --q-text-lg:          1.125rem;   /* 18px */
  --q-text-xl:          1.25rem;    /* 20px */
  --q-text-2xl:         1.625rem;   /* 26px */
  --q-text-3xl:         2.125rem;   /* 34px */
  --q-text-4xl:         2.75rem;    /* 44px */
  --q-text-display:     3.5rem;     /* 56px */

  /* Spacing Scale (4px Base) */
  --q-sp-1:             4px;
  --q-sp-2:             8px;
  --q-sp-3:             12px;
  --q-sp-4:             16px;
  --q-sp-5:             20px;
  --q-sp-6:             24px;
  --q-sp-8:             32px;
  --q-sp-10:            40px;
  --q-sp-12:            48px;
  --q-sp-16:            64px;
  --q-sp-20:            80px;
  --q-sp-24:            96px;
  --q-sp-32:            128px;

  /* Radii */
  --q-radius-sm:        4px;
  --q-radius-md:        8px;
  --q-radius-lg:        16px;
  --q-radius-xl:        24px;
  --q-radius-pill:      9999px;

  /* Shadows (Sophisticated & Subtle) */
  --q-shadow-sm:        0 1px 3px rgba(25, 61, 42, 0.04);
  --q-shadow-card:      0 2px 10px rgba(25, 61, 42, 0.05);
  --q-shadow-hover:     0 8px 24px rgba(25, 61, 42, 0.08);
  --q-shadow-nav:       0 4px 20px rgba(25, 61, 42, 0.06);

  /* Motion */
  --q-ease-smooth:      cubic-bezier(0.25, 1, 0.5, 1);
  --q-duration-fast:    150ms;
  --q-duration-normal:  280ms;
  --q-duration-slow:    450ms;
}

/* ---- css/base.css ---- */
/* ============================================================
   QUINTANA MEDICAL SERVICES — Base Styles & Reset
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--q-bg-primary);
  color: var(--q-text-main);
  font-family: var(--q-font-sans);
  font-size: var(--q-text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Accessibility: Skip Link */
.q-skip-link {
  position: absolute;
  top: -100px;
  left: var(--q-sp-4);
  background: var(--q-green-deep);
  color: var(--q-text-inverse);
  padding: var(--q-sp-3) var(--q-sp-6);
  z-index: 10000;
  border-radius: var(--q-radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--q-duration-fast) var(--q-ease-smooth);
}
.q-skip-link:focus {
  top: var(--q-sp-4);
  outline: 3px solid var(--q-focus-ring);
  outline-offset: 2px;
}

/* Accessible Focus States (WCAG 2.2 Focus Appearance) */
:focus-visible {
  outline: 2px solid var(--q-focus-ring);
  outline-offset: 3px;
}

/* Typography Primitives (Biograph-Level Editorial Serif) */
h1, h2, h3, h4, .q-serif-title {
  font-family: var(--q-font-serif);
  color: var(--q-green-deep);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
}

h4 {
  font-size: var(--q-text-lg);
  font-weight: 500;
}

em, .q-italic {
  font-family: var(--q-font-italic);
  font-style: italic;
  font-weight: 400;
}

p {
  color: var(--q-text-main);
  margin-bottom: var(--q-sp-4);
}

p.q-lead {
  font-size: var(--q-text-lg);
  line-height: 1.6;
  color: var(--q-text-muted);
}

@media (min-width: 768px) {
  p.q-lead {
    font-size: 1.2rem;
  }
}

a {
  color: var(--q-green-emerald);
  text-decoration: none;
  transition: color var(--q-duration-fast) var(--q-ease-smooth);
}
a:hover {
  color: var(--q-green-deep);
}

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

/* Layout Utilities */
.q-container {
  width: 100%;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--q-sp-6);
  padding-right: var(--q-sp-6);
}

@media (min-width: 1024px) {
  .q-container {
    padding-left: var(--q-sp-8);
    padding-right: var(--q-sp-8);
  }
}

.q-section {
  padding-top: var(--q-sp-16);
  padding-bottom: var(--q-sp-16);
  position: relative;
}

@media (min-width: 1024px) {
  .q-section {
    padding-top: var(--q-sp-24);
    padding-bottom: var(--q-sp-24);
  }
}

.q-section-alt {
  background-color: var(--q-bg-secondary);
}

.q-section-dark {
  background-color: var(--q-bg-dark);
  color: var(--q-text-inverse);
}
.q-section-dark h1,
.q-section-dark h2,
.q-section-dark h3 {
  color: var(--q-text-inverse);
}
.q-section-dark p {
  color: var(--q-text-inverse-dim);
}

/* Section Header Shared */
.q-section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--q-sp-12);
}

.q-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--q-sp-2);
  font-family: var(--q-font-sans);
  font-size: var(--q-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--q-gold-text);
  margin-bottom: var(--q-sp-3);
}

.q-eyebrow::before,
.q-eyebrow::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background-color: var(--q-gold);
}

.q-eyebrow-dark {
  color: var(--q-gold-light);
}
.q-eyebrow-dark::before,
.q-eyebrow-dark::after {
  background-color: var(--q-gold-light);
}

.q-divider-arc {
  display: block;
  margin: var(--q-sp-6) auto 0;
  width: 48px;
  height: 2px;
  background-color: var(--q-eucalyptus);
  border-radius: var(--q-radius-pill);
}

/* ---- css/components.css ---- */
/* ============================================================
   QUINTANA MEDICAL SERVICES — UI Components
   "Bright Medical Premium" · High Conversion & Healthcare Ergonomics
   ============================================================ */

/* --- Buttons --- */
.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--q-sp-2);
  font-family: var(--q-font-sans);
  font-size: var(--q-text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: var(--q-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--q-duration-normal) var(--q-ease-smooth);
  white-space: nowrap;
}

.q-btn-primary {
  background-color: var(--q-green-emerald);
  color: #FFFFFF;
}
.q-btn-primary:hover {
  background-color: var(--q-green-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(36, 86, 64, 0.25);
  transform: translateY(-1px);
}
.q-btn-primary:active {
  background-color: var(--q-green-active);
  transform: translateY(0);
}

.q-btn-secondary {
  background-color: transparent;
  border-color: var(--q-green-deep);
  color: var(--q-green-deep);
}
.q-btn-secondary:hover {
  background-color: var(--q-bg-secondary);
  color: var(--q-green-deep);
  border-color: var(--q-green-deep);
}

.q-btn-gold {
  background-color: var(--q-gold);
  color: var(--q-green-deep);
  font-weight: 700;
}
.q-btn-gold:hover {
  background-color: #D3B36B;
  color: var(--q-green-deep);
  box-shadow: 0 4px 16px rgba(196, 164, 94, 0.3);
  transform: translateY(-1px);
}

.q-btn-outline-light {
  background-color: transparent;
  border-color: rgba(250, 250, 247, 0.4);
  color: var(--q-text-inverse);
}
.q-btn-outline-light:hover {
  background-color: rgba(250, 250, 247, 0.1);
  border-color: var(--q-text-inverse);
  color: var(--q-text-inverse);
}

.q-btn-sm {
  padding: 8px 16px;
  font-size: var(--q-text-xs);
}

.q-btn-lg {
  padding: 16px 32px;
  font-size: var(--q-text-base);
}

/* --- Section 01: Sticky Header --- */
.q-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--q-border-subtle);
  transition: all var(--q-duration-normal) var(--q-ease-smooth);
}

.q-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--q-shadow-nav);
}

.q-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--q-duration-normal) var(--q-ease-smooth);
}

.q-header.is-scrolled .q-header-inner {
  height: 70px;
}

.q-brand-link {
  display: flex;
  align-items: center;
  gap: var(--q-sp-3);
  text-decoration: none;
  margin-right: clamp(16px, 2vw, 32px);
  flex-shrink: 0;
}

.q-header-logo {
  height: 52px;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: all var(--q-duration-normal) var(--q-ease-smooth);
}

.q-header.is-scrolled .q-header-logo {
  height: 44px;
}

/* Desktop Navigation */
.q-nav {
  display: none;
}

@media (min-width: 1024px) {
  .q-nav {
    display: flex;
    align-items: center;
  }
}

.q-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(8px, 1.2vw, 18px);
}

.q-nav-item {
  position: relative;
  flex-shrink: 0;
}

.q-nav-link {
  font-family: var(--q-font-sans);
  font-size: clamp(0.8rem, 0.85vw, 0.875rem);
  font-weight: 500;
  color: var(--q-text-main);
  text-decoration: none;
  padding: var(--q-sp-2) 0;
  white-space: nowrap;
  transition: color var(--q-duration-fast) var(--q-ease-smooth);
  display: flex;
  align-items: center;
  gap: 4px;
}

.q-nav-link:hover,
.q-nav-item:hover > .q-nav-link {
  color: var(--q-green-emerald);
}

/* Dropdown Menu */
.q-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-md);
  box-shadow: var(--q-shadow-hover);
  padding: var(--q-sp-3) 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--q-duration-fast) var(--q-ease-smooth);
  z-index: 1001;
}

.q-nav-item:hover .q-dropdown,
.q-nav-item:focus-within .q-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.q-dropdown-link {
  display: block;
  padding: 9px var(--q-sp-5);
  font-size: var(--q-text-sm);
  color: var(--q-text-main);
  text-decoration: none;
  transition: background-color var(--q-duration-fast) var(--q-ease-smooth);
}
.q-dropdown-link:hover {
  background-color: var(--q-bg-secondary);
  color: var(--q-green-emerald);
}

/* Header Utilities */
.q-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  margin-left: clamp(16px, 2.5vw, 36px);
  flex-shrink: 0;
}

.q-lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-pill);
  padding: 3px;
  background-color: #FFFFFF;
  margin-right: 2px;
}

.q-lang-btn {
  background: transparent;
  border: none;
  font-family: var(--q-font-sans);
  font-size: var(--q-text-xs);
  font-weight: 600;
  color: var(--q-text-muted);
  padding: 4px 10px;
  border-radius: var(--q-radius-pill);
  cursor: pointer;
  transition: all var(--q-duration-fast) var(--q-ease-smooth);
}
.q-lang-btn.active {
  background-color: var(--q-green-deep);
  color: #FFFFFF;
}

.q-phone-link {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--q-green-deep);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  padding: 8px 16px;
  border-radius: var(--q-radius-pill);
  background: rgba(25, 61, 42, 0.05);
  border: 1px solid rgba(25, 61, 42, 0.12);
  transition: all var(--q-duration-fast) var(--q-ease-smooth);
}
.q-phone-link:hover {
  background: rgba(25, 61, 42, 0.1);
  color: var(--q-green-emerald);
  border-color: var(--q-green-emerald);
  transform: translateY(-1px);
}
.q-phone-link svg {
  color: var(--q-gold-text);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.q-phone-link span {
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .q-phone-link {
    display: inline-flex;
  }
}

.q-header-cta {
  display: none;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .q-header-cta {
    display: inline-flex;
  }
}

/* Mobile Hamburger Button */
.q-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--q-sp-1);
}
@media (min-width: 1024px) {
  .q-burger {
    display: none;
  }
}
.q-burger-line {
  width: 24px;
  height: 2px;
  background-color: var(--q-green-deep);
  border-radius: 2px;
  transition: all var(--q-duration-fast) var(--q-ease-smooth);
}
.q-burger.is-active .q-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.q-burger.is-active .q-burger-line:nth-child(2) {
  opacity: 0;
}
.q-burger.is-active .q-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.q-mobile-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: #FFFFFF;
  padding: var(--q-sp-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--q-duration-normal) var(--q-ease-smooth);
  z-index: 999;
}
.q-mobile-drawer.is-open {
  transform: translateX(0);
}
.q-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--q-sp-4);
}
.q-mobile-nav-link {
  font-family: var(--q-font-serif);
  font-size: 1.35rem;
  color: var(--q-green-deep);
  text-decoration: none;
  font-weight: 500;
  display: block;
}

/* --- Section 02: Hero --- */
.q-hero {
  position: relative;
  background: linear-gradient(180deg, var(--q-bg-primary) 0%, var(--q-bg-secondary) 100%);
  padding-top: var(--q-sp-12);
  padding-bottom: var(--q-sp-16);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .q-hero {
    padding-top: var(--q-sp-20);
    padding-bottom: var(--q-sp-24);
  }
}

.q-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .q-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--q-sp-16);
  }
}

.q-hero-content {
  position: relative;
  z-index: 2;
}

.q-badge-location {
  display: inline-flex;
  align-items: center;
  gap: var(--q-sp-2);
  background-color: var(--q-bg-surface);
  border: 1px solid var(--q-border-subtle);
  padding: 6px 14px;
  border-radius: var(--q-radius-pill);
  font-size: var(--q-text-xs);
  font-weight: 600;
  color: var(--q-green-deep);
  margin-bottom: var(--q-sp-6);
  box-shadow: var(--q-shadow-sm);
}
.q-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--q-radius-pill);
  background-color: var(--q-leaf-accent);
}

.q-hero-title {
  margin-bottom: var(--q-sp-6);
  letter-spacing: -0.02em;
}

.q-hero-lead {
  margin-bottom: var(--q-sp-8);
  max-width: 580px;
}

.q-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--q-sp-4);
  margin-bottom: var(--q-sp-8);
}
@media (min-width: 480px) {
  .q-hero-ctas {
    flex-direction: row;
    align-items: center;
  }
}

.q-hero-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: var(--q-sp-4) var(--q-sp-6);
  font-size: var(--q-text-xs);
  color: var(--q-text-muted);
  font-weight: 500;
}
.q-hero-guarantee-item {
  display: flex;
  align-items: center;
  gap: var(--q-sp-2);
}
.q-hero-guarantee-item svg {
  color: var(--q-gold-text);
  flex-shrink: 0;
}

/* Hero Visual Art / Media */
.q-hero-visual {
  position: relative;
}

.q-hero-image-card {
  position: relative;
  background-color: var(--q-bg-surface);
  border-radius: var(--q-radius-xl);
  overflow: hidden;
  box-shadow: var(--q-shadow-hover);
  border: 1px solid var(--q-border-subtle);
  aspect-ratio: 4 / 4.8;
  display: flex;
  flex-direction: column;
}

.q-hero-editorial-art {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(145deg, #F5F3EC 0%, #E7ECE6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--q-sp-8);
  text-align: center;
}

.q-hero-ring-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  opacity: 0.35;
  pointer-events: none;
}

.q-hero-art-icon {
  width: 96px;
  height: 96px;
  margin-bottom: var(--q-sp-4);
  filter: drop-shadow(0 4px 12px rgba(25, 61, 42, 0.1));
}

.q-hero-art-caption {
  font-family: var(--q-font-serif);
  font-size: var(--q-text-xl);
  color: var(--q-green-deep);
  margin-bottom: var(--q-sp-2);
}
.q-hero-art-sub {
  font-size: var(--q-text-xs);
  color: var(--q-text-muted);
  max-width: 280px;
}

.q-hero-float-badge {
  position: absolute;
  bottom: var(--q-sp-6);
  left: var(--q-sp-6);
  right: var(--q-sp-6);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-md);
  padding: var(--q-sp-4) var(--q-sp-5);
  display: flex;
  align-items: center;
  gap: var(--q-sp-4);
  box-shadow: var(--q-shadow-sm);
}
.q-float-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--q-radius-pill);
  background-color: var(--q-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--q-green-deep);
  flex-shrink: 0;
}
.q-float-badge-title {
  font-size: var(--q-text-sm);
  font-weight: 700;
  color: var(--q-green-deep);
  line-height: 1.2;
}
.q-float-badge-desc {
  font-size: var(--q-text-xs);
  color: var(--q-text-muted);
  margin-bottom: 0;
}

/* --- Section 03: Medical Trust Bar --- */
.q-trust-bar {
  background-color: #FFFFFF;
  border-top: 1px solid var(--q-border-subtle);
  border-bottom: 1px solid var(--q-border-subtle);
  padding: var(--q-sp-8) 0;
}

.q-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--q-sp-6);
}
@media (min-width: 768px) {
  .q-trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .q-trust-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--q-sp-4);
  }
}

.q-trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--q-sp-3);
}
.q-trust-icon {
  width: 20px;
  height: 20px;
  color: var(--q-gold-text);
  flex-shrink: 0;
  margin-top: 2px;
}
.q-trust-text {
  font-size: var(--q-text-xs);
  font-weight: 600;
  color: var(--q-green-deep);
  line-height: 1.35;
}
.q-trust-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--q-text-muted);
}

/* --- Section 04: Health Ecosystem --- */
.q-ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-6);
}
@media (min-width: 640px) {
  .q-ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .q-ecosystem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.q-eco-card {
  background-color: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-lg);
  padding: var(--q-sp-8);
  position: relative;
  transition: all var(--q-duration-normal) var(--q-ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.q-eco-card:hover {
  border-color: var(--q-border-medium);
  box-shadow: var(--q-shadow-hover);
  transform: translateY(-2px);
}

.q-eco-card-top {
  margin-bottom: var(--q-sp-6);
}
.q-eco-num {
  font-family: var(--q-font-serif);
  font-size: var(--q-text-sm);
  font-weight: 600;
  color: var(--q-gold-text);
  margin-bottom: var(--q-sp-3);
  display: inline-block;
}
.q-eco-title {
  font-size: var(--q-text-xl);
  margin-bottom: var(--q-sp-2);
}
.q-eco-role {
  font-size: var(--q-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--q-green-emerald);
  margin-bottom: var(--q-sp-3);
}
.q-eco-desc {
  font-size: var(--q-text-sm);
  color: var(--q-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.q-eco-card-bottom {
  border-top: 1px solid var(--q-border-subtle);
  padding-top: var(--q-sp-4);
  margin-top: var(--q-sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.q-eco-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--q-green-deep);
  background-color: var(--q-sage);
  padding: 3px 10px;
  border-radius: var(--q-radius-pill);
}

/* --- Section 05: Why Quintana (Editorial Pillars) --- */
.q-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-8);
}
@media (min-width: 1024px) {
  .q-pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.q-pillar-item {
  background-color: var(--q-bg-primary);
  border: 1px solid var(--q-border-card);
  border-radius: var(--q-radius-lg);
  padding: var(--q-sp-8);
  position: relative;
}
.q-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--q-radius-md);
  background-color: var(--q-sage);
  color: var(--q-green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--q-sp-6);
}
.q-pillar-title {
  font-size: 1.35rem;
  margin-bottom: var(--q-sp-3);
}
.q-pillar-desc {
  font-size: var(--q-text-sm);
  color: var(--q-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Section 06: Primary Care Anchor --- */
.q-split-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .q-split-feature {
    grid-template-columns: 1fr 1fr;
    gap: var(--q-sp-16);
  }
}

.q-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--q-sp-4);
  margin-top: var(--q-sp-6);
  margin-bottom: var(--q-sp-8);
}
.q-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--q-sp-3);
  font-size: var(--q-text-sm);
  color: var(--q-text-main);
}
.q-feature-bullet {
  width: 18px;
  height: 18px;
  color: var(--q-gold-text);
  flex-shrink: 0;
  margin-top: 3px;
}

.q-feature-card-wrapper {
  background: #FFFFFF;
  border-radius: var(--q-radius-xl);
  padding: var(--q-sp-8);
  border: 1px solid var(--q-border-subtle);
  box-shadow: var(--q-shadow-hover);
}
.q-stat-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--q-sp-4);
  margin-top: var(--q-sp-6);
}
.q-stat-badge {
  background-color: var(--q-bg-secondary);
  border-radius: var(--q-radius-md);
  padding: var(--q-sp-4);
  text-align: center;
}
.q-stat-num {
  font-family: var(--q-font-serif);
  font-size: var(--q-text-2xl);
  font-weight: 600;
  color: var(--q-green-deep);
  display: block;
}
.q-stat-label {
  font-size: var(--q-text-xs);
  color: var(--q-text-muted);
}

/* --- Section 07: Longevity Focus --- */
.q-longevity-banner {
  background: linear-gradient(135deg, #193D2A 0%, #11281C 100%);
  color: var(--q-text-inverse);
  border-radius: var(--q-radius-xl);
  padding: var(--q-sp-10);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .q-longevity-banner {
    padding: var(--q-sp-16);
  }
}

.q-longevity-media-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 860px) {
  .q-longevity-media-wrap {
    opacity: 0.25;
    width: 100%;
  }
}

.q-longevity-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: contrast(1.08) brightness(1.02);
}

.q-longevity-media-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #193D2A 0%, rgba(25, 61, 42, 0.7) 25%, rgba(25, 61, 42, 0.15) 100%);
  z-index: 2;
}

.q-longevity-ring-graphic {
  display: none !important;
}

.q-longevity-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.q-longevity-content h2 {
  color: var(--q-text-inverse);
  margin-bottom: var(--q-sp-4);
}
.q-longevity-content p {
  color: var(--q-text-inverse-dim);
  font-size: var(--q-text-base);
  margin-bottom: var(--q-sp-6);
}

.q-longevity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--q-sp-3);
  margin-bottom: var(--q-sp-8);
}
.q-longevity-tag {
  background-color: rgba(250, 250, 247, 0.12);
  border: 1px solid rgba(196, 164, 94, 0.35);
  color: var(--q-gold-light);
  padding: 6px 14px;
  border-radius: var(--q-radius-pill);
  font-size: var(--q-text-xs);
  font-weight: 600;
}

/* --- Section 08: Provider Spotlight --- */
.q-provider-card {
  background-color: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-xl);
  overflow: hidden;
  box-shadow: var(--q-shadow-hover);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .q-provider-card {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.q-provider-visual {
  background: linear-gradient(135deg, var(--q-bg-secondary) 0%, #E3E9E2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--q-sp-10);
  text-align: center;
  position: relative;
}
.q-provider-avatar-frame {
  width: 140px;
  height: 140px;
  border-radius: var(--q-radius-pill);
  background-color: var(--q-green-deep);
  border: 4px solid #FFFFFF;
  box-shadow: var(--q-shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--q-sp-4);
}
.q-provider-avatar-img {
  width: 72px;
  height: 72px;
}
.q-provider-title-sub {
  font-size: var(--q-text-sm);
  font-weight: 600;
  color: var(--q-green-emerald);
}
.q-provider-license-badge {
  display: inline-block;
  font-size: var(--q-text-xs);
  color: var(--q-text-muted);
  margin-top: var(--q-sp-2);
}

.q-provider-info {
  padding: var(--q-sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .q-provider-info {
    padding: var(--q-sp-12);
  }
}
.q-provider-quote {
  font-family: var(--q-font-italic);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--q-green-deep);
  margin-bottom: var(--q-sp-6);
  position: relative;
  padding-left: var(--q-sp-4);
  border-left: 2px solid var(--q-gold);
}

/* --- Section 10: Patient Journey --- */
.q-journey-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-6);
  position: relative;
}
@media (min-width: 768px) {
  .q-journey-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .q-journey-timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.q-step-card {
  background-color: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-lg);
  padding: var(--q-sp-6);
  position: relative;
}
.q-step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--q-radius-pill);
  background-color: var(--q-bg-secondary);
  border: 1px solid var(--q-gold);
  color: var(--q-green-deep);
  font-family: var(--q-font-serif);
  font-weight: 700;
  font-size: var(--q-text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--q-sp-4);
}
.q-step-title {
  font-size: 1.15rem;
  margin-bottom: var(--q-sp-2);
}
.q-step-desc {
  font-size: var(--q-text-xs);
  color: var(--q-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- Section 11: Pricing & New Patients --- */
.q-pricing-preview {
  background: linear-gradient(180deg, var(--q-bg-primary) 0%, var(--q-bg-secondary) 100%);
  border: 1px solid var(--q-border-card);
  border-radius: var(--q-radius-xl);
  padding: var(--q-sp-8);
}
@media (min-width: 768px) {
  .q-pricing-preview {
    padding: var(--q-sp-12);
  }
}
.q-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-6);
  margin-top: var(--q-sp-8);
}
@media (min-width: 768px) {
  .q-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.q-price-card {
  background-color: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-md);
  padding: var(--q-sp-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.q-price-card.featured {
  border-color: var(--q-gold);
  box-shadow: var(--q-shadow-card);
}
.q-price-label {
  font-size: var(--q-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--q-gold-text);
  margin-bottom: var(--q-sp-2);
}
.q-price-title {
  font-size: 1.25rem;
  margin-bottom: var(--q-sp-4);
}
.q-price-tag {
  font-family: var(--q-font-serif);
  font-size: var(--q-text-2xl);
  color: var(--q-green-deep);
  font-weight: 600;
  margin-bottom: var(--q-sp-4);
}
.q-price-desc {
  font-size: var(--q-text-xs);
  color: var(--q-text-muted);
  line-height: 1.5;
  margin-bottom: var(--q-sp-4);
}

/* --- Section 12: Location & Map --- */
.q-location-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-8);
}
@media (min-width: 1024px) {
  .q-location-split {
    grid-template-columns: 1fr 1fr;
  }
}

.q-location-info-card {
  background: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-lg);
  padding: var(--q-sp-8);
}
.q-loc-detail-group {
  margin-bottom: var(--q-sp-6);
}
.q-loc-label {
  font-size: var(--q-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--q-gold-text);
  margin-bottom: var(--q-sp-1);
}
.q-loc-val {
  font-size: var(--q-text-base);
  color: var(--q-text-main);
  font-weight: 500;
}
.q-map-container {
  min-height: 340px;
  background-color: var(--q-bg-secondary);
  border-radius: var(--q-radius-lg);
  overflow: hidden;
  border: 1px solid var(--q-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Section 13: Final CTA Banner (Biograph-Level Atmospheric Presence) --- */
.q-cta-section {
  background: radial-gradient(circle at 50% 30%, #1E4631 0%, #12281D 70%, #0D1E16 100%);
  color: var(--q-text-inverse);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(196, 164, 94, 0.2);
}
@media (min-width: 1024px) {
  .q-cta-section {
    padding: 120px 0;
  }
}
.q-cta-section h2 {
  font-family: var(--q-font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: var(--q-sp-5);
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}
.q-cta-section p {
  color: #DCE5DC;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--q-sp-8);
  position: relative;
  z-index: 2;
}
.q-cta-btn-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--q-sp-4);
  position: relative;
  z-index: 2;
}
@media (min-width: 480px) {
  .q-cta-btn-group {
    flex-direction: row;
  }
}

/* --- Section 14: Comprehensive Footer --- */
.q-footer {
  background-color: #0E1D14;
  color: #DCE5DC;
  padding-top: var(--q-sp-16);
  padding-bottom: var(--q-sp-24);
  font-size: var(--q-text-sm);
  border-top: 1px solid rgba(196, 164, 94, 0.25);
}
@media (min-width: 1024px) {
  .q-footer {
    padding-bottom: var(--q-sp-16);
  }
}

.q-footer p {
  color: #DCE5DC;
}

.q-footer strong {
  color: #FFFFFF;
}

.q-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-10);
  margin-bottom: var(--q-sp-12);
}
@media (min-width: 640px) {
  .q-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .q-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.q-footer-logo {
  height: 60px;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: var(--q-sp-4);
}
.q-footer-tagline {
  color: #DCE5DC !important;
  font-size: var(--q-text-xs);
  line-height: 1.6;
  margin-bottom: var(--q-sp-4);
}
.q-footer-heading {
  font-family: var(--q-font-sans);
  font-size: var(--q-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--q-gold-light);
  margin-bottom: var(--q-sp-4);
}
.q-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--q-sp-2);
}
.q-footer-link {
  color: #DCE5DC;
  text-decoration: none;
  font-size: var(--q-text-xs);
  transition: color var(--q-duration-fast) var(--q-ease-smooth);
}
.q-footer-link:hover {
  color: #FFFFFF;
}

.q-footer-bottom {
  border-top: 1px solid rgba(250, 250, 247, 0.15);
  padding-top: var(--q-sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--q-sp-4);
  font-size: var(--q-text-xs);
  color: #CAD5CA;
}
@media (min-width: 768px) {
  .q-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.q-footer-bottom p {
  color: #CAD5CA;
  margin-bottom: 0;
}

.q-legal-disclosure {
  font-size: 0.75rem;
  color: #CAD5CA !important;
  line-height: 1.55;
  max-width: 720px;
}
.q-license-badge {
  color: var(--q-gold-light);
  font-weight: 600;
}

.q-footer-legal-bar {
  border-top: 1px solid rgba(217, 190, 134, 0.35);
  margin-top: var(--q-sp-6);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  color: #FFFFFF;
}

.q-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.q-footer-legal-links span[aria-hidden="true"] {
  display: none !important;
}

.q-footer-legal-links a,
.q-legal-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  background: rgba(217, 190, 134, 0.18) !important;
  border: 1.5px solid #D9BE86 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.q-footer-legal-links a:hover,
.q-legal-pill:hover {
  background: #D9BE86 !important;
  color: #0F1E16 !important;
  border-color: #D9BE86 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(217, 190, 134, 0.45) !important;
}

.q-legal-disclosure {
  color: #E2ECE2 !important;
  line-height: 1.6;
}

.q-license-badge {
  color: #D9BE86 !important;
  font-weight: 600;
}

/* --- Mobile Floating Bottom Bar --- */
.q-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--q-border-subtle);
  padding: var(--q-sp-3) var(--q-sp-4);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--q-sp-3);
  z-index: 998;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .q-mobile-bar {
    display: none;
  }
}
.q-mobile-bar-btn {
  height: 44px;
  font-size: var(--q-text-xs);
  padding: 0 var(--q-sp-3);
}

/* ============================================================
   BIOGRAPH-LEVEL ELEVATION: COMPARISON, BIOMARKERS & CREDENTIALS
   ============================================================ */

/* --- Editorial Comparison Section (Dark Biotech Ambience) --- */
.q-comparison-section {
  position: relative;
  background-color: #0B1710;
  color: #FFFFFF;
  padding: clamp(80px, 8vw, 120px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(196, 164, 94, 0.2);
  border-bottom: 1px solid rgba(196, 164, 94, 0.2);
}

.q-comparison-section .q-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.q-dna-ambient-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.q-dna-ambient-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0.20;
  filter: contrast(1.15) brightness(0.95);
  mix-blend-mode: screen;
}

.q-dna-ambient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(11, 23, 16, 0.72) 0%, rgba(11, 23, 16, 0.92) 60%, #08120C 100%);
  z-index: 2;
}

.q-comparison-section .q-eyebrow {
  color: #F3E5AB !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
  margin-bottom: 14px !important;
  display: inline-block !important;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px 16px;
  border-radius: 30px;
  border: 1px solid rgba(243, 229, 171, 0.35);
}

.q-comparison-section .q-section-header h2 {
  color: #FFFFFF !important;
  font-family: var(--q-font-serif) !important;
  font-size: clamp(2.2rem, 4.2vw, 3.3rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  margin-bottom: 16px !important;
}

.q-comparison-section .q-divider-arc {
  background: linear-gradient(90deg, transparent, #C4A45E, transparent) !important;
  height: 2px !important;
  width: 140px !important;
  margin: 0 auto 18px auto !important;
  opacity: 0.9 !important;
}

.q-comparison-section .q-section-header .q-lead {
  color: #F5FAF5 !important;
  font-size: 1.18rem !important;
  line-height: 1.65 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95) !important;
  font-weight: 400 !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

/* --- Editorial Comparison Grid (Reactive vs Proactive) --- */
.q-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-6);
  margin-top: var(--q-sp-8);
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}
@media (min-width: 840px) {
  .q-compare-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--q-sp-8);
    align-items: stretch;
  }
}

.q-compare-card {
  border-radius: var(--q-radius-xl);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--q-duration-normal) var(--q-ease-smooth);
}

/* Card A: Traditional Medicine (Dark Frosted Glass) */
.q-compare-card-trad {
  background: rgba(14, 25, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.q-compare-card-trad .q-compare-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #B5C4B9;
  margin-bottom: var(--q-sp-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
  width: fit-content;
}
.q-compare-card-trad h3 {
  font-family: var(--q-font-serif);
  font-size: 1.7rem;
  color: #FFFFFF !important;
  font-weight: 700;
  margin-bottom: var(--q-sp-6);
}

/* Card B: Quintana Model (Evergreen Luxury / Gold Glowing Accent) */
.q-compare-card-quintana {
  background: linear-gradient(155deg, rgba(20, 52, 35, 0.95) 0%, rgba(12, 30, 20, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(226, 201, 138, 0.75);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}
.q-compare-card-quintana .q-compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 164, 94, 0.28);
  border: 1px solid rgba(243, 229, 171, 0.7);
  padding: 6px 16px;
  border-radius: var(--q-radius-pill);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #FFDE7D;
  margin-bottom: var(--q-sp-3);
  width: fit-content;
}
.q-compare-card-quintana h3 {
  font-family: var(--q-font-serif);
  font-size: 1.8rem;
  color: #FFFFFF !important;
  font-weight: 700;
  margin-bottom: var(--q-sp-6);
}

.q-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--q-sp-5);
  flex-grow: 1;
}

.q-compare-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.55;
  color: #FFFFFF !important;
}
.q-compare-item span {
  color: #FFFFFF !important;
}
.q-compare-item strong {
  color: #FFFFFF !important;
  font-weight: 700;
}
.q-compare-icon-neg {
  color: #FF8F73;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: bold;
}
.q-compare-icon-pos {
  color: #FFDE7D;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: bold;
  filter: drop-shadow(0 2px 8px rgba(255, 222, 125, 0.6));
}

/* --- Biomarker Systems Grid --- */
.q-biomarker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-5);
  margin-top: var(--q-sp-8);
}
@media (min-width: 640px) {
  .q-biomarker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .q-biomarker-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.q-biomarker-card {
  background: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-lg);
  padding: var(--q-sp-6);
  display: flex;
  flex-direction: column;
  transition: all var(--q-duration-normal) var(--q-ease-smooth);
}
.q-biomarker-card:hover {
  transform: translateY(-3px);
  border-color: var(--q-gold);
  box-shadow: var(--q-shadow-hover);
}

.q-biomarker-num {
  font-family: var(--q-font-serif);
  font-size: 1.25rem;
  color: var(--q-gold-text);
  font-weight: 700;
  margin-bottom: var(--q-sp-2);
}
.q-biomarker-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--q-green-deep);
  margin-bottom: var(--q-sp-3);
}
.q-biomarker-desc {
  font-size: var(--q-text-xs);
  color: var(--q-text-muted);
  line-height: 1.6;
  margin-bottom: var(--q-sp-4);
  flex-grow: 1;
}
.q-biomarker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.q-biomarker-tag {
  background: var(--q-bg-secondary);
  color: var(--q-green-deep);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* --- Verified Degrees & Credentials Grid --- */
.q-degrees-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-6);
  margin-top: var(--q-sp-8);
}
@media (min-width: 640px) {
  .q-degrees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .q-degrees-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.q-degree-card {
  background: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-lg);
  padding: var(--q-sp-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--q-shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--q-duration-normal) var(--q-ease-smooth);
}
.q-degree-card:hover {
  border-color: var(--q-gold);
  transform: translateY(-3px);
  box-shadow: var(--q-shadow-hover);
}
.q-degree-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--q-gold), var(--q-green-emerald));
}

.q-degree-year {
  font-family: var(--q-font-serif);
  font-size: 1.4rem;
  color: var(--q-gold-text);
  font-weight: 700;
  margin-bottom: var(--q-sp-2);
}
.q-degree-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--q-green-deep);
  line-height: 1.35;
  margin-bottom: var(--q-sp-2);
}
.q-degree-institution {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--q-leaf-accent);
  margin-bottom: var(--q-sp-3);
}
.q-degree-desc {
  font-size: var(--q-text-xs);
  color: var(--q-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
  flex-grow: 1;
}

/* ============================================================
   CLINICAL AESTHETICS SECTION (Quiet Luxury & Medical Precision)
   ============================================================ */
.q-aesthetics-section {
  background-color: #F8F9F6;
  position: relative;
  overflow: hidden;
}

.q-aesthetics-video-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.q-aesthetics-video-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.20;
  filter: saturate(0.85) contrast(1.08);
}

.q-aesthetics-backdrop-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 35%,
    rgba(248, 249, 246, 0.60) 0%,
    rgba(248, 249, 246, 0.86) 65%,
    rgba(248, 249, 246, 0.97) 100%
  );
  pointer-events: none;
}

.q-aesthetics-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-8);
  align-items: center;
  margin-bottom: var(--q-sp-10);
}
@media (min-width: 992px) {
  .q-aesthetics-intro-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(36px, 4.5vw, 60px);
  }
}

.q-aesthetics-clinician-card {
  background: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-xl);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 16px 40px rgba(25, 61, 42, 0.06);
  position: relative;
}

.q-aesthetics-clinician-header {
  display: flex;
  align-items: center;
  gap: var(--q-sp-5);
  margin-bottom: var(--q-sp-5);
}
.q-aesthetics-clinician-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--q-gold-light);
  box-shadow: 0 8px 24px rgba(25, 61, 42, 0.12);
  flex-shrink: 0;
}
.q-aesthetics-clinician-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Service Cards Grid */
.q-aesthetics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-6);
}
@media (min-width: 768px) {
  .q-aesthetics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--q-sp-6);
  }
}

.q-aesthetics-card {
  background: #FFFFFF;
  border-radius: var(--q-radius-lg);
  border: 1px solid var(--q-border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--q-shadow-sm);
  transition: transform var(--q-duration-normal) var(--q-ease-smooth), box-shadow var(--q-duration-normal) var(--q-ease-smooth);
}
.q-aesthetics-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(25, 61, 42, 0.12);
  border-color: rgba(196, 164, 94, 0.45);
}
.q-aesthetics-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.q-aesthetics-card-img img,
.q-aesthetics-card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--q-ease-smooth);
}
.q-aesthetics-card:hover .q-aesthetics-card-img img,
.q-aesthetics-card:hover .q-aesthetics-card-img video {
  transform: scale(1.05);
}
.q-card-video-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 38, 25, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(196, 164, 94, 0.4);
  border-radius: 100px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.q-aesthetics-card-body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.q-aesthetics-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--q-gold-text);
  margin-bottom: var(--q-sp-2);
}
.q-aesthetics-card-title {
  font-family: var(--q-font-serif);
  font-size: 1.3rem;
  color: var(--q-green-deep);
  margin-bottom: var(--q-sp-3);
  line-height: 1.3;
}
.q-aesthetics-card-desc {
  font-size: 0.88rem;
  color: var(--q-text-muted);
  line-height: 1.55;
  margin-bottom: var(--q-sp-4);
  flex-grow: 1;
}
.q-aesthetics-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--q-sp-5) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.q-aesthetics-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--q-text-secondary);
}
.q-aesthetics-check-icon {
  color: var(--q-green-emerald);
  flex-shrink: 0;
  font-weight: bold;
}

/* ============================================================
   WHATSAPP BUSINESS FLOATING CTA & BIOMETRIC CARD
   ============================================================ */
.q-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  text-decoration: none;
}
.q-whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}
@media (max-width: 767px) {
  .q-whatsapp-float {
    bottom: 74px; /* Above the mobile action bar */
    right: 18px;
    width: 50px;
    height: 50px;
  }
}

/* Floating Biometric Telemetry Card (MyDNA-inspired) */
.q-biometric-telemetry-card {
  position: absolute;
  bottom: 28px;
  right: 32px;
  background: rgba(14, 28, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(196, 164, 94, 0.4);
  border-radius: var(--q-radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  max-width: 290px;
  pointer-events: auto;
}
@media (max-width: 900px) {
  .q-biometric-telemetry-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 24px;
    max-width: 100%;
  }
}
.q-bio-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
}
.q-bio-telemetry-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--q-gold-light);
}
.q-bio-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 10px #22C55E;
  animation: q-pulse-dot 2s infinite ease-in-out;
}
@keyframes q-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.q-bio-ecg-line {
  width: 100%;
  height: 28px;
  stroke: #22C55E;
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.5));
}
.q-bio-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.q-bio-metric-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 10px;
}
.q-bio-metric-lbl {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.q-bio-metric-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--q-font-sans);
}
.q-bio-metric-unit {
  font-size: 0.72rem;
  color: var(--q-gold-light);
  font-weight: 400;
  margin-left: 2px;
}

/* ============================================================
   FAQ ACCORDION COMPONENT (Accessible & Minimalist Quiet Luxury)
   ============================================================ */
.q-faq-section {
  background-color: var(--q-bg-primary);
  position: relative;
}
.q-faq-container {
  max-width: 860px;
  margin: 0 auto;
}
.q-faq-item {
  border-bottom: 1px solid var(--q-border-subtle);
  transition: background-color var(--q-duration-fast) var(--q-ease-smooth);
}
.q-faq-item:first-child {
  border-top: 1px solid var(--q-border-subtle);
}
.q-faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--q-font-serif);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  color: var(--q-green-deep);
  transition: color var(--q-duration-fast) var(--q-ease-smooth);
}
.q-faq-trigger:hover {
  color: var(--q-green-emerald);
}
.q-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--q-border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--q-font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--q-green-deep);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.q-faq-item.is-open .q-faq-icon {
  transform: rotate(45deg);
  background-color: var(--q-green-deep);
  border-color: var(--q-green-deep);
  color: #FFFFFF;
}
.q-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding-bottom 0.35s ease;
}
.q-faq-item.is-open .q-faq-content {
  max-height: 320px;
  padding-bottom: 22px;
}
.q-faq-answer {
  font-size: 0.95rem;
  color: var(--q-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   CLINICAL SUITE 310 GALLERY (Doral Sanctuary)
   ============================================================ */
.q-clinic-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--q-sp-6);
  margin-top: var(--q-sp-10);
}
@media (min-width: 768px) {
  .q-clinic-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.q-clinic-gallery-item {
  border-radius: var(--q-radius-lg);
  overflow: hidden;
  background-color: var(--q-bg-surface);
  border: 1px solid var(--q-border-subtle);
  box-shadow: var(--q-shadow-sm);
  transition: transform var(--q-duration-normal) var(--q-ease-smooth), box-shadow var(--q-duration-normal) var(--q-ease-smooth);
}
.q-clinic-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--q-shadow-hover);
}
.q-clinic-gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s var(--q-ease-smooth);
}
.q-clinic-gallery-item:hover .q-clinic-gallery-img {
  transform: scale(1.04);
}
.q-clinic-gallery-caption {
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--q-green-deep);
  border-top: 1px solid var(--q-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.q-clinic-gallery-caption span {
  color: var(--q-gold-text);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   CATEGORY FILTER PILLS (Contact Form Quick Selector)
   ============================================================ */
.q-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.q-cat-pill {
  border: 1px solid var(--q-border-card);
  background: #FFFFFF;
  color: var(--q-green-deep);
  padding: 8px 14px;
  border-radius: var(--q-radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--q-duration-fast) var(--q-ease-smooth);
  font-family: var(--q-font-sans);
}
.q-cat-pill:hover {
  border-color: var(--q-green-emerald);
  background: var(--q-mint-subtle);
}
.q-cat-pill.is-selected {
  background: var(--q-green-deep);
  color: #FFFFFF;
  border-color: var(--q-green-deep);
  box-shadow: 0 2px 8px rgba(25, 61, 42, 0.2);
}
.q-consultation-estimate-badge {
  background: rgba(196, 164, 94, 0.12);
  border: 1px solid rgba(196, 164, 94, 0.35);
  border-radius: var(--q-radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--q-gold-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   AESTHETICS INTERACTIVE BEFORE / AFTER SHOWCASE (Quiet Luxury)
   ============================================================ */
.q-comparison-showcase {
  margin: var(--q-sp-8) 0 var(--q-sp-10);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 992px) {
  .q-comparison-showcase {
    grid-template-columns: 1fr 1.08fr;
  }
}

.q-comparison-copy {
  display: flex;
  flex-direction: column;
}

.q-comparison-title {
  font-family: var(--q-font-serif);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  color: var(--q-green-deep);
  line-height: 1.18;
  margin-bottom: var(--q-sp-4);
}

.q-comparison-lead {
  font-size: 1rem;
  color: var(--q-text-secondary);
  line-height: 1.68;
  margin-bottom: var(--q-sp-5);
}

.q-comparison-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--q-sp-3) 0 var(--q-sp-4);
}

.q-comparison-pill {
  border: 1px solid var(--q-border-subtle);
  background: rgba(255, 255, 255, 0.85);
  color: var(--q-green-deep);
  padding: 8px 16px;
  border-radius: var(--q-radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--q-duration-fast) var(--q-ease-smooth);
  font-family: var(--q-font-sans);
  letter-spacing: 0.02em;
}

.q-comparison-pill:hover {
  border-color: var(--q-gold);
  background: #FFFFFF;
}

.q-comparison-pill.is-active {
  background: var(--q-green-deep);
  color: #FFFFFF;
  border-color: var(--q-green-deep);
  box-shadow: 0 4px 14px rgba(25, 61, 42, 0.2);
}

.q-comparison-active-desc {
  font-size: 0.88rem;
  color: var(--q-text-muted);
  line-height: 1.55;
  margin-bottom: var(--q-sp-5);
  min-height: 42px;
  transition: opacity 0.25s ease;
}

.q-comparison-disclaimer {
  font-size: 0.74rem;
  color: var(--q-text-muted);
  line-height: 1.45;
  margin-top: var(--q-sp-4);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(25, 61, 42, 0.03);
  border-left: 2px solid var(--q-gold);
  border-radius: 0 var(--q-radius-sm) var(--q-radius-sm) 0;
}

/* Right Side: Portrait Frame & Rings */
.q-comparison-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
}

.q-comparison-growth-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.q-comparison-container {
  --slider-pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--q-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 28px 70px rgba(14, 38, 25, 0.22), 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #C4B5A5;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  z-index: 1;
  transition: transform 0.4s var(--q-ease-smooth), box-shadow 0.4s var(--q-ease-smooth);
}

.q-comparison-container:hover {
  transform: scale(1.008);
  box-shadow: 0 32px 75px rgba(14, 38, 25, 0.25);
}

.q-comparison-img-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.q-comparison-img-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.q-comparison-img-after {
  z-index: 1;
}

.q-comparison-img-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--slider-pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--slider-pos)) 0 0);
}

/* Reference-Style In-Frame Editorial Text Overlays */
.q-overlay-left {
  position: absolute;
  top: clamp(22px, 4vw, 36px);
  left: clamp(18px, 3.5vw, 30px);
  max-width: 68%;
  z-index: 3;
  pointer-events: none;
}

.q-overlay-brand {
  font-family: var(--q-font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.q-overlay-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--q-gold);
  display: inline-block;
  box-shadow: 0 0 6px rgba(196, 164, 94, 0.8);
}

.q-overlay-title-before {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  margin: 0;
}

.q-overlay-right {
  position: absolute;
  top: clamp(22px, 4vw, 36px);
  right: clamp(18px, 3.5vw, 30px);
  text-align: right;
  max-width: 68%;
  z-index: 3;
  pointer-events: none;
}

.q-overlay-title-after {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  margin: 0;
}

/* Iconic Lifting Vector Curved Arrow along jawline/cheek */
.q-overlay-lifting-arrow {
  position: absolute;
  bottom: 24%;
  right: 14%;
  width: 72px;
  height: 95px;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
  animation: q-arrow-float 3.2s ease-in-out infinite;
}

@keyframes q-arrow-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.q-comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos);
  width: 2.5px;
  background: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.65), 0 0 4px rgba(255, 255, 255, 0.8);
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

.q-comparison-handle {
  position: absolute;
  top: 50%;
  left: var(--slider-pos);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(25, 61, 42, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: ew-resize;
  pointer-events: auto;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.q-comparison-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(25, 61, 42, 0.5);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}

.q-comparison-handle.is-dragging {
  transform: translate(-50%, -50%) scale(1.18);
  background: rgba(25, 61, 42, 0.65);
}

.q-comparison-handle-icon {
  width: 24px;
  height: 24px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Auto-Play Toggle & Status Badge */
.q-comparison-autoplay-btn {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 38, 25, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(196, 164, 94, 0.45);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  z-index: 7;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: var(--q-font-sans);
}

.q-comparison-autoplay-btn:hover {
  background: var(--q-green-deep);
  border-color: var(--q-gold);
}

.q-comparison-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
  padding: 0;
}




/* ---- css/motion.css ---- */
/* ============================================================
   QUINTANA MEDICAL SERVICES — Motion & Microinteractions
   Biograph-Level Polish · Organic Biological Motion · Calm Luxury
   ============================================================ */

:root {
  /* Motion Duration Tokens */
  --q-motion-fast:      220ms;
  --q-motion-normal:    420ms;
  --q-motion-editorial: 750ms;
  --q-motion-slow:      1400ms;

  /* Editorial Premium Easings */
  --q-ease-editorial:   cubic-bezier(0.22, 1, 0.36, 1);
  --q-ease-gentle:      cubic-bezier(0.16, 1, 0.3, 1);
  --q-ease-subtle:      cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ============================================================
   1. GLOBAL BODY & BACKGROUND PALETTE TRANSITIONS
   ============================================================ */
body {
  transition: background-color 750ms var(--q-ease-editorial);
}

body[data-theme="warm-white"] {
  background-color: var(--q-bg-primary);
}

body[data-theme="ivory"] {
  background-color: var(--q-bg-secondary);
}

body[data-theme="white"] {
  background-color: #FFFFFF;
}

body[data-theme="sage"] {
  background-color: #EDF3ED;
}

body[data-theme="deep-green"] {
  background-color: #0E1E15;
}

/* ============================================================
   2. ORGANIC CIRCULAR MOTION & DISABLED RINGS
   ============================================================ */
/* Ring Graphic Container - Explicitly removed per user request */
.q-growth-ring-system,
.q-longevity-ring-graphic {
  display: none !important;
}

/* ============================================================
   3. HIERARCHICAL SCROLL REVEALS (Intersection Observer)
   ============================================================ */
/* Base Reveal Container */
.q-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 
    opacity var(--q-motion-editorial) var(--q-ease-editorial),
    transform var(--q-motion-editorial) var(--q-ease-editorial);
  will-change: opacity, transform;
}

.q-reveal-fade {
  opacity: 0;
  transition: opacity var(--q-motion-editorial) var(--q-ease-editorial);
  will-change: opacity;
}

.q-reveal-scale {
  opacity: 0;
  transform: scale(0.97) translateY(16px);
  transition: 
    opacity 800ms var(--q-ease-editorial),
    transform 800ms var(--q-ease-editorial);
  will-change: opacity, transform;
}

/* Hierarchy: Eyebrows reveal 1st */
.q-reveal-eyebrow {
  opacity: 0;
  transform: translateY(12px);
  transition: 
    opacity 550ms var(--q-ease-editorial),
    transform 550ms var(--q-ease-editorial);
  will-change: opacity, transform;
}

/* Hierarchy: Section Headings reveal 2nd */
.q-reveal-title {
  opacity: 0;
  transform: translateY(20px);
  transition: 
    opacity 750ms var(--q-ease-editorial),
    transform 750ms var(--q-ease-editorial);
  will-change: opacity, transform;
  transition-delay: 80ms;
}

/* Hierarchy: Body Copy reveals 3rd */
.q-reveal-body {
  opacity: 0;
  transform: translateY(14px);
  transition: 
    opacity 700ms var(--q-ease-editorial),
    transform 700ms var(--q-ease-editorial);
  will-change: opacity, transform;
  transition-delay: 160ms;
}

/* Hierarchy: CTAs reveal 4th with Icon Lag */
.q-reveal-cta {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: 
    opacity 650ms var(--q-ease-editorial),
    transform 650ms var(--q-ease-editorial);
  will-change: opacity, transform;
  transition-delay: 240ms;
}

.q-reveal-cta .q-btn-arrow {
  display: inline-block;
  opacity: 0.6;
  transform: translateX(-3px);
  transition: 
    transform 400ms var(--q-ease-editorial) 120ms,
    opacity 400ms var(--q-ease-editorial) 120ms;
}

.q-reveal-cta.is-revealed .q-btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Hierarchy: Editorial Images with Mask & Blur-to-Sharp Reveal */
.q-reveal-img {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(4px) saturate(0.92);
  transition: 
    opacity 850ms var(--q-ease-editorial),
    transform 950ms var(--q-ease-editorial),
    filter 850ms var(--q-ease-editorial);
  will-change: opacity, transform, filter;
}

.q-reveal-img.is-revealed {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px) saturate(0.98);
}

/* Triggered State for all reveals */
.q-reveal.is-revealed,
.q-reveal-fade.is-revealed,
.q-reveal-scale.is-revealed,
.q-reveal-eyebrow.is-revealed,
.q-reveal-title.is-revealed,
.q-reveal-body.is-revealed,
.q-reveal-cta.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   4. STAGGER DELAY SYSTEM (60ms - 120ms between items)
   ============================================================ */
.q-stagger-1, .q-delay-1 { transition-delay: 0ms; }
.q-stagger-2, .q-delay-2 { transition-delay: 80ms; }
.q-stagger-3, .q-delay-3 { transition-delay: 160ms; }
.q-stagger-4, .q-delay-4 { transition-delay: 240ms; }
.q-stagger-5, .q-delay-5 { transition-delay: 320ms; }
.q-stagger-6 { transition-delay: 400ms; }
.q-stagger-7 { transition-delay: 480ms; }
.q-stagger-8 { transition-delay: 560ms; }

/* ============================================================
   5. IMAGE FRAMES & EDITORIAL MASKS
   ============================================================ */
.q-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--q-radius-xl);
  background-color: var(--q-bg-secondary);
}

.q-mask-organic-hero {
  border-radius: 32px 96px 32px 32px;
  box-shadow: 0 12px 36px rgba(25, 61, 42, 0.09);
  border: 1px solid rgba(196, 164, 94, 0.25);
}

.q-mask-arch {
  border-radius: 120px 120px 24px 24px;
}

.q-mask-soft-corner {
  border-radius: 24px 64px 24px 64px;
}

.q-editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: saturate(0.96) contrast(0.99) brightness(0.99);
  transition: 
    transform 750ms var(--q-ease-editorial),
    filter 650ms var(--q-ease-editorial);
  will-change: transform, filter;
  display: block;
}

.q-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(25, 61, 42, 0) 40%, 
    rgba(25, 61, 42, 0.35) 100%
  );
  opacity: 0.65;
  transition: opacity 600ms var(--q-ease-editorial);
  pointer-events: none;
}

.q-image-frame:hover .q-editorial-img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02) brightness(1.01);
}

.q-image-frame:hover::after {
  opacity: 0.85;
}

/* ============================================================
   6. ELEVATED SERVICE & ECOSYSTEM CARDS (HOVER + SCROLL HARMONY)
   ============================================================ */
.q-eco-card {
  position: relative;
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid var(--q-border-subtle);
  border-radius: var(--q-radius-lg);
  padding: 0;
  opacity: 0;
  transform: translateY(22px);
  transition: 
    opacity 750ms var(--q-ease-editorial),
    transform 750ms var(--q-ease-editorial),
    border-color 450ms var(--q-ease-editorial),
    box-shadow 450ms var(--q-ease-editorial);
  will-change: opacity, transform;
}

.q-eco-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.q-eco-card.is-revealed:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 164, 94, 0.4);
  box-shadow: 0 14px 32px rgba(25, 61, 42, 0.08);
}

.q-card-media-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background-color: var(--q-bg-secondary);
}

.q-card-media-wrap .q-editorial-img {
  height: 100%;
  transform: scale(1);
  transition: transform 700ms var(--q-ease-editorial), filter 500ms var(--q-ease-editorial);
}

.q-eco-card:hover .q-card-media-wrap .q-editorial-img {
  transform: scale(1.05);
  filter: saturate(1.08) brightness(1.02);
}

.q-card-body {
  padding: var(--q-sp-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.q-eco-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--q-green-emerald) 0%, var(--q-gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--q-ease-editorial);
}

.q-eco-card:hover::after {
  transform: scaleX(1);
}

.q-eco-card:hover .q-eco-title {
  color: var(--q-green-emerald);
  transition: color 300ms var(--q-ease-editorial);
}

/* ============================================================
   7. BUTTON SYSTEM & HERO-TO-HEADER CONTINUITY
   ============================================================ */
.q-btn {
  position: relative;
  overflow: hidden;
  transition: 
    background-color 350ms var(--q-ease-editorial),
    color 350ms var(--q-ease-editorial),
    border-color 350ms var(--q-ease-editorial),
    box-shadow 450ms var(--q-ease-editorial),
    transform 350ms var(--q-ease-editorial);
  will-change: transform;
}

.q-btn-arrow {
  display: inline-block;
  transition: transform 320ms var(--q-ease-editorial);
}

.q-btn:hover .q-btn-arrow {
  transform: translateX(4px);
}

/* Primary Button Gold Shine Line */
.q-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 600ms var(--q-ease-editorial);
  pointer-events: none;
}

.q-btn-primary:hover::before {
  left: 140%;
}

/* Secondary Button Inward Fill */
.q-btn-secondary {
  position: relative;
  z-index: 1;
}

.q-btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--q-green-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 350ms var(--q-ease-editorial);
  z-index: -1;
  border-radius: inherit;
}

.q-btn-secondary:hover {
  color: #FFFFFF;
  border-color: var(--q-green-deep);
}

.q-btn-secondary:hover::after {
  transform: scaleY(1);
}

/* Header CTA Visual Continuity Enhancement */
.q-header-cta {
  transition: 
    background-color 350ms var(--q-ease-editorial),
    color 350ms var(--q-ease-editorial),
    border-color 450ms var(--q-ease-editorial),
    box-shadow 450ms var(--q-ease-editorial),
    transform 350ms var(--q-ease-editorial);
}

.q-header-cta.is-highlighted {
  border-color: var(--q-gold) !important;
  box-shadow: 0 0 0 2px rgba(196, 164, 94, 0.35), 0 6px 18px rgba(25, 61, 42, 0.14) !important;
}

/* ============================================================
   8. ACTIVE SECTION NAVIGATION SPY INDICATOR
   ============================================================ */
.q-link-editorial {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--q-text-main);
  font-weight: 500;
  text-decoration: none;
  transition: color 300ms var(--q-ease-editorial);
}

.q-link-editorial::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--q-green-emerald), var(--q-gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms var(--q-ease-editorial);
}

.q-link-editorial:hover::after,
.q-nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.q-link-editorial:hover,
.q-nav-link.is-active {
  color: var(--q-green-emerald) !important;
  font-weight: 600;
}

/* ============================================================
   9. PATIENT JOURNEY PROGRESSIVE STEP ACTIVATION
   ============================================================ */
.q-step-card {
  position: relative;
  transition: 
    border-color 450ms var(--q-ease-editorial),
    box-shadow 450ms var(--q-ease-editorial),
    transform 450ms var(--q-ease-editorial);
}

.q-step-card .q-step-num {
  transition: color 350ms var(--q-ease-editorial), transform 350ms var(--q-ease-editorial);
}

.q-step-card.is-step-active {
  border-color: rgba(196, 164, 94, 0.5) !important;
  box-shadow: 0 10px 26px rgba(25, 61, 42, 0.08) !important;
  transform: translateY(-2px);
}

.q-step-card.is-step-active .q-step-num {
  color: var(--q-green-emerald) !important;
  transform: scale(1.05);
}

/* ============================================================
   10. FLOATING BADGES & SUBTLE DEPTH
   ============================================================ */
.q-hero-float-badge {
  transition: transform 450ms var(--q-ease-editorial), box-shadow 450ms var(--q-ease-editorial);
  will-change: transform;
}

.q-hero-float-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(25, 61, 42, 0.1);
}

.q-hero-visual {
  transition: transform 500ms var(--q-ease-editorial);
  will-change: transform;
}

/* Provider Spotlight Container */
.q-provider-photo-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: var(--q-radius-lg);
  box-shadow: var(--q-shadow-hover);
}

/* ============================================================
   11. ACCESSIBILITY OVERRIDES (prefers-reduced-motion: reduce)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  body {
    transition: none !important;
  }

  .q-reveal,
  .q-reveal-fade,
  .q-reveal-scale,
  .q-reveal-eyebrow,
  .q-reveal-title,
  .q-reveal-body,
  .q-reveal-cta,
  .q-reveal-img,
  .q-eco-card,
  .q-step-card,
  .q-pillar-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }

  .q-btn-arrow {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .q-editorial-img,
  .q-btn,
  .q-hero-float-badge,
  .q-hero-visual {
    transition: none !important;
    transform: none !important;
  }

  /* Se ocultan con scale(0): quitarles el transform los dejaria tapando el texto. */
  .q-btn-primary::before,
  .q-btn-secondary::after,
  .q-eco-card::after,
  .q-link-editorial::after {
    transition: none !important;
  }
}


/* ---- css/refinement.css ---- */
/* Quintana: editorial refinement of the existing design system. */
:root {
  --q-bg-primary: #fafbf7;
  --q-bg-secondary: #f2f3eb;
  --q-radius-lg: 12px;
  --q-radius-xl: 18px;
  --q-gold-text: #79602d;
}
html { scroll-padding-top: 112px; }
body { overflow-x: clip; }
main, section, .q-container, .q-container > *, [class$="-grid"] > * { min-width: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.q-container { max-width: 1360px; padding-inline: clamp(22px, 4.5vw, 72px); }
.q-section { padding-block: clamp(64px, 7.5vw, 112px); }
.q-section-header { max-width: 780px; margin-bottom: 48px; }
.q-section-header h2 { font-size: clamp(2.35rem, 4vw, 3.75rem); }
.q-eyebrow { font-size: .7rem; letter-spacing: .16em; margin-bottom: 18px; }
.q-eyebrow::after, .q-divider-arc { display: none; }
.q-eyebrow::before { width: 28px; }
.q-section-header .q-lead { font-size: 1rem; max-width: 580px; margin: 20px auto 0; }
/* Navigation retains the owner's symbol-only identity. */
.q-header-inner, .q-header.is-scrolled .q-header-inner { height: 88px; gap: 24px; }
.q-header { background: rgba(250,251,247,.95); }
.q-brand-link { margin: 0; }
.q-header-logo, .q-header.is-scrolled .q-header-logo { height: 52px; }
.q-header-actions { margin-left: auto; gap: 14px; flex-shrink: 0; }
.q-nav-list { gap: 20px; }
.q-nav-link { font-size: .8rem; padding-block: 15px; }
.q-phone-link { font-size: .94rem; padding: 0; border: 0; background: none; }
.q-lang-btn { min-width: 35px; min-height: 36px; }
.q-burger { width: 44px; height: 44px; }
.q-mobile-drawer { top: 88px; height: calc(100dvh - 88px); background: var(--q-bg-primary); visibility: hidden; }
.q-mobile-drawer.is-open { visibility: visible; }
.q-mobile-drawer[hidden] { display: none; }
.q-mobile-nav-link { padding-block: 10px; font-size: 1.9rem; border-bottom: 1px solid var(--q-border-subtle); }
/* Calm, tactile buttons. The label and arrow remain separate when translated. */
.q-btn { min-height: 50px; padding: 13px 23px; border-radius: 6px; letter-spacing: 0; white-space: normal; text-align: center; will-change: auto; }
.q-btn-lg { min-height: 56px; font-size: .875rem; padding: 16px 25px; }
.q-btn-arrow { margin-left: 10px; font-size: 1.15em; }
.q-btn-primary { background: var(--q-green-deep); }
.q-btn-primary::before { display: none; }
.q-btn-primary:hover { box-shadow: 0 6px 18px #193d2a18; }
.q-btn-secondary { border-color: #193d2a4d; }
.q-btn:focus-visible { outline: 3px solid var(--q-focus-ring); outline-offset: 4px; }
.q-welcome-cinema, .q-longevity-banner, .q-footer, .q-booking-card, .q-section-dark, .q-legal-page-hero, .q-compare-card-quintana, .qms-deep, .qms-card--dark { --q-focus-ring: #E8CE8C; }
.q-whatsapp-float:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 5px #193D2A; }
/* Hero: larger type, shorter message, intentional portrait and visible growth rings. */
.q-hero { background: var(--q-bg-primary); padding-block: 64px 78px; }
.q-hero-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(40px,6vw,88px); }
.q-badge-location { background: none; border: none; box-shadow: none; padding: 0; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 25px; }
.q-hero-title { font-size: clamp(3.3rem,5.8vw,5.5rem); line-height: .99; max-width: 11ch; margin-bottom: 28px; }
:lang(es) .q-hero-title { max-width: 13ch; }
.q-hero-lead { font-size: 1.025rem !important; line-height: 1.75; max-width: 40ch; margin-bottom: 28px; }
.q-hero-ctas { gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.q-hero-ctas .q-btn-secondary { border: none; background: transparent; padding-inline: 8px; }
.q-hero-ctas .q-btn-secondary::after { display: none; }
.q-hero-ctas .q-btn-secondary:hover { color: var(--q-green-deep); text-decoration: underline; text-underline-offset: 6px; }
.q-hero-guarantees { gap: 10px 20px; font-size: .73rem; max-width: 410px; }
.q-hero-visual { padding: 0; isolation: isolate; }
.q-hero-visual > .q-growth-ring-system { z-index: -1; width: 135% !important; height: 115% !important; top: 49% !important; opacity: .7; }
/* Foto de Onel en circulo con la tarjeta del nombre debajo (opcion A del dueño, 16 sep 2026). */
.q-mask-organic-hero { aspect-ratio: auto !important; border-radius: 0; border: none; box-shadow: none; overflow: visible; background: none; display: flex; flex-direction: column; align-items: center; }
.q-mask-organic-hero .q-editorial-img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: 50% 22%; filter: none; box-shadow: 0 0 0 1px rgba(217,190,134,.45), 0 0 0 9px rgba(217,190,134,.08); }
.q-mask-organic-hero::after { display: none; }
.q-hero-float-badge { position: relative; inset: auto; margin-top: -30px; max-width: calc(100% - 8px); background: #fff; border-radius: 18px; padding: 10px 18px 10px 10px; gap: 10px; z-index: 3; box-shadow: 0 12px 30px #193d2a0b; }
.q-hero-float-badge .q-float-badge-icon { width: 34px; height: 34px; }
/* Con prefijo: las clases .qms-h3/.qms-secondary del tema (que carga despues) agrandaban la tarjeta. */
.q-hero-visual .q-float-badge-title { font-size: .78rem; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.q-hero-visual .q-float-badge-desc { font-size: .66rem; line-height: 1.4; }
@media (min-width: 1024px) {
  .q-hero-visual .q-float-badge-title { font-size: .9rem; }
  .q-hero-visual .q-float-badge-desc { font-size: .72rem; }
}
.q-float-badge-icon { background: var(--q-bg-secondary); }
.q-editorial-img { will-change: auto; }
.q-trust-bar { background: #eef2e9; padding-block: 25px; }
.q-trust-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.q-trust-text { font-size: .8rem; }
.q-trust-sub { font-size: .75rem; padding-top: 4px; }
/* Services: photographic opening row, restrained typographic secondary row. */
#ecosystem { background: var(--q-bg-primary); }
#ecosystem .q-section-header { max-width: none; text-align: left; margin-bottom: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 72px; align-items: end; }
#ecosystem .q-section-header .q-eyebrow { grid-column: 1 / -1; }
#ecosystem .q-section-header h2 { max-width: 16ch; }
#ecosystem .q-section-header .q-lead { margin: 0 !important; }
.q-ecosystem-grid { gap: 36px 24px; }
.q-eco-card { border: none; border-radius: 0; background: transparent; }
.q-card-media-wrap { height: auto; aspect-ratio: 1.35; border-radius: 10px; flex-shrink: 0; }
.q-card-body { padding: 23px 0 12px; }
.q-eco-card-top { margin-bottom: 20px; }
.q-eco-num { font-family: var(--q-font-sans); font-size: .7rem; letter-spacing: .07em; font-weight: 500; margin-bottom: 12px; }
.q-eco-title { font-size: 1.95rem; margin-bottom: 10px; }
.q-eco-role { font-size: .63rem; letter-spacing: .11em; margin-bottom: 12px; }
.q-eco-desc { font-size: .875rem; line-height: 1.7; }
.q-eco-footer { border-top: 1px solid #193d2a22; padding-top: 15px; }
.q-eco-badge { display: none; }
.q-eco-card:nth-child(n+4) { padding-top: 12px; border-top: 1px solid var(--q-border-medium); }
.q-eco-card:hover { transform: none; background: transparent; box-shadow: none; }
.q-eco-card:focus-within::after { transform: scaleX(1); }
.q-eco-card:focus-within .q-editorial-img { filter: saturate(1.05); }
.q-pillars-grid { gap: 36px; }
.q-pillar-item { text-align: left; border-top: 1px solid var(--q-border-medium); padding-top: 26px; }
.q-pillar-icon { margin-left: 0; background: transparent; border: 0; }
.q-pillar-title { font-size: 1.9rem; }
.q-pillar-desc { font-size: .9rem; line-height: 1.75; }
.q-step-card { border: 0; border-top: 1px solid var(--q-border-medium); border-radius: 0; background: none; padding: 24px 0; }
.q-step-num { background: none; border: 0; font-family: var(--q-font-sans); font-size: .75rem; justify-content: flex-start; height: auto; }
.q-step-title { font-size: 1.65rem; }
.q-step-desc, .q-price-desc, .q-biomarker-desc, .q-degree-desc { font-size: .875rem; line-height: 1.7; }
.q-longevity-banner { border-radius: 18px; padding: clamp(32px,5vw,64px); }
.q-longevity-content { max-width: 580px; }
.q-longevity-content h2 { font-size: clamp(2.5rem,4vw,3.75rem); max-width: 16ch; }
.q-longevity-content p { max-width: 46ch; line-height: 1.7; }
.q-longevity-media-wrap::before { background: linear-gradient(90deg,#193d2a 0%,#193d2ae6 25%,#193d2a55 100%); }
.q-biomarker-grid { gap: 0; border-bottom: 1px solid var(--q-border-medium); }
.q-biomarker-card { border: 0; border-radius: 0; background: none; padding: 28px 24px; }
.q-biomarker-card + .q-biomarker-card { border-left: 1px solid var(--q-border-subtle); }
.q-biomarker-card:hover, .q-degree-card:hover { transform: none; box-shadow: none; }
.q-biomarker-title { font-family: var(--q-font-sans); font-size: .95rem; font-weight: 600; line-height: 1.5; }
.q-biomarker-tags { display: none; }
/* A bright expectations section replaces the heavy competitive comparison. */
.q-comparison-section { background: #edf1e8; color: var(--q-green-deep); border: 0; }
.q-comparison-section .q-section-header h2 { color: var(--q-green-deep) !important; text-shadow: none !important; }
.q-comparison-section .q-section-header .q-lead { color: var(--q-text-muted) !important; text-shadow: none !important; }
.q-comparison-section .q-eyebrow { color: var(--q-gold-text) !important; text-shadow: none !important; background: transparent !important; border-color: transparent !important; }
.q-compare-grid { max-width: none; gap: 24px; }
.q-compare-card { background: #ffffff80; border: 1px solid #193d2a22; box-shadow: none; backdrop-filter: none; border-radius: 10px; }
.q-compare-card-quintana { background: var(--q-green-deep); }
.q-compare-card-trad h3 { color: var(--q-green-deep); }
.q-compare-card-trad .q-compare-item { color: var(--q-text-muted); }
.q-compare-card-trad .q-compare-badge { color: var(--q-gold-text); border-color: #193d2a22; }
.q-comparison-section .q-compare-card-trad h3 { color: var(--q-green-deep) !important; }
.q-comparison-section .q-compare-card-trad .q-compare-item,
.q-comparison-section .q-compare-card-trad .q-compare-item span {
  color: var(--q-text-muted) !important;
}
.q-comparison-section .q-compare-card-trad .q-compare-icon-neg {
  color: var(--q-green-emerald) !important;
}
.q-compare-card-quintana .q-compare-badge { background: none; border: 0; padding: 0; border-radius: 0; }
.q-compare-card h3 { font-size: 2.2rem; }
.q-compare-item { font-size: .9rem; }
.q-compare-icon-neg { color: var(--q-green-emerald); }
.q-provider-card { border: 0; background: var(--q-bg-secondary); box-shadow: none; border-radius: 12px; }
.q-provider-visual { padding: 32px; background: #e6ecdf; }
.q-provider-portrait { width: 100%; aspect-ratio: 4/3.7; border-radius: 8px; margin-bottom: 24px; }
.q-provider-portrait img { object-position: center 23%; }
.q-provider-quote { font-size: clamp(1.9rem,2.7vw,2.7rem); line-height: 1.25; border: 0; padding: 0; }
.q-provider-license-badge { font-size: .75rem; line-height: 1.7; max-width: 360px; }
.q-pricing-preview { background: none; border: 0; padding: 0; }
.q-price-card { text-align: left; padding: 30px; border-radius: 10px; }
.q-price-card.featured { background: var(--q-bg-secondary); border-color: var(--q-border-medium); box-shadow: none; }
.q-price-title { font-size: 1.7rem; }
.q-price-tag { font-family: var(--q-font-sans); font-size: .8rem; font-weight: 600; }
.q-cta-section { background: var(--q-green-deep); padding-block: 100px; }
.q-footer { background: #153524; border-color: #ffffff26; }
.q-footer-grid { gap: 32px; }
.q-footer p, .q-footer a { overflow-wrap: anywhere; }
.q-footer-link, .q-footer-tagline { font-size: .8rem; }
.q-footer-bottom p { white-space: normal !important; }
.q-footer-bottom { align-items: start; gap: 40px; }
.q-footer-bottom > :last-child { max-width: 250px; }
.q-mobile-bar { padding-bottom: max(12px,env(safe-area-inset-bottom)); box-shadow: none; }
.q-mobile-bar-btn { min-height: 46px; }
.q-service-hero { padding-block: 45px 72px; background: var(--q-bg-secondary); }
.q-service-hero-title { max-width: 18ch; }
.q-contact-layout { gap: 48px; }
.q-contact-info-panel a { overflow-wrap: anywhere; }
.q-booking-card { background: var(--q-green-deep); color: var(--q-text-inverse); padding: clamp(28px,4vw,56px); border-radius: 14px; position: sticky; top: 120px; }
.q-booking-card h2 { color: inherit; font-size: 3rem; margin-bottom: 20px; }
.q-booking-card p { color: var(--q-text-inverse-dim); margin-bottom: 28px; }
.q-booking-card .q-eyebrow { color: var(--q-gold-light); }
.q-booking-card .q-btn { width: 100%; margin-bottom: 14px; }
.q-booking-steps { list-style: none; margin-top: 28px; border-top: 1px solid #ffffff30; }
.q-booking-steps li { padding-block: 17px; border-bottom: 1px solid #ffffff30; font-size: .9rem; }
.q-booking-steps span { color: var(--q-gold-light); margin-right: 14px; }
.q-motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #ffffff55; background: transparent; color: var(--q-text-inverse); border-radius: 6px; padding: 10px 14px; font: inherit; font-size: .75rem; cursor: pointer; }
.q-motion-paused *, .q-motion-paused *::before, .q-motion-paused *::after { animation-play-state: paused !important; }
.q-reveal, .q-reveal-fade, .q-reveal-scale { opacity: 1; transform: none; will-change: auto; }
.q-motion-ready .q-reveal:not(.is-revealed) { opacity: 0; transform: translateY(16px); }
.q-motion-ready .q-reveal-fade:not(.is-revealed) { opacity: 0; }
.q-motion-ready .q-reveal-scale:not(.is-revealed) { opacity: 0; transform: translateY(10px); }
.q-reveal, .q-reveal-scale, .q-reveal-fade { transition-duration: 500ms; }
.q-hero [class*="q-reveal"] { opacity: 1 !important; transform: none !important; }
@media (max-width: 1279px) {
  .q-nav { display: none; }
  .q-burger { display: flex; }
  .q-header-cta { display: inline-flex; }
}
@media (min-width: 1280px) {
  .q-nav { display: flex; }
  .q-burger { display: none; }
  .q-nav-list { gap: 18px; }
  .q-phone-link { display: inline-flex; }
  .q-header .q-container { max-width: 1440px; padding-inline: 32px; }
  .q-header-inner { gap: 28px; }
}
@media (max-width: 1023px) {
  .q-hero-title { font-size: clamp(3rem,6.3vw,4.2rem); }
  .q-hero-grid { gap: 32px; }
  .q-hero-ctas { flex-direction: column; align-items: stretch; }
  .q-hero-guarantees { flex-direction: column; }
  #ecosystem .q-section-header { gap: 0 32px; }
  .q-card-media-wrap { aspect-ratio: 1.5; }
  .q-biomarker-card:nth-child(3) { border-left: 0; }
  .q-booking-card { position: static; }
}
@media (max-width: 639px) {
  html { scroll-padding-top: 92px; }
  .q-header-inner, .q-header.is-scrolled .q-header-inner { height: 76px; gap: 12px; }
  .q-header-logo, .q-header.is-scrolled .q-header-logo { height: 48px; }
  .q-header-actions { gap: 10px; }
  .q-header-cta { display: none; }
  .q-mobile-drawer { top: 76px; height: calc(100dvh - 76px); padding-bottom: max(28px,env(safe-area-inset-bottom)); }
  .q-hero { padding-block: 36px 42px; }
  .q-hero-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .q-badge-location { font-size: .65rem; margin-bottom: 20px; }
  .q-hero-title { font-size: clamp(3rem,12.5vw,4.5rem); max-width: 11ch; margin-bottom: 20px; }
  .q-hero-lead { font-size: .95rem !important; line-height: 1.7; margin-bottom: 20px; }
  .q-hero-ctas { margin-bottom: 20px; gap: 2px; }
  .q-hero-guarantees { flex-direction: row; gap: 8px 14px; font-size: .68rem; }
  .q-hero-visual { max-width: 380px; width: 100%; margin-inline: auto; }
  .q-trust-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .q-trust-item { padding-bottom: 16px; border-bottom: 1px solid #193d2a20; }
  .q-trust-item:last-child { border: 0; padding-bottom: 0; }
  #ecosystem .q-section-header { display: block; }
  #ecosystem .q-section-header .q-lead { margin-top: 20px !important; }
  .q-eco-title { font-size: 2rem; }
  .q-ecosystem-grid { gap: 32px; }
  .q-biomarker-card { padding: 24px 22px; }
  .q-biomarker-grid { gap: 12px; }
  .q-biomarker-card + .q-biomarker-card { border-left: 0; border-top: 1px solid var(--q-border-subtle); }
  .q-longevity-tags { gap: 8px; }
  .q-longevity-tag { font-size: .65rem; padding: 6px 9px; }
  .q-longevity-media-wrap { width: 100%; opacity: .4; }
  .q-compare-card { padding: 26px; }
  .q-provider-visual, .q-provider-info { padding: 24px; }
  .q-pricing-grid { gap: 16px; }
  .q-price-card, .q-location-info-card { padding: 24px; }
  .q-footer-grid { grid-template-columns: minmax(0,1fr); }
  .q-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .q-cta-btn-group { flex-direction: column; align-items: stretch; }
  .q-cta-section { padding-block: 70px; }
  .q-info-block { padding: 22px; }
  .q-booking-card h2 { font-size: 2.5rem; }
  .q-milestone-item { grid-template-columns: 58px minmax(0,1fr); }
}
@media (hover: none) {
  .q-eco-card:hover, .q-image-frame:hover .q-editorial-img, .q-eco-card:hover .q-editorial-img { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .q-motion-ready [class*="q-reveal"] { opacity: 1; transform: none; }
  .q-growth-ring-system, .q-btn, .q-editorial-img { translate: none !important; }
}
/* Compatibility with the latest pages added while this review was in progress. */
[class*="q-reveal"], .q-eco-card, .q-pillar-item, .q-step-card { opacity: 1; filter: none; will-change: auto; }
.q-motion-ready [class*="q-reveal"]:not(.is-revealed) { opacity: 0; transform: translateY(12px); }
.q-motion-ready .q-hero [class*="q-reveal"] { opacity: 1; transform: none; filter: none; }
.q-hero-visual { overflow: visible; }
.q-orbit { position: absolute; inset: -18px -18px auto; aspect-ratio: 1 / 1; z-index: -1; pointer-events: none; }
.q-orbit i { position: absolute; inset: 0; border: 1px solid #aabdafa0; border-radius: 49% 51% 46% 54%; animation: q-orbit-turn 48s linear infinite; }
.q-orbit i:nth-child(2) { inset: 18px -15px; border-color: #c4a45e70; animation-direction: reverse; animation-duration: 64s; }
.q-orbit i:nth-child(3) { inset: 45px -30px; border-color: #aabdaf80; animation-duration: 80s; }
@keyframes q-orbit-turn { to { transform: rotate(360deg); } }
.q-image-unavailable { background: radial-gradient(ellipse at 40% 40%,#dce5dc, #f5f3ec); }
.q-image-unavailable::before { content: ''; position: absolute; inset: 15%; border: 1px solid var(--q-eucalyptus); border-radius: 50%; }
.q-editorial-img[hidden], .q-faq-content[hidden] { display: none; }
.q-eco-card:nth-child(n+4) { border-top: 0; padding-top: 0; }
.q-eco-tag { display: none; }
.q-header-cta { opacity: 1; }
.q-biometric-telemetry-card { position: relative; inset: auto; width: 100%; max-width: 580px; margin-top: 32px; z-index: 3; }
.q-bio-telemetry-header { flex-wrap: wrap; gap: 12px; }
.q-aesthetics-section { background: var(--q-bg-primary); }
.q-aesthetics-card { box-shadow: none; border-radius: 10px; }
.q-aesthetics-card-title { font-size: 1.7rem; }
.q-aesthetics-card-desc { font-size: .875rem; line-height: 1.7; }
.q-comparison-range:focus-visible { opacity: 1; outline: 3px solid var(--q-gold); outline-offset: 4px; }
.q-comparison-container { touch-action: pan-y; }
.q-whatsapp-float { width: 48px; height: 48px; right: 20px; bottom: 24px; box-shadow: 0 3px 12px #193d2a20; }
@media (max-width:767px) {
  .q-whatsapp-float { bottom: calc(88px + env(safe-area-inset-bottom)); width: 42px; height: 42px; right: 14px; }
  .q-biometric-telemetry-card { margin-top: 24px; padding: 18px; }
  .q-bio-metrics-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .q-longevity-banner { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .q-motion-ready [class*="q-reveal"] { opacity: 1; transform: none; filter: none; }
  .q-orbit i { animation: none; }
}

/* --- Revision 2026-09-16 --- */

/* R1-13: la respuesta abierta no se recorta (antes max-height: 320px). main.js ya usa [hidden]. */
.q-faq-content,
.q-faq-item.is-open .q-faq-content { max-height: none; overflow: visible; }
.q-faq-item.is-open .q-faq-content { padding-bottom: 22px; }

/* R1-08: en pantallas estrechas el texto legal no se corta */
.q-legal-container > * { min-width: 0; }
.q-legal-content a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .q-legal-content { padding: 24px 18px; }
  .q-legal-nav { position: static; padding: 18px; }
}

/* R1-11: al tabular, la barra fija movil ya no tapa el elemento enfocado */
@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* R1-60: al imprimir, el contenido con animacion de entrada se ve */
@media print {
  [class*="q-reveal"],
  .q-eco-card,
  .q-step-card,
  .q-pillar-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .q-whatsapp-float,
  .q-mobile-bar,
  .q-lead-modal-backdrop,
  .q-motion-toggle { display: none !important; }
}

/* ============================================================
   Firma "Built by Salmeron Studios" — kit oficial del estudio
   (kit-firma-salmeron, variante C: js/firma-salmeron.js + logo
   img/brand/salmeron-logo-128.webp). .qms-studio-signature solo la
   coloca en este pie; debajo va el CSS del kit sin cambios salvo el
   selector de tema: el sitio no tiene tema claro y el pie siempre es
   verde oscuro, asi que el halo queda activo. Para ponerla sobre un
   fondo claro, anadir .is-on-light al contenedor.
   ============================================================ */
.qms-studio-signature {
  /* Heredar daria el verde oscuro del cuerpo: sobre el pie verde no se leeria. */
  color: var(--q-text-inverse-dim, #DCE5DC);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: center;
}
/* base.css pinta a:hover de verde oscuro (mas especifico que .lp-firma):
   sin esto el texto desaparece sobre el pie al pasar el raton. */
.qms-studio-signature .lp-firma,
.qms-studio-signature .lp-firma:hover,
.qms-studio-signature .lp-firma:focus-visible { color: inherit; }

.lp-firma {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

/* La opacidad de reposo va solo en texto y flecha: el logo, que ya es oscuro,
   se muestra siempre al 100 %. */
.lp-firma-texto,
.lp-firma-flecha {
  opacity: 0.72;
  transition: opacity 200ms ease;
}

/* Capa de hover (CSS). La capa interna (.lp-firma-logo) la anima el JS (Framer Motion o Web Animations),
   así el transform del hover y el del clic no se pisan. */
.lp-firma-elev {
  display: inline-flex;
  transform: translateZ(0);
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 200ms ease;
}

.lp-firma-logo {
  display: inline-flex;
  transform-origin: 50% 50%;
  will-change: transform;
}

.lp-firma-logo > svg,
.lp-firma-logo > img {
  display: block;
  height: 1.5em; /* ≈24 px: a 18 px el símbolo se empasta */
  width: auto;
}

/* Tema oscuro (por defecto): halo claro muy fino. El azul marino del logo
   tiene 1.46:1 contra #000 y sin esto se pierde. */
.lp-firma-logo > svg,
.lp-firma-logo > img {
  filter: drop-shadow(0 0 0.6px rgb(255 255 255 / 0.35));
}
.qms-studio-signature.is-on-light .lp-firma-logo > svg,
.qms-studio-signature.is-on-light .lp-firma-logo > img {
  filter: none;
}

.lp-firma-flecha {
  display: inline-block;
  line-height: 1;
}

@media (hover: hover) {
  .lp-firma:hover .lp-firma-texto,
  .lp-firma:hover .lp-firma-flecha {
    opacity: 1;
  }
  .lp-firma:hover .lp-firma-elev {
    transform: translateY(-1px) scale(1.03);
    filter: brightness(1.15);
  }
}

.lp-firma:focus-visible .lp-firma-texto,
.lp-firma:focus-visible .lp-firma-flecha {
  opacity: 1;
}
.lp-firma:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.lp-firma:focus-visible .lp-firma-elev {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .lp-firma-texto,
  .lp-firma-flecha,
  .lp-firma-elev {
    transition: none;
  }
  .lp-firma:hover .lp-firma-elev,
  .lp-firma:focus-visible .lp-firma-elev {
    transform: none; /* se conserva solo el cambio de brillo/opacidad */
  }
}

/* Este proyecto no usa Tailwind ni tenia .sr-only: se deja la del kit. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Antibots (Turnstile) en el formulario de la guia: sin clave el hueco queda vacio y no ocupa sitio. */
.q-lead-turnstile { display: flex; justify-content: center; margin: 0 0 12px; }
.q-lead-turnstile:empty { display: none; }

/* ============================================================
   Revision 2026-09-16, ronda 3
   ============================================================ */
/* R1-19: el idioma alternativo es un enlace con el mismo aspecto que el boton */
a.q-lang-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* R1-39: rotulo en las fotos provisionales (decision del dueno: en todas) */
.q-card-media-wrap, .q-aesthetics-card-img, .q-clinic-gallery-item { position: relative; }
.q-img-note { position: absolute; left: 10px; bottom: 10px; z-index: 2; pointer-events: none; font-family: var(--q-font-sans); font-size: .58rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1; color: #fff; background: rgba(12, 46, 27, .72); padding: 5px 9px; border-radius: 999px; }
/* UX-03: en movil ya esta la barra inferior; en tablet y portatil, icono o numero */
@media (max-width: 767px) { .q-header .q-phone-link { display: none; } }
@media (min-width: 768px) { .q-header .q-phone-link { display: inline-flex; } }
@media (min-width: 768px) and (max-width: 1279px) {
  .q-header .q-phone-link { position: relative; width: 44px; height: 44px; padding: 0; justify-content: center; border: 1px solid rgba(25,61,42,.16); border-radius: 999px; }
  .q-header .q-phone-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* UX-22: la cinta de estetica se desplaza; quieta y completa con movimiento reducido o pausado */
.q-marquee-ticker { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.q-ticker-track { gap: 0 !important; animation: q-ticker 45s linear infinite; }
.q-ticker-track > span { padding-right: 32px; }
@keyframes q-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .q-ticker-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .q-marquee-ticker { white-space: normal !important; -webkit-mask-image: none; mask-image: none; }
  .q-ticker-track > span:nth-child(n+7) { display: none; }
}
.q-motion-paused .q-ticker-track { animation-play-state: paused; }
/* UX-23: rejillas sin tarjetas huerfanas */
@media (min-width: 1024px) { .q-pillars-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .q-related-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
/* UX-26: credenciales y horarios sin cortes raros */
.q-nowrap { white-space: nowrap; }
/* UX-27: acabados */
.q-provider-visual { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.q-provider-visual .q-image-frame { width: clamp(150px, 16vw, 210px) !important; height: clamp(150px, 16vw, 210px) !important; }
@media (min-width: 900px) { .q-provider-split-grid > :first-child { position: sticky; top: 120px; align-self: start; } }
.q-longevity-media-wrap { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.q-longevity-media-wrap::before { background: linear-gradient(90deg, rgba(25,61,42,.55) 0%, rgba(25,61,42,.15) 100%); }
.q-comparison-section .q-eyebrow { display: inline-flex !important; }
#primary-care h2, #aesthetics .q-section-header h2 { margin-bottom: 20px; }
.q-price-card.featured { box-shadow: 0 24px 60px rgba(7,28,16,.16), 0 4px 12px rgba(7,28,16,.08); border-color: var(--q-gold); }
/* A11Y-14: los encabezados del pie ahora son h2 */
h2.q-footer-heading { line-height: 1.4; margin-top: 0; }

/* ---- css/qms-theme.css ---- */
/* ==========================================================================
   qms-theme.css — Quintana Medical Services — Ronda 7 (final)
   Capa visual reversible. Activación: <html class="qms-theme"> + <link>.
   Desactivación: quitar la clase del <html> y el <link>. No cambia contenido ni DOM.
   Todas las reglas van bajo :where(html.qms-theme) → el prefijo no suma
   especificidad; la especificidad real es la del selector .qms-*.
   ========================================================================== */

/* -------- 1. Tokens: CLARO (0,0,0) — regla base ------------------------- */
:where(html.qms-theme),
:where(html.qms-theme .qms-light),
:where(html.qms-theme .qms-light-2),
:where(html.qms-theme .qms-card) {
  --qms-fg: #0F2A1A;
  --qms-fg-2: #3F5A48;
  --qms-link: #113F25;
  --qms-accent: #7A5D2E;
  --qms-focus: #113F25;
  --qms-hair: rgba(17, 63, 37, .16);
  --qms-sh: 0 10px 30px rgba(7, 28, 16, .12), 0 2px 6px rgba(7, 28, 16, .08);
  --qms-sh-hi: inset 0 1px 0 rgba(255, 255, 255, .85);
  --qms-sage-text: #4E6A3C;
  --qms-ghost-hover: rgba(17, 63, 37, .08);
}

/* -------- 2. Tokens: OSCURO (0,1,0) — va DESPUÉS y con más especificidad.
   .qms-card y .qms-card--dark son EXCLUYENTES (nunca ambas en el mismo
   elemento). Si alguien las combina, esta regla prevalece igualmente. ---- */
:where(html.qms-theme) .qms-deep,
:where(html.qms-theme) .qms-card--dark {
  --qms-fg: #FAF9F5;
  --qms-fg-2: #C9D2C6;
  --qms-link: #FAF9F5;
  --qms-accent: #D9BE86;
  --qms-focus: #D9BE86;
  --qms-hair: rgba(250, 249, 245, .14);
  --qms-sh: 0 14px 36px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  --qms-sh-hi: inset 0 1px 0 rgba(255, 255, 255, .08);
  --qms-sage-text: #C9D2C6;
  --qms-ghost-hover: rgba(250, 249, 245, .10);
}

/* -------- 3. Fondo global (desplazamiento normal; sin attachment fixed) -- */
:where(html.qms-theme) {
  overflow-x: clip;
  background-color: #0C2E1B;
  background-image:
    radial-gradient(120% 80% at 15% 0%, rgba(122, 156, 128, .22) 0%, rgba(122, 156, 128, 0) 60%),
    linear-gradient(160deg, #0C2E1B 0%, #113F25 100%);
  background-repeat: no-repeat;
  min-height: 100%;
}
:where(html.qms-theme) body {
  background: transparent;
  overflow-x: clip;
}
:where(html.qms-theme) .q-hero {
  overflow: hidden;
}

/* -------- 4. Superficies ------------------------------------------------ */
:where(html.qms-theme) .qms-deep {
  background: transparent;
  color: var(--qms-fg);
}
:where(html.qms-theme) .qms-deep svg {
  color: var(--qms-accent);
}
:where(html.qms-theme) .qms-light {
  background: #FAF9F5;
  color: var(--qms-fg);
}
:where(html.qms-theme) .qms-light-2 {
  background: #F2F0E8;
  color: var(--qms-fg);
}
/* .qms-header: superficie clara elegante tanto al inicio como al hacer scroll.
   El logo y los enlaces de navegación conservan contraste nítido y nunca se pierden.
   NUNCA aplicar .qms-deep ni otra superficie a un ancestro del header/logo. */
:where(html.qms-theme) .qms-header {
  background: rgba(250, 251, 247, 0.96);
  box-shadow: 0 1px 0 rgba(17, 63, 37, .08);
}
:where(html.qms-theme) .qms-header.is-scrolled,
:where(html.qms-theme) .q-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(7, 28, 16, .08);
}

/* -------- 5. Sección: ritmo y contenedor ------------------------------- */
:where(html.qms-theme) .qms-section {
  box-sizing: border-box;
  padding-inline: max(clamp(1rem, 4vw, 3rem), calc((100% - 1200px) / 2));
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

/* -------- 6. Grid opt-in (3/2/1). Solo si TODOS los hijos son tarjetas.
   AMPLIAR CON INVENTARIO: añadir aquí cada mecanismo de ocultación que use
   el sitio (clases de utilidades, atributos) antes de producción. ------- */
:where(html.qms-theme) .qms-grid:where(:not([hidden]):not([aria-hidden="true"]):not(.hidden):not(.is-hidden):not(.d-none)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, .75rem + 1.5vw, 2rem);
}
:where(html.qms-theme) .qms-grid > :where(*) {
  min-width: 0;
}
@media (max-width: 62rem) {
  :where(html.qms-theme) .qms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  :where(html.qms-theme) .qms-grid { grid-template-columns: minmax(0, 1fr); }
}

/* -------- 7. Tarjetas (clases excluyentes: .qms-card O .qms-card--dark) - */
:where(html.qms-theme) :where(.qms-card, .qms-card--dark) {
  box-sizing: border-box;
  border-radius: 16px;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  box-shadow: var(--qms-sh), var(--qms-sh-hi);
  border: 1px solid var(--qms-hair);
  color: var(--qms-fg);
}
:where(html.qms-theme) .qms-card { background: #FFFFFF; }
:where(html.qms-theme) .qms-card--dark { background: #1B4A30; }

/* -------- 8. Fotos y elevación (sin tocar display/height/overflow) ----- */
:where(html.qms-theme) .qms-photo {
  border-radius: 12px;
  outline: 1px solid var(--qms-hair);
  outline-offset: -1px;
  box-shadow: var(--qms-sh);
}
:where(html.qms-theme) .qms-elev-2 {
  box-shadow: 0 24px 60px rgba(7, 28, 16, .22), 0 4px 12px rgba(7, 28, 16, .12);
}

/* -------- 9. Tipografía por clase (opt-in; nunca font-family) ---------- */
:where(html.qms-theme) :is(.qms-h1, h1.qms-h1) {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  font-weight: 600;
  color: var(--qms-fg);
}
:where(html.qms-theme) :is(.qms-h2, h2.qms-h2) {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.005em;
  font-weight: 600;
  color: var(--qms-fg);
}
:where(html.qms-theme) :is(.qms-h3, h3.qms-h3) {
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.3;
  font-weight: 600;
  color: var(--qms-fg);
}
:where(html.qms-theme) :is(.qms-body, p.qms-body, span.qms-body) {
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  color: var(--qms-fg);
}
:where(html.qms-theme) :is(.qms-secondary, p.qms-secondary, span.qms-secondary) {
  font-size: clamp(.875rem, .85rem + .15vw, .9375rem);
  line-height: 1.5;
  color: var(--qms-fg-2);
}
:where(html.qms-theme) .qms-price {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--qms-accent);
}
:where(html.qms-theme) .qms-label-sage {
  font-size: .8125rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--qms-sage-text);
}

/* -------- 10. Enlaces (opt-in). Nav: SOLO a.qms-nav-link; nunca al logo. */
:where(html.qms-theme) a.qms-link:not(.qms-btn) {
  color: var(--qms-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--qms-accent);
}
:where(html.qms-theme) a.qms-nav-link {
  color: var(--qms-fg);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  :where(html.qms-theme) a.qms-link:not(.qms-btn):hover { text-decoration-thickness: 2px; }
  :where(html.qms-theme) a.qms-nav-link:hover { color: var(--qms-accent); }
}

/* -------- 11. Botones. Sin display. Los estados disabled/loading NO reciben
   NINGÚN estilo del tema (base, variantes, hover, foco, transición).
   AMPLIAR CON INVENTARIO: estados de carga/deshabilitado del sitio. ------ */
:where(html.qms-theme) .qms-btn:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])) {
  box-sizing: border-box;
  border-radius: 999px;
  padding: .75em 1.5em;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--qms-focus);
  background: #113F25;
  color: #FAF9F5;
  box-shadow: 0 6px 16px rgba(7, 28, 16, .18);
}
:where(html.qms-theme) .qms-btn.qms-btn--gold:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])) {
  background: #AE8A4C;
  color: #071C10;
  border-color: var(--qms-accent);
}
:where(html.qms-theme) .qms-btn.qms-btn--ghost:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])) {
  background: transparent;
  color: var(--qms-fg);
  border-color: var(--qms-hair);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  :where(html.qms-theme) .qms-btn:hover:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])) {
    background: #1A4D2E;
    box-shadow: 0 8px 20px rgba(7, 28, 16, .24);
  }
  :where(html.qms-theme) .qms-btn.qms-btn--gold:hover:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])) {
    background: #B8955A;
  }
  :where(html.qms-theme) .qms-btn.qms-btn--ghost:hover:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])) {
    background: var(--qms-ghost-hover);
    box-shadow: none;
  }
}

/* -------- 12. Foco visible (teclado) ------------------------------------ */
:where(html.qms-theme) :where(.qms-btn:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])), a.qms-link, a.qms-nav-link):focus-visible {
  outline: 2px solid var(--qms-focus);
  outline-offset: 3px;
}

/* -------- 13. Campos: aspecto hundido. Lista explícita de tipos.
   Excluye disabled/readonly/aria-invalid/etc.
   AMPLIAR CON INVENTARIO: clases de estado del sitio (error, success…),
   incluidas las definidas en un padre (.has-error *, .form-group.error *). */
:where(html.qms-theme) .qms-field:where(
  input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
  input[type="search"], input[type="number"], input[type="date"], input[type="time"],
  input[type="password"], textarea, select
):where(:not(:disabled):not([readonly]):not([aria-invalid="true"]):not(.is-invalid):not(.invalid):not(.error):not(.has-error *):not(.form-group.error *):not(fieldset[aria-invalid] *)) {
  box-sizing: border-box;
  background: #F4F2EB;
  color: #0F2A1A;
  border: 1px solid rgba(17, 63, 37, .24);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(17, 63, 37, .12);
  padding: .7em .9em;
}
:where(html.qms-theme) .qms-field:where(
  input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
  input[type="search"], input[type="number"], input[type="date"], input[type="time"],
  input[type="password"], textarea, select
):where(:not(:disabled):not([readonly]):not([aria-invalid="true"]):not(.is-invalid):not(.invalid):not(.error):not(.has-error *):not(.form-group.error *):not(fieldset[aria-invalid] *))::placeholder {
  color: #3F5A48;
  opacity: 1;
}
/* Foco: borde INTERIOR fijo #113F25 (sobre fondo de campo) + ANILLO exterior
   contextual var(--qms-focus) (sobre la superficie). Dos capas separadas. */
:where(html.qms-theme) .qms-field:where(
  input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
  input[type="search"], input[type="number"], input[type="date"], input[type="time"],
  input[type="password"], textarea, select
):where(:not(:disabled):not([readonly]):not([aria-invalid="true"]):not(.is-invalid):not(.invalid):not(.error):not(.has-error *):not(.form-group.error *):not(fieldset[aria-invalid] *)):focus-visible {
  border-color: #113F25;
  outline: 2px solid var(--qms-focus);
  outline-offset: 3px;
}

/* -------- 13.b Refinamiento: Enlace de teléfono, botones y ritmo interno de tarjetas */
:where(html.qms-theme) .q-phone-link {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--qms-fg);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(17, 63, 37, 0.08);
  border: 1px solid rgba(17, 63, 37, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
:where(html.qms-theme) .q-phone-link:hover {
  background: rgba(17, 63, 37, 0.15);
  border-color: rgba(17, 63, 37, 0.35);
  color: var(--qms-link);
  transform: translateY(-1px);
}
:where(html.qms-theme) .q-phone-link svg {
  color: var(--qms-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
:where(html.qms-theme .qms-deep) .q-phone-link {
  color: #FAF9F5;
  background: rgba(250, 249, 245, 0.12);
  border: 1px solid rgba(250, 249, 245, 0.28);
}
:where(html.qms-theme .qms-deep) .q-phone-link:hover {
  background: rgba(250, 249, 245, 0.22);
  border-color: #FAF9F5;
  color: #FAF9F5;
}
:where(html.qms-theme .qms-deep) .q-phone-link svg {
  color: #D9BE86;
}
@media (min-width: 1024px) {
  :where(html.qms-theme) .qms-header .q-phone-link,
  :where(html.qms-theme) .q-phone-link {
    display: inline-flex;
  }
}

/* Botón secundario del Hero ("Discover our care") */
:where(html.qms-theme) .q-hero-ctas .q-btn-secondary,
:where(html.qms-theme .qms-deep) .qms-btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #FAF9F5;
  background: rgba(250, 249, 245, 0.08);
  border: 1.5px solid rgba(250, 249, 245, 0.42);
  border-radius: 999px;
  padding: 0.85rem 1.85rem;
  text-decoration: none;
  box-shadow: none;
  transition: all 0.2s ease;
}
:where(html.qms-theme) .q-hero-ctas .q-btn-secondary:hover,
:where(html.qms-theme .qms-deep) .qms-btn--ghost:hover {
  background: rgba(250, 249, 245, 0.2);
  border-color: #FAF9F5;
  color: #FAF9F5;
  text-decoration: none;
  transform: translateY(-1px);
}
:where(html.qms-theme) .q-hero-ctas .q-btn-secondary .q-btn-arrow,
:where(html.qms-theme .qms-deep) .qms-btn--ghost .q-btn-arrow {
  color: var(--qms-accent);
  transition: transform 0.2s ease;
}
:where(html.qms-theme) .q-hero-ctas .q-btn-secondary:hover .q-btn-arrow,
:where(html.qms-theme .qms-deep) .qms-btn--ghost:hover .q-btn-arrow {
  transform: translateX(4px);
}

/* Ritmo vertical y espaciado generoso en tarjetas de proceso / pasos (Journey) */
:where(html.qms-theme) .q-step-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
}
:where(html.qms-theme) .q-step-num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--qms-accent);
  margin-bottom: 14px;
}
:where(html.qms-theme) .q-step-title {
  font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--qms-fg);
}
:where(html.qms-theme) .q-step-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0;
  color: var(--qms-fg-2);
}

/* Ritmo vertical y espaciado generoso en tarjetas de Servicios (Ecosistema) */
:where(html.qms-theme) .q-eco-card,
:where(html.qms-theme) .q-eco-card:nth-child(n+4) {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  padding-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  display: flex;
  flex-direction: column;
}
:where(html.qms-theme) .q-eco-card .q-card-body {
  padding: 18px 0 4px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
:where(html.qms-theme) .q-eco-card-top {
  margin-bottom: 18px;
  flex-grow: 1;
}
:where(html.qms-theme) .q-eco-num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--qms-accent);
  margin-bottom: 10px;
  display: inline-block;
}
:where(html.qms-theme) .q-eco-title {
  font-size: clamp(1.5rem, 1.3rem + .5vw, 1.85rem);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--qms-fg);
}
:where(html.qms-theme) .q-eco-role {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--qms-sage-text);
  margin-bottom: 14px;
}
:where(html.qms-theme) .q-eco-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--qms-fg-2);
  margin-bottom: 0;
}
:where(html.qms-theme) .q-eco-card-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--qms-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Espaciado en Pilares de Longevidad */
:where(html.qms-theme) .q-pillar-item {
  display: flex;
  flex-direction: column;
}
:where(html.qms-theme) .q-pillar-title {
  margin-top: 10px;
  margin-bottom: 14px;
  line-height: 1.25;
  color: var(--qms-fg);
}
:where(html.qms-theme) .q-pillar-desc {
  line-height: 1.65;
  color: var(--qms-fg-2);
  margin-bottom: 0;
}

/* Espaciado en Tarjetas de Precios y Estética */
:where(html.qms-theme) .q-price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
:where(html.qms-theme) .q-price-card.featured {
  background: #FFFFFF;
  border-color: var(--qms-hair);
}
:where(html.qms-theme) .q-price-title {
  margin-top: 8px;
  margin-bottom: 10px;
  line-height: 1.25;
}
:where(html.qms-theme) .q-price-tag {
  margin-bottom: 12px;
}
:where(html.qms-theme) .q-price-desc {
  margin-bottom: 20px;
  line-height: 1.65;
}
:where(html.qms-theme) .q-aesthetics-card-title {
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.25;
}
:where(html.qms-theme) .q-aesthetics-card-desc {
  margin-bottom: 14px;
  line-height: 1.65;
}

/* Icono de acordeón FAQ: Centrado geométrico perfecto mediante pseudo-elementos */
:where(html.qms-theme) .q-faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--qms-hair);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease;
}
:where(html.qms-theme) .q-faq-icon::before,
:where(html.qms-theme) .q-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--qms-fg);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}
:where(html.qms-theme) .q-faq-icon::before {
  width: 12px;
  height: 1.5px;
}
:where(html.qms-theme) .q-faq-icon::after {
  width: 1.5px;
  height: 12px;
}
:where(html.qms-theme) .q-faq-trigger:hover .q-faq-icon {
  border-color: var(--qms-accent);
}
:where(html.qms-theme) .q-faq-trigger:hover .q-faq-icon::before,
:where(html.qms-theme) .q-faq-trigger:hover .q-faq-icon::after {
  background-color: var(--qms-accent);
}
:where(html.qms-theme) .q-faq-item.is-open .q-faq-icon {
  transform: rotate(45deg);
  background-color: #113F25;
  border-color: #113F25;
}
:where(html.qms-theme) .q-faq-item.is-open .q-faq-icon::before,
:where(html.qms-theme) .q-faq-item.is-open .q-faq-icon::after {
  background-color: #FAF9F5;
}

/* -------- 14. Movimiento: transiciones solo si no hay preferencia reducida */
@media (prefers-reduced-motion: no-preference) {
  :where(html.qms-theme) :where(.qms-btn:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])), a.qms-link, a.qms-nav-link) { transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
}

/* -------- 15. Forced colors (acotado a .qms-*). Especificidad ≥ a la de
   cada regla que anula, y al final de la hoja: gana por especificidad u orden. */
@media (forced-colors: active) {
  :where(html.qms-theme) .qms-card,
  :where(html.qms-theme) .qms-card--dark,
  :where(html.qms-theme) .qms-btn.qms-btn--gold:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])),
  :where(html.qms-theme) .qms-btn.qms-btn--ghost:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])),
  :where(html.qms-theme) .qms-btn.qms-btn--gold:hover:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])),
  :where(html.qms-theme) .qms-btn.qms-btn--ghost:hover:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])),
  :where(html.qms-theme) .qms-btn:hover:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])),
  :where(html.qms-theme) .qms-btn:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])),
  :where(html.qms-theme) .qms-field.qms-field:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], textarea, select):where(:not(:disabled):not([readonly]):not([aria-invalid="true"]):not(.is-invalid):not(.invalid):not(.error):not(.has-error *):not(.form-group.error *):not(fieldset[aria-invalid] *)) {
    box-shadow: none;
    border: 1px solid CanvasText;
  }
  :where(html.qms-theme) .qms-btn.qms-btn:where(:not(:disabled):not([aria-disabled="true"]):not(.disabled):not(.is-loading):not([aria-busy="true"])):focus-visible,
  :where(html.qms-theme) a.qms-link.qms-link:focus-visible,
  :where(html.qms-theme) a.qms-nav-link.qms-nav-link:focus-visible,
  :where(html.qms-theme) .qms-field.qms-field:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], textarea, select):where(:not(:disabled):not([readonly]):not([aria-invalid="true"]):not(.is-invalid):not(.invalid):not(.error):not(.has-error *):not(.form-group.error *):not(fieldset[aria-invalid] *)):focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 3px;
    border-color: CanvasText;
  }
  /* elevación: solo se retira la sombra (sin border ni outline) */
  :where(html.qms-theme) .qms-elev-2 { box-shadow: none; }
  /* header y fotos: contorno que NO altera la caja (sin border) */
  :where(html.qms-theme) .qms-header,
  :where(html.qms-theme) .qms-photo,
  :where(html.qms-theme) .qms-photo.qms-elev-2 { box-shadow: none; outline: 1px solid CanvasText; outline-offset: -1px; }
}

/* Anchor Scroll Margins for Sticky Header */
:where(html.qms-theme) section[id] {
  scroll-margin-top: 80px;
}
@media (max-width: 767px) {
  :where(html.qms-theme) .q-welcome-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  :where(html.qms-theme) .q-welcome-scroll-btn,
  :where(html.qms-theme) .q-welcome-guide-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  :where(html.qms-theme) section[id] {
    scroll-margin-top: 64px;
  }
}

/* -------- 16. Welcome Cinema (Pantalla 1 Completa) -------- */
:where(html.qms-theme) .q-welcome-cinema {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0C2E1B;
  color: #FAF9F5;
  text-align: center;
  padding: 4rem 1.5rem 6rem;
  box-sizing: border-box;
}

:where(html.qms-theme) .q-welcome-video-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

:where(html.qms-theme) .q-welcome-video-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.95) contrast(1.08);
  transition: opacity 0.5s ease;
}

:where(html.qms-theme) .q-welcome-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 45%, rgba(12, 46, 27, 0.42) 0%, rgba(10, 32, 19, 0.74) 65%, rgba(8, 25, 15, 0.92) 100%),
    linear-gradient(to bottom, rgba(12, 46, 27, 0.35) 0%, transparent 40%, rgba(12, 46, 27, 0.90) 100%);
}

:where(html.qms-theme) .q-welcome-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

:where(html.qms-theme) .q-welcome-emblem {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

:where(html.qms-theme) .q-welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 25, 15, 0.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 190, 134, 0.35);
  color: #D9BE86;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 22px;
}

:where(html.qms-theme) .q-welcome-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  line-height: 1.15;
  max-width: 100%;
  word-wrap: break-word;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 18px 0;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

:where(html.qms-theme) .q-welcome-tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: #E6ECE8;
  max-width: 640px;
  margin: 0 0 34px 0;
  font-weight: 300;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

:where(html.qms-theme) .q-welcome-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(217, 190, 134, 0.95) 0%, rgba(197, 163, 98, 0.95) 100%);
  color: #0C2E1B;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(217, 190, 134, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

:where(html.qms-theme) .q-welcome-scroll-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 28px rgba(217, 190, 134, 0.4);
  color: #0C2E1B;
}

:where(html.qms-theme) .q-welcome-scroll-arrow {
  animation: q-arrow-bounce 2s infinite ease-in-out;
}

@keyframes q-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

:where(html.qms-theme) .q-welcome-scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 249, 245, 0.7);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease;
}

:where(html.qms-theme) .q-welcome-scroll-indicator:hover {
  color: #D9BE86;
}



/* Floating Curator Preview Bar */
:where(html.qms-theme) .q-hero-preview-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(12, 46, 27, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(217, 190, 134, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-radius: 9999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 95vw;
  animation: q-curator-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes q-curator-slide-up {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

:where(html.qms-theme) .q-preview-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

:where(html.qms-theme) .q-preview-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #D9BE86;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 6px;
  padding-right: 4px;
  white-space: nowrap;
}

:where(html.qms-theme) .q-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #52B788;
  box-shadow: 0 0 8px #52B788;
  display: inline-block;
}

:where(html.qms-theme) .q-preview-bar-options {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

:where(html.qms-theme) .q-pbar-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #FAF9F5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
}

:where(html.qms-theme) .q-pbar-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(217, 190, 134, 0.5);
  color: #FFFFFF;
}

:where(html.qms-theme) .q-pbar-btn.is-active {
  background: #D9BE86;
  color: #0C2E1B;
  font-weight: 600;
  border-color: #D9BE86;
  box-shadow: 0 4px 14px rgba(217, 190, 134, 0.35);
}

:where(html.qms-theme) .q-pbar-btn-lead {
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.25) 0%, rgba(217, 190, 134, 0.25) 100%);
  border-color: rgba(217, 190, 134, 0.45);
  color: #FAF9F5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
:where(html.qms-theme) .q-pbar-btn-lead:hover {
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.38) 0%, rgba(217, 190, 134, 0.38) 100%);
  border-color: #D9BE86;
}

/* Modal Editorial de Captura de Guía Médica (Lifeforce Elevated) */
:where(html.qms-theme) .q-lead-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 17, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

:where(html.qms-theme) .q-lead-modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

:where(html.qms-theme) .q-lead-modal-dialog {
  /* Cristal Líquido Nevado Translúcido / Frosted Snow Glassmorphism */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 250, 248, 0.78) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  color: #1A1A1A;
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 42px 36px 34px;
  position: relative;
  box-shadow: 
    0 30px 80px rgba(5, 22, 14, 0.40),
    0 0 0 1px rgba(255, 255, 255, 0.90) inset,
    0 2px 5px rgba(255, 255, 255, 0.95) inset,
    inset 0 0 24px rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(217, 190, 134, 0.55);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

:where(html.qms-theme) .q-lead-modal-backdrop.is-visible .q-lead-modal-dialog {
  transform: scale(1) translateY(0);
}

:where(html.qms-theme) .q-lead-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(12, 46, 27, 0.07);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0C2E1B;
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}

:where(html.qms-theme) .q-lead-modal-close:hover {
  background: rgba(12, 46, 27, 0.14);
  transform: scale(1.08);
}

:where(html.qms-theme) .q-lead-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  color: #0C2E1B;
  text-align: center;
  margin-bottom: 10px;
}

:where(html.qms-theme) .q-lead-modal-lead {
  font-size: 14.5px;
  line-height: 1.5;
  color: #4A5A50;
  text-align: center;
  margin-bottom: 22px;
}

:where(html.qms-theme) .q-lead-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

:where(html.qms-theme) .q-lead-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #2D3A32;
}

:where(html.qms-theme) .q-lead-benefit-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(82, 183, 136, 0.2);
  color: #113F25;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
  font-weight: bold;
}

:where(html.qms-theme) .q-lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

:where(html.qms-theme) .q-lead-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(15, 41, 30, 0.18);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1A1A1A;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

:where(html.qms-theme) .q-lead-input:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: #0C2E1B;
  box-shadow: 0 0 0 3px rgba(12, 46, 27, 0.12);
}

:where(html.qms-theme) .q-lead-submit {
  height: 50px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #D9BE86 0%, #C9A96E 100%);
  color: #0C2E1B;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 190, 134, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

:where(html.qms-theme) .q-lead-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(217, 190, 134, 0.5);
  transform: translateY(-1px);
}

:where(html.qms-theme) .q-lead-disclaimer {
  font-size: 12px;
  color: #617369;
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

:where(html.qms-theme) .q-lead-consent-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 14px;
  text-align: left;
}

:where(html.qms-theme) .q-lead-consent-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #2F3E35 !important;
  cursor: pointer !important;
  background: rgba(255, 255, 255, 0.68) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(217, 190, 134, 0.38) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

:where(html.qms-theme) .q-lead-consent-label:hover {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(217, 190, 134, 0.7) !important;
  box-shadow: 0 2px 8px rgba(15, 41, 30, 0.06);
}

:where(html.qms-theme) .q-lead-consent-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
  accent-color: #0C2E1B !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

:where(html.qms-theme) .q-lead-success-view {
  text-align: center;
  padding: 10px 4px;
}

:where(html.qms-theme) .q-lead-success-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(82, 183, 136, 0.22);
  color: #0C2E1B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 26px;
  border: 2px solid #52B788;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(82, 183, 136, 0.20);
}

:where(html.qms-theme) .q-lead-success-title {
  font-family: var(--qms-font-display, inherit);
  font-size: 24px;
  color: #0C2E1B;
  margin-bottom: 8px;
  font-weight: 600;
}

:where(html.qms-theme) .q-lead-success-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #3F5247;
  margin-bottom: 22px;
}

:where(html.qms-theme) .q-lead-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Responsive adjustments for Welcome Cinema and Mobile Header */
:where(html.qms-theme) .q-welcome-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

:where(html.qms-theme) .q-welcome-title {
  box-sizing: border-box;
  width: 100%;
}

:where(html.qms-theme) .q-welcome-tagline {
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 767px) {
  :where(html.qms-theme) .q-orbit {
    display: none;
  }
  :where(html.qms-theme) .q-welcome-cinema {
    padding: 2.25rem 1rem 4.5rem;
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
  }
  :where(html.qms-theme) .q-welcome-content {
    width: 100%;
    max-width: 100%;
    padding-inline: 6px;
  }
  :where(html.qms-theme) .q-welcome-title {
    font-size: clamp(1.45rem, 6.6vw, 2.1rem);
    margin-bottom: 12px;
    text-wrap: balance;
  }
  :where(html.qms-theme) .q-welcome-eyebrow {
    font-size: 10.5px;
    padding: 5px 12px;
    margin-bottom: 14px;
    letter-spacing: 0.06em;
  }
  :where(html.qms-theme) .q-welcome-tagline {
    font-size: 0.90rem;
    line-height: 1.5;
    margin-bottom: 22px;
    padding-inline: 4px;
    text-wrap: balance;
  }
  :where(html.qms-theme) .q-welcome-scroll-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  :where(html.qms-theme) .q-phone-link {
    padding: 8px 10px;
  }
  :where(html.qms-theme) .q-phone-number {
    display: none;
  }
}

:where(html.qms-theme) .q-lead-trigger-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 190, 134, 0.12);
  border: 1px solid rgba(217, 190, 134, 0.35);
  color: #D9BE86;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-decoration: none;
}
:where(html.qms-theme) .q-lead-trigger-pill:hover {
  background: rgba(217, 190, 134, 0.22);
  border-color: #D9BE86;
  color: #FAF9F5;
  transform: translateY(-1px);
}

:where(html.qms-theme) .q-welcome-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

:where(html.qms-theme) .q-welcome-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 9999px;
  background: rgba(250, 249, 245, 0.12);
  border: 1px solid rgba(217, 190, 134, 0.45);
  color: #FAF9F5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  font-family: inherit;
  text-decoration: none;
}

:where(html.qms-theme) .q-welcome-guide-btn:hover {
  background: rgba(217, 190, 134, 0.25);
  border-color: #D9BE86;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

:where(html.qms-theme) .q-welcome-guide-btn svg {
  color: #D9BE86;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

:where(html.qms-theme) .q-welcome-guide-btn:hover svg {
  transform: translateY(2px);
}

/* Selector Interactivo de Idioma de la Guía Médica (PDF) */
:where(html.qms-theme) .q-lead-lang-picker {
  margin: 10px 0 14px;
  text-align: left;
}

:where(html.qms-theme) .q-lead-lang-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

:where(html.qms-theme) .q-lead-lang-title {
  font-size: 13px;
  font-weight: 600;
  color: #0F291E;
}

:where(html.qms-theme) .q-lead-lang-hint {
  font-size: 11.5px;
  color: #5A6D63;
}

:where(html.qms-theme) .q-lead-lang-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

:where(html.qms-theme) .q-lead-pdf-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 41, 30, 0.16);
  color: #384A40;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:where(html.qms-theme) .q-lead-pdf-lang-btn:hover {
  background: rgba(255, 255, 255, 0.90);
  border-color: #0F291E;
}

:where(html.qms-theme) .q-lead-pdf-lang-btn.active {
  background: #0F291E;
  color: #D9BE86;
  border-color: #D9BE86;
  box-shadow: 0 3px 10px rgba(15, 41, 30, 0.25);
}

:where(html.qms-theme) .q-lead-pdf-lang-btn .q-pdf-lang-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

/* Enlace legal del pie de página destacado estilo píldora de alto contraste */
:where(html.qms-theme) .q-footer-legal-links a,
:where(html.qms-theme) .q-legal-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  background: rgba(217, 190, 134, 0.18) !important;
  border: 1.5px solid #D9BE86 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

:where(html.qms-theme) .q-footer-legal-links a:hover,
:where(html.qms-theme) .q-legal-pill:hover {
  background: #D9BE86 !important;
  color: #0F1E16 !important;
  border-color: #D9BE86 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(217, 190, 134, 0.45) !important;
}

:where(html.qms-theme) .q-footer-legal-links span[aria-hidden="true"] {
  display: none !important;
}

/* --- Revision 2026-09-16 --- */

/* R1-01: centrado cuando cabe; alineado arriba y desplazable cuando no. */
:where(html.qms-theme) .q-lead-modal-dialog { margin: auto; }
@media (max-width: 560px) {
  :where(html.qms-theme) .q-lead-modal-backdrop { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  :where(html.qms-theme) .q-lead-modal-dialog { padding: 40px 20px 24px; border-radius: 18px; }
}

/* R1-10: el anillo de foco sigue a la superficie del tema. */
:where(html.qms-theme) :is(.qms-light, .qms-light-2, .qms-card) { --q-focus-ring: #113F25; }
:where(html.qms-theme) :is(.qms-deep, .qms-card--dark) { --q-focus-ring: #D9BE86; }

/* R1-11: hueco para la barra fija movil al final de la pagina. */
@media (max-width: 767px) {
  :where(html.qms-theme) .q-footer.qms-section { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
