/* ==========================================================================
   CLÍNICA GOTTARDO · El Vendrell · v3
   Hero rediseñado · Equipo nuevo · Timeline progresivo · Reseñas multi-fila
   ========================================================================== */

/* ---------- @FONT-FACE (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/cormorant-regular.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;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/cormorant-italic.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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('/fonts/manrope.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;
}

/* ---------- 0. RESET & TOKENS ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--teal); }

:root {
  --quartz: #F4EFE5;
  --quartz-pure: #FBF8F1;
  --quartz-soft: #EDE6D8;
  --teal: #142A2D;
  --teal-deep: #0B1719;
  --teal-mid: #1D3A3E;
  --gold: #C5A572;
  --gold-bright: #D9BD8A;
  --gold-soft: rgba(197, 165, 114, 0.18);
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --line: rgba(20, 42, 45, 0.12);
  --line-light: rgba(244, 239, 229, 0.18);

  --ff-display: 'Cormorant Garamond', serif;
  --ff-body: 'Manrope', system-ui, sans-serif;

  --container: 1280px;
  --gap-section: clamp(96px, 12vw, 180px);
  --gap-md: clamp(24px, 3vw, 48px);

  --ease: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emph: cubic-bezier(0.83, 0, 0.17, 1);
}

html, body { background: var(--quartz); color: var(--teal); }
body {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* ---------- AMBIENT BG ---------- */
.ambient {
  position: fixed; inset: -10vh -10vw;
  z-index: -1; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 30%, var(--ambient-color, rgba(197,165,114,0.05)), transparent 70%);
  transition: background 1.4s var(--ease-out);
  opacity: 0.7;
}

/* ---------- BODY SPOTLIGHT ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(197, 165, 114, 0.06), transparent 38%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s;
}
body.has-spotlight::before { opacity: 1; }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200;
  background: rgba(20, 42, 45, 0.06);
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 14px var(--gold-soft);
  transition: width 0.08s linear;
}

/* ---------- 1. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.18);
  animation: dotPulse 2.4s var(--ease) infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(197,165,114,.18); }
  50% { box-shadow: 0 0 0 8px rgba(197,165,114,.06); }
}
.eyebrow--light { color: var(--quartz); }
.eyebrow--gold { color: var(--gold); }

.h-display {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--teal);
}
.h-display em {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  position: relative;
  display: inline-block;
}
.h-display em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.04em;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-emph) 0.35s;
}
.section-head.is-visible .h-display em::after,
.philosophy__content.is-visible .h-display em::after,
.contact__info.is-visible .h-display em::after,
.why__header.is-visible .h-display em::after,
.faq__intro.is-visible .h-display em::after { transform: scaleX(1); }
.h-display--light { color: var(--quartz); }
.h-display--light em { color: var(--gold-bright); }

.section-head { max-width: 760px; margin-bottom: clamp(56px, 7vw, 100px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__lead {
  margin-top: 24px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.7;
}
.section-head--center .section-head__lead { margin-left: auto; margin-right: auto; }

/* ---------- 2. BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 26px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.6s var(--ease-out), background 0.4s, color 0.4s, box-shadow 0.4s;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}
.btn span { position: relative; z-index: 1; transition: opacity 0.3s; }
.btn svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease-out); position: relative; z-index: 1; }
.btn:hover svg { transform: translateX(4px); }
.btn--lg { padding: 18px 32px; font-size: 13px; }
.btn--full { width: 100%; }
/* Tolerancia en pantallas estrechas: si el texto no cabe, reducir letter-spacing antes de cortar */
@media (max-width: 480px) {
  .btn { letter-spacing: 0.12em; padding: 12px 18px; gap: 8px; }
  .btn--lg { padding: 16px 22px; font-size: 12px; letter-spacing: 0.10em; }
  .btn--full { padding-inline: 14px; }
}

.btn--gold {
  background: var(--gold);
  color: var(--teal);
  box-shadow: 0 8px 24px -10px rgba(197, 165, 114, 0.6);
}
.btn--gold::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--gold-bright);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-emph);
}
.btn--gold:hover::before { transform: translateY(0); }
.btn--gold:hover { box-shadow: 0 12px 32px -10px rgba(197, 165, 114, 0.7); }

.btn--gold.is-loading span,
.btn--gold.is-loading svg { opacity: 0; }
.btn--gold.is-loading::after {
  content: ""; position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--teal);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.btn--gold.is-success { background: var(--teal-mid); color: var(--gold); pointer-events: none; }
.btn--gold.is-success span,
.btn--gold.is-success svg { opacity: 0; }
.btn--gold.is-success::after {
  content: "";
  position: absolute;
  width: 22px; height: 12px;
  border: solid var(--gold);
  border-width: 0 0 2px 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -65%) rotate(-45deg) scale(0);
  animation: checkPop 0.6s var(--ease-out) forwards 0.1s;
}
@keyframes checkPop {
  0% { transform: translate(-50%, -65%) rotate(-45deg) scale(0); }
  60% { transform: translate(-50%, -65%) rotate(-45deg) scale(1.15); }
  100% { transform: translate(-50%, -65%) rotate(-45deg) scale(1); }
}

.btn--ghost { border: 1px solid var(--quartz); color: var(--quartz); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--quartz);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-emph);
}
.btn--ghost:hover { color: var(--teal); border-color: var(--quartz); }
.btn--ghost:hover::before { transform: translateY(0); }

.btn--dark { background: var(--teal); color: var(--quartz); }
.btn--dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--teal-deep);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-emph);
}
.btn--dark:hover::before { transform: translateY(0); }

/* ---------- 3. PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--teal);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader.is-done .preloader__inner {
  opacity: 0; transform: translateY(-12px);
  transition: 0.5s var(--ease-out);
}
.preloader__inner {
  text-align: center; color: var(--gold);
  position: relative; z-index: 2;
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.preloader__monogram { width: 90px; height: 90px; margin: 0 auto 24px; }
.preloader__circle { animation: spin 8s linear infinite; transform-origin: center; }
.preloader__path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawPath 1.6s var(--ease-out) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drawPath { to { stroke-dashoffset: 0; } }

.preloader__name {
  font-family: var(--ff-display);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--quartz);
}
.preloader__name em:first-child { font-size: 12px; letter-spacing: 0.32em; color: var(--gold); display: block; margin-bottom: 6px; font-style: normal; }
.preloader__name em:last-child { font-style: italic; }
.preloader__sub { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(244,239,229,.45); margin: 24px 0 16px; }
.preloader__count { font-family: var(--ff-display); font-style: italic; font-size: 16px; color: var(--gold); letter-spacing: 0.08em; }
.preloader__count i { font-style: normal; opacity: 0.5; margin-left: 2px; }

.preloader__wipe {
  position: fixed; inset: 0; z-index: 1;
  background: var(--quartz);
  transform: translateY(100%);
  pointer-events: none;
}
.preloader.is-wiping .preloader__wipe { animation: wipeReveal 1.1s var(--ease-emph) forwards; }
@keyframes wipeReveal { 0% { transform: translateY(100%); } 45% { transform: translateY(0); } 100% { transform: translateY(-100%); } }

/* ---------- 4. CUSTOM CURSOR ---------- */
.cursor, .cursor-ring {
  position: fixed; pointer-events: none; z-index: 9998;
  top: 0; left: 0;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor {
  width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  margin: -3px 0 0 -3px;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin: -19px 0 0 -19px;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), background 0.4s, opacity 0.3s;
  opacity: 0.55;
  display: grid; place-items: center;
  overflow: hidden;
}
.cursor-ring__label { font-family: var(--ff-display); font-style: italic; font-size: 13px; color: var(--gold); opacity: 0; transition: opacity 0.35s; }
.cursor-ring.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; opacity: 0.95; }
.cursor-ring.is-card { width: 90px; height: 90px; margin: -45px 0 0 -45px; background: rgba(197, 165, 114, 0.12); backdrop-filter: blur(2px); opacity: 1; }
.cursor-ring.is-card .cursor-ring__label { opacity: 1; }
.cursor.is-hover { transform: translate(0,0) scale(1.4); }

@media (max-width: 1024px), (hover: none) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- 5. NAVIGATION ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transform: translateY(0);
  transition: transform 0.5s var(--ease-out), background 0.5s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.5s;
}
.nav.is-scrolled {
  padding: 14px 0;
  background: rgba(20, 42, 45, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled .nav__link, .nav.is-scrolled .nav__logo { color: var(--quartz); }
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; color: var(--quartz); transition: color 0.5s; }
.nav__logo-mark { width: 24px; height: 30px; color: var(--gold); display: grid; place-items: center; }
.nav__logo-mark svg { width: 100%; height: 100%; }
.nav__logo-text { display: flex; flex-direction: column; font-family: var(--ff-display); font-style: italic; font-size: 16px; line-height: 1; }
.nav__logo-text em { font-style: italic; }
.nav__logo-text em:first-child { font-size: 11px; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 2px; }
.nav__menu { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav__link { position: relative; font-size: 13px; font-weight: 400; letter-spacing: 0.06em; color: var(--quartz); padding: 6px 2px; transition: color 0.3s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover, .nav__link.is-active { color: var(--gold); }
.nav__cta { padding: 10px 20px; font-size: 11px; }

.nav__toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; align-items: flex-end; }
.nav__toggle span { display: block; height: 1px; background: var(--quartz); transition: all 0.4s var(--ease-out); }
.nav__toggle span:nth-child(1) { width: 22px; }
.nav__toggle span:nth-child(2) { width: 16px; }
.nav__toggle span:nth-child(3) { width: 22px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 22px; }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 22px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--teal);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 48px;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-emph), visibility 0.9s;
  opacity: 1;
}
.mobile-menu.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.mobile-menu__nav a {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(28px, 7vw, 48px);
  color: var(--quartz);
  transition: color 0.3s, opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  opacity: 0; transform: translateY(20px);
}
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.38s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.46s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.54s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: 0.62s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(6) { transition-delay: 0.70s; }
.mobile-menu__nav a:hover { color: var(--gold); }
.mobile-menu__cta {
  margin-top: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out) 0.85s, transform 0.6s var(--ease-out) 0.85s;
}
.mobile-menu.is-open .mobile-menu__cta { opacity: 1; transform: none; }
.mobile-menu__foot { position: absolute; bottom: 32px; display: flex; flex-direction: column; gap: 8px; text-align: center; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 239, 229, 0.6); }
.mobile-menu__foot a { color: var(--gold); text-transform: none; letter-spacing: 0.04em; font-size: 14px; }

/* ============== MOBILE STICKY BOTTOM BAR (≤768px) ============== */
.mobile-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  align-items: stretch;
  gap: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 42, 45, 0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid rgba(197, 165, 114, 0.22);
  transform: translateY(0);
  transition: transform 0.5s var(--ease-out);
}
.mobile-bar.is-hidden { transform: translateY(100%); }
.mobile-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.mobile-bar__btn--primary {
  background: var(--gold);
  color: var(--teal);
  flex: 1.4;
}
.mobile-bar__btn--primary:active { transform: scale(0.97); }
.mobile-bar__btn--ghost {
  background: transparent;
  color: var(--quartz);
  border: 1px solid rgba(244, 239, 229, 0.18);
}
.mobile-bar__btn--ghost svg { stroke: var(--gold); }
.mobile-bar__btn:not(:last-child) { margin-right: 10px; }

@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  /* leave room for the bar so content isn't covered */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* lift WhatsApp FAB above the bar */
  .whatsapp-fab { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
}

/* ============== 6. HERO REDISEÑADO (editorial split) ============== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 0 40px;
  overflow: hidden;
  color: var(--quartz);
  background: var(--teal-deep);
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.hero__bg-deep {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 80% at 80% 50%, rgba(197, 165, 114, 0.10), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(20, 42, 45, 0.7), transparent 60%),
    linear-gradient(180deg, var(--teal-deep) 0%, var(--teal) 50%, var(--teal-deep) 100%);
}
.hero__bg-orb {
  position: absolute;
  top: 30%; right: -10%;
  width: 50vw; max-width: 700px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(197, 165, 114, 0.15), transparent 60%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
  animation: heroOrb 12s ease-in-out infinite alternate;
}
@keyframes heroOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, -2%) scale(1.05); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: overlay;
}

.hero__chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px) 0;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.5);
  margin-top: 12px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.hero__chrome-sep { flex: 0 0 24px; height: 1px; background: rgba(244, 239, 229, 0.2); }

.hero__container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  flex: 1;
}

.hero__lede { display: flex; flex-direction: column; }
.hero__categories {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.7);
  margin-bottom: 32px;
}
.hero__cat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.18);
  animation: dotPulse 2.4s var(--ease) infinite;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.018em;
  color: var(--quartz);
  margin-bottom: 48px;
}
.hero__title em { font-style: italic; color: var(--gold); display: inline-block; }
.hero__title em[data-warp] span { display: inline-block; transition: transform 0.8s var(--ease-out); will-change: transform; }
.reveal-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-word > span { display: inline-block; transform: translateY(105%); animation: wordRise 0.95s var(--ease-out) forwards; }
.reveal-word:nth-child(1) > span { animation-delay: 0.6s; }
.reveal-word:nth-child(2) > span { animation-delay: 0.72s; }
.reveal-word:nth-child(4) > span { animation-delay: 0.84s; }
.reveal-word:nth-child(6) > span { animation-delay: 0.96s; }
.reveal-word:nth-child(7) > span { animation-delay: 1.08s; }
.reveal-word:nth-child(9) > span { animation-delay: 1.20s; }
@keyframes wordRise { to { transform: translateY(0); } }

.hero__copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px clamp(24px, 4vw, 48px);
  align-items: end;
}
.hero__lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: rgba(244, 239, 229, 0.78);
  max-width: 460px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) forwards 1.4s;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) forwards 1.6s;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) forwards 1s;
}
.hero__portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(1.05);
  transition: transform 1.6s var(--ease-out);
}
.hero__portrait:hover img { transform: scale(1.05); }
.hero__portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 23, 25, 0.55) 100%);
  pointer-events: none;
}
.hero__portrait-label {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex; align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.8);
  z-index: 2;
}
.hero__portrait-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0;
  color: var(--gold);
  text-transform: none;
}

.hero__quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  background: rgba(244, 239, 229, 0.03);
  border: 1px solid rgba(244, 239, 229, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(8px);
}
.hero__quote svg { width: 22px; height: 22px; color: var(--gold); opacity: 0.7; }
.hero__quote blockquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--quartz);
}
.hero__quote figcaption {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.55);
}
.hero__quote figcaption em { color: var(--gold); font-style: italic; text-transform: none; letter-spacing: 0; font-family: var(--ff-display); font-size: 13px; margin-right: 4px; }

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 32px clamp(24px, 5vw, 64px) 0;
  margin-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid rgba(244, 239, 229, 0.12);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) forwards 1.8s;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; gap: 4px; }
.hero__stat-num {
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  color: var(--gold);
}
.hero__stat-num i { font-style: normal; opacity: 0.6; margin-left: 2px; font-size: 0.8em; }
.hero__stat-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.55);
}
.hero__stat-sep { width: 1px; height: 32px; background: rgba(244, 239, 229, 0.15); }

.hero__scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.65);
  padding: 12px 18px;
  border: 1px solid rgba(244, 239, 229, 0.15);
  border-radius: 999px;
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.hero__scroll-link svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease-out); }
.hero__scroll-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(197, 165, 114, 0.08);
}
.hero__scroll-link:hover svg { transform: translateY(3px); }

/* ============== 7. MARQUEE (estable, sin scroll-velocity) ============== */
.marquee {
  background: var(--teal);
  color: var(--quartz);
  padding: 28px 0;
  overflow: hidden;
  border-block: 1px solid rgba(244, 239, 229, 0.08);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center; gap: clamp(32px, 4vw, 64px);
  padding-right: clamp(32px, 4vw, 64px);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  white-space: nowrap;
}
.marquee__group span:not(.marquee__sep) { transition: color 0.3s; }
.marquee__group span:not(.marquee__sep):hover { color: var(--gold); }
.marquee__sep { color: var(--gold); font-style: normal; font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============== 8. PHILOSOPHY (lado derecho enriquecido) ============== */
.philosophy { padding: var(--gap-section) 0; background: var(--quartz); }
.philosophy__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.philosophy__lead {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--teal);
  margin-top: 32px;
  font-weight: 400;
}
/* Drop cap editorial · primer carácter como ornamento */
.philosophy__lead::first-letter {
  font-style: italic;
  font-size: 2.4em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em -0.05em 0;
  color: var(--gold);
}
.philosophy__text {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 480px;
}
.value-list { margin-top: 56px; display: flex; flex-direction: column; gap: 0; }
.value-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  transition: padding 0.4s var(--ease-out);
  position: relative;
}
.value-list li:last-child { border-bottom: 1px solid var(--line); }
.value-list li::after { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.6s var(--ease-out); }
.value-list li:hover { padding-left: 12px; }
.value-list li:hover::after { width: 40px; }
.value-list__num { font-family: var(--ff-display); font-style: italic; font-size: 22px; color: var(--gold); transition: transform 0.5s var(--ease-out); }
.value-list li:hover .value-list__num { transform: translateX(-6px) scale(1.15); }
.value-list h3 { font-family: var(--ff-display); font-size: 22px; font-weight: 500; color: var(--teal); margin-bottom: 6px; }
.value-list p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Visual enriquecido: 3 imágenes + quote + badge */
.philosophy__visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto auto;
  gap: 14px;
  min-height: 700px;
}
.philosophy__img {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(20, 42, 45, 0.35);
  clip-path: inset(100% 0 0 0);
  opacity: 0;
  transition: clip-path 1.2s var(--ease-emph), opacity 0.8s, transform 0.9s var(--ease-out);
}
.philosophy__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.philosophy__img:hover img { transform: scale(1.06); }
.philosophy__visual.is-visible .philosophy__img { clip-path: inset(0 0 0 0); opacity: 1; }
.philosophy__visual.is-visible .philosophy__img--accent { transition-delay: 0.18s; }
.philosophy__visual.is-visible .philosophy__img--small { transition-delay: 0.32s; }
.philosophy__visual.is-visible .philosophy__quote { transition-delay: 0.46s; }

.philosophy__img--main {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  aspect-ratio: 4/5;
}
.philosophy__img--accent {
  grid-column: 4 / 7;
  grid-row: 2 / 4;
  aspect-ratio: 3/4;
  border: 8px solid var(--quartz);
  align-self: end;
}
.philosophy__img--small {
  grid-column: 1 / 4;
  grid-row: 3 / 4;
  aspect-ratio: 4/3;
}
.philosophy__img-caption {
  position: absolute;
  bottom: 14px; left: 14px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.85);
  background: rgba(20, 42, 45, 0.6);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.philosophy__quote {
  grid-column: 4 / 7;
  grid-row: 1 / 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--teal);
  color: var(--quartz);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s, transform 1s var(--ease-out);
}
.philosophy__visual.is-visible .philosophy__quote { opacity: 1; transform: translateY(0); }
.philosophy__quote svg { width: 24px; height: 24px; color: var(--gold); }
.philosophy__quote p {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
}

.philosophy__badge {
  position: absolute;
  top: -28px; right: -16px;
  width: 110px; height: 110px;
  color: var(--gold);
  animation: spin 60s linear infinite;
  animation-play-state: paused; /* enabled only while in viewport (JS) */
  opacity: 0.6;
  z-index: 3;
  transition: filter 0.5s, opacity 0.5s;
}
.philosophy__badge.is-spinning { animation-play-state: running; opacity: 1; }
.philosophy__badge:hover { animation-duration: 12s; filter: drop-shadow(0 0 18px rgba(197,165,114,.45)); }

/* ============== 9. STATS BAND ============== */
/* ============== CREDENTIALS BAND · insignias editoriales ============== */
.credentials-band {
  background: var(--teal);
  padding: clamp(48px, 6vw, 80px) 0;
  color: var(--quartz);
  position: relative;
  overflow: hidden;
}
.credentials-band::before {
  content: "";
  position: absolute;
  top: 50%; left: -10%;
  width: 45%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.6;
}
@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateY(-50%) scale(1.04); }
}

.credentials-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.credentials-band__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: clamp(18px, 1.6vw, 22px);
  border-left: 1px solid rgba(244, 239, 229, 0.16);
  position: relative;
  transition: transform 0.5s var(--ease-out);
}
.credentials-band__item::before {
  content: "";
  position: absolute;
  left: -1px; top: 0;
  width: 1px; height: 36%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1s var(--ease-emph) calc(var(--idx, 0) * 0.12s);
}
.credentials-band.is-visible .credentials-band__item::before { transform: scaleY(1); }
.credentials-band__item:hover { transform: translateX(4px); }

.credentials-band__eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.credentials-band__value {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--quartz);
}
.credentials-band__value em {
  font-style: italic;
  color: var(--gold-bright);
}

/* ============== 10. TREATMENTS (hover suave, sin tilt 3D) ============== */
.treatments { padding: var(--gap-section) 0; background: var(--quartz); }
.treatment-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.t-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--quartz-pure);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out), border-color 0.8s;
  will-change: transform;
}
.t-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -22px rgba(20, 42, 45, 0.18);
  border-color: rgba(197, 165, 114, 0.3);
}
.t-card__media { position: relative; aspect-ratio: 1; overflow: hidden; }
.t-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
  will-change: transform;
}
.t-card:hover .t-card__media img { transform: scale(1.04); }
.t-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(20, 42, 45, 0.35)); }

.t-card__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.t-card__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  align-self: flex-start;
  transition: letter-spacing 0.6s var(--ease-out);
}
.t-card:hover .t-card__num { letter-spacing: 0.3em; }
.t-card__title { font-family: var(--ff-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.15; color: var(--teal); margin-bottom: 12px; }
.t-card__desc { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 20px; }
.t-card__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 28px;
  flex: 1;
}
.t-card__list li { position: relative; font-size: 13px; color: var(--teal); padding-left: 16px; letter-spacing: 0.02em; }
.t-card__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--gold); transition: width 0.5s var(--ease-out); }
.t-card:hover .t-card__list li::before { width: 12px; }
.t-card__list li:last-child { color: var(--gold); font-style: italic; font-family: var(--ff-display); font-size: 14px; }
.t-card__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  align-self: flex-start;
  transition: gap 0.4s var(--ease-out), color 0.3s;
}
.t-card__link svg { width: 12px; height: 12px; transition: transform 0.4s var(--ease-out); }
.t-card__link:hover { gap: 16px; color: var(--gold); }
.t-card__link:hover svg { transform: translateX(4px); }

/* ============== 11. WHY US (header centrado, items en row) ============== */
.why { position: relative; padding: var(--gap-section) 0; background: var(--teal); color: var(--quartz); overflow: hidden; }
.why__bg-decor {
  position: absolute;
  bottom: -10%; right: -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 60%);
  pointer-events: none;
}
.why__bg-decor::before { content: ""; position: absolute; inset: 30% 30% auto auto; width: 200px; height: 200px; border: 1px solid rgba(197, 165, 114, 0.25); border-radius: 50%; animation: spin 38s linear infinite; transform-origin: center; }
.why__bg-decor::after { content: ""; position: absolute; inset: 20% 20% auto auto; width: 320px; height: 320px; border: 1px solid rgba(197, 165, 114, 0.12); border-radius: 50%; animation: spin 60s linear infinite reverse; transform-origin: center; }
.why__container { position: relative; z-index: 2; }
.why__header { margin-bottom: clamp(48px, 6vw, 80px); }
.why__lead { color: rgba(244, 239, 229, 0.72) !important; }
.why__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.why-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  border: 1px solid rgba(244, 239, 229, 0.12);
  border-radius: 8px;
  background: rgba(244, 239, 229, 0.02);
  transition: background 0.5s, border-color 0.5s, transform 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.why-item:hover {
  background: rgba(197, 165, 114, 0.06);
  border-color: rgba(197, 165, 114, 0.4);
  transform: translateY(-4px);
}
.why-item__order-text {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 38px;
  color: var(--gold);
  opacity: 0.18;
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.why-item:hover .why-item__order-text { opacity: 0.5; transform: translateY(-2px); }
.why-item__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.8s var(--ease-out), background 0.5s;
}
.why-item:hover .why-item__icon { transform: rotate(8deg) scale(1.06); background: rgba(197, 165, 114, 0.12); }
.why-item:nth-child(1) .why-item__icon { animation: floatIcon 4.8s ease-in-out infinite; }
.why-item:nth-child(2) .why-item__icon { animation: floatIcon 5.4s ease-in-out infinite 0.4s; }
.why-item:nth-child(3) .why-item__icon { animation: floatIcon 5.0s ease-in-out infinite 0.8s; }
.why-item:nth-child(4) .why-item__icon { animation: floatIcon 5.6s ease-in-out infinite 1.2s; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.why-item__icon svg { width: 22px; height: 22px; }
.why-item h3 { font-family: var(--ff-display); font-size: 22px; font-weight: 500; color: var(--quartz); margin-bottom: 6px; }
.why-item p { font-size: 14px; line-height: 1.65; color: rgba(244, 239, 229, 0.7); }

/* ============== 12. EQUIPO (rediseñado: ficha grande + grid abajo) ============== */
.team { padding: var(--gap-section) 0; background: var(--quartz); }

.doctor-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
  background: var(--quartz-pure);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 80px);
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.doctor-hero:hover { transform: translateY(-4px); }
.doctor-hero__media { position: relative; overflow: hidden; min-height: 480px; }
.doctor-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform 1.4s var(--ease-out), filter 0.8s;
}
.doctor-hero:hover .doctor-hero__media img { filter: grayscale(0); transform: scale(1.04); }
.doctor-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 42, 45, 0.4));
}
.doctor-hero__media-tag {
  position: absolute;
  bottom: 20px; left: 20px;
  display: inline-flex;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(20, 42, 45, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 165, 114, 0.3);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--quartz);
  z-index: 2;
}
.doctor-hero__media-tag span:last-child { color: rgba(244, 239, 229, 0.5); }

.doctor-hero__info {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.doctor-hero__role {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.doctor-hero__name {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  color: var(--teal);
  margin-bottom: 24px;
}
.doctor-hero__name em {
  font-style: italic;
  color: var(--gold);
  font-size: 0.5em;
  vertical-align: middle;
  margin-right: 12px;
  letter-spacing: 0.04em;
}
.doctor-hero__bio { font-size: 15px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 24px; }
.doctor-hero__creds { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.doctor-hero__creds li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  font-size: 13px;
  color: var(--teal);
  line-height: 1.5;
  align-items: baseline;
}
.doctor-hero__creds li span { color: var(--gold); font-weight: 500; }
.doctor-hero__cta { align-self: flex-start; }

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.doctor-card {
  background: var(--quartz-pure);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.7s var(--ease-out), border-color 0.5s, box-shadow 0.6s;
  will-change: transform;
}
.doctor-card:hover {
  border-color: rgba(197, 165, 114, 0.4);
  box-shadow: 0 24px 48px -24px rgba(20, 42, 45, 0.2);
}
.doctor-card__media { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.doctor-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: transform 1.2s var(--ease-out), filter 0.8s;
}
.doctor-card:hover .doctor-card__media img { filter: grayscale(0); transform: scale(1.05); }
.doctor-card__info { padding: 24px 28px; }
.doctor-card__role { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.doctor-card h4 { font-family: var(--ff-display); font-size: 22px; font-weight: 500; color: var(--teal); line-height: 1.2; margin-bottom: 8px; }
.doctor-card p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

/* ============== 13. PROCESO (timeline vertical progresivo) ============== */
.process { padding: var(--gap-section) 0; background: var(--teal); color: var(--quartz); position: relative; overflow: hidden; }
.process::before {
  content: "";
  position: absolute;
  top: 30%; left: -8%;
  width: 35%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: clamp(32px, 5vw, 80px);
}
.timeline__rail {
  position: absolute;
  top: 12px; left: 16px;
  width: 1px;
  height: calc(100% - 40px);
  background: rgba(244, 239, 229, 0.12);
}
.timeline__rail-fill {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px rgba(197, 165, 114, 0.5);
  transition: height 0.1s linear;
}
.timeline__step {
  position: relative;
  padding-bottom: clamp(56px, 8vw, 96px);
  opacity: 0.35;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transform: translateX(20px);
}
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step.is-active { opacity: 1; transform: translateX(0); }
.timeline__dot {
  position: absolute;
  left: -24px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 1px solid rgba(244, 239, 229, 0.25);
  transition: border-color 0.5s, background 0.5s, transform 0.6s var(--ease-out), box-shadow 0.5s;
}
.timeline__step.is-active .timeline__dot {
  border-color: var(--gold);
  background: var(--gold);
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(197, 165, 114, 0.15), 0 0 20px var(--gold);
}
.timeline__content { display: flex; flex-direction: column; gap: 12px; }
.timeline__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.timeline__title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 500;
  color: var(--quartz);
  line-height: 1.15;
}
.timeline__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 239, 229, 0.72);
  max-width: 540px;
}

/* ============== 14. RESEÑAS (3 filas, scroll alternado, estilos variados) ============== */
.reviews { padding: var(--gap-section) 0; background: var(--quartz); overflow: hidden; }
.reviews__rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.reviews__row { overflow: hidden; mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.reviews__track {
  display: flex;
  width: max-content;
  gap: 20px;
  align-items: stretch;
}
.reviews__row--right .reviews__track { animation: reviewsScrollRight 80s linear infinite; }
.reviews__row--left .reviews__track { animation: reviewsScrollLeft 95s linear infinite; }
.reviews__row:hover .reviews__track { animation-play-state: paused; }
@keyframes reviewsScrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@keyframes reviewsScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Card base */
.r-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px;
  width: clamp(280px, 26vw, 360px);
  font-size: 14px;
  line-height: 1.55;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.r-card:hover { transform: translateY(-4px) rotate(0deg) !important; box-shadow: 0 24px 48px -22px rgba(20, 42, 45, 0.2); }
.r-card__stars { font-size: 14px; letter-spacing: 0.2em; color: var(--gold); }
.r-card p { font-family: var(--ff-display); font-size: 16px; line-height: 1.5; flex: 1; }
.r-card footer { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid currentColor; opacity: 0.95; }
.r-card footer { border-top-color: rgba(20, 42, 45, 0.12); }
.r-card footer strong { font-family: var(--ff-body); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.r-card footer span { font-size: 11px; opacity: 0.7; letter-spacing: 0.04em; }

/* 6 estilos visuales · sutiles (rotación ≤ 0.4° per Aesop / Lanserhof) */
.r-card--a {
  background: var(--quartz-pure);
  color: var(--teal);
  border-radius: 6px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  transform: rotate(-0.4deg);
}
.r-card--b {
  background: var(--teal);
  color: var(--quartz);
  border-radius: 4px;
  width: clamp(300px, 28vw, 380px);
  transform: rotate(0.3deg);
}
.r-card--b .r-card__stars { color: var(--gold-bright); }
.r-card--b footer { border-top-color: rgba(244, 239, 229, 0.15); }

.r-card--c {
  background: var(--quartz-soft);
  color: var(--teal);
  border-radius: 6px;
  border: 1px solid rgba(197, 165, 114, 0.28);
  transform: rotate(-0.2deg);
}

.r-card--d {
  background: var(--quartz-pure);
  color: var(--teal);
  border-radius: 6px;
  box-shadow: 0 18px 40px -22px rgba(20, 42, 45, 0.15);
  transform: rotate(0.4deg);
  width: clamp(260px, 24vw, 320px);
}

.r-card--e {
  background: linear-gradient(140deg, var(--quartz-pure) 0%, rgba(197, 165, 114, 0.12) 100%);
  color: var(--teal);
  border-radius: 6px;
  border: 1px solid rgba(197, 165, 114, 0.22);
  transform: rotate(-0.3deg);
}

.r-card--f {
  background: var(--teal-mid);
  color: var(--gold);
  border-radius: 6px;
  border: 1px solid rgba(197, 165, 114, 0.3);
  transform: rotate(0.2deg);
}
.r-card--f p { color: var(--quartz); }
.r-card--f footer { border-top-color: rgba(197, 165, 114, 0.25); }
.r-card--f footer strong { color: var(--gold); }

.reviews__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.reviews__cta p { font-family: var(--ff-display); font-size: clamp(18px, 1.8vw, 24px); color: var(--teal); }
.reviews__cta strong { color: var(--gold); font-style: italic; font-weight: 400; }

/* ============== 15. FAQ (mantener) ============== */
.faq { padding: var(--gap-section) 0; background: var(--quartz-soft); }
.faq__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq__intro { position: sticky; top: 100px; }
.faq__lead { margin-top: 24px; margin-bottom: 32px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.faq__progress { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; margin-bottom: 32px; border-block: 1px solid var(--line); }
.faq__progress-meta { display: flex; justify-content: space-between; align-items: center; }
.faq__progress-label, .faq__progress-count { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; }
.faq__progress-label { color: var(--ink-soft); }
.faq__progress-count { color: var(--gold); font-family: var(--ff-display); font-style: italic; font-size: 13px; letter-spacing: 0.05em; text-transform: none; }
.faq__progress-bar { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.faq__progress-bar span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }

.faq__list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); transition: border-color 0.4s, padding-left 0.5s var(--ease-out), background 0.6s; position: relative; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--gold); transform: translateY(-50%); transition: height 0.55s var(--ease-out); }
.faq-item[open] { border-color: var(--gold-soft); padding-left: 18px; background: linear-gradient(180deg, rgba(197, 165, 114, 0.04), transparent); }
.faq-item[open]::before { height: 60%; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  color: var(--teal);
  transition: color 0.4s;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.6s var(--ease-out); }
.faq-item[open] summary::after { width: 40%; }
.faq-item__icon { position: relative; width: 26px; height: 26px; flex-shrink: 0; border: 1px solid var(--gold); border-radius: 50%; transition: transform 0.5s var(--ease-out), background 0.4s; }
.faq-item[open] .faq-item__icon { transform: rotate(180deg); background: var(--gold-soft); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold); transition: transform 0.5s var(--ease-out); }
.faq-item__icon::before { width: 10px; height: 1px; transform: translate(-50%, -50%); }
.faq-item__icon::after { width: 1px; height: 10px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item__body { max-height: 0; overflow: hidden; padding: 0; opacity: 0; transition: max-height 0.55s var(--ease-out), opacity 0.4s var(--ease-out), padding 0.4s; }
.faq-item[open] .faq-item__body { max-height: 600px; opacity: 1; padding-bottom: 28px; }
.faq-item__body p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }

/* ============== 16. CONTACT (sin mapa) ============== */
.contact { position: relative; padding: var(--gap-section) 0; background: var(--teal); color: var(--quartz); overflow: hidden; }
.contact__bg-decor { position: absolute; top: 0; right: -20%; width: 70%; height: 100%; pointer-events: none; z-index: 0; }
.contact__bg-decor svg { width: 100%; height: 100%; }
.contact__blob { transform-origin: 300px 300px; animation: blobSpin 60s linear infinite; }
@keyframes blobSpin { to { transform: rotate(360deg); } }
@supports (d: path("M0 0 Z")) {
  .contact__blob { animation: blobMorph 14s var(--ease) infinite alternate, blobSpin 60s linear infinite; }
  @keyframes blobMorph {
    0% { d: path("M300,120 C 420,140 480,250 460,370 C 440,490 320,520 220,490 C 120,460 80,340 110,240 C 140,140 220,100 300,120 Z"); }
    50% { d: path("M280,100 C 430,160 510,260 480,400 C 460,500 300,540 200,480 C 100,420 90,300 130,210 C 170,130 220,80 280,100 Z"); }
    100% { d: path("M310,140 C 440,170 470,280 470,380 C 460,510 340,510 230,470 C 130,430 100,330 130,230 C 160,150 240,120 310,140 Z"); }
  }
}

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); position: relative; z-index: 1; }
.contact__lead { margin-top: 24px; font-size: 16px; line-height: 1.7; color: rgba(244, 239, 229, 0.75); max-width: 480px; margin-bottom: 48px; }
.contact__details { display: flex; flex-direction: column; gap: 24px; }
.contact__details li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(244, 239, 229, 0.12);
}
.contact__details li:last-child { border-bottom: none; }
.contact__icon { width: 48px; height: 48px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); transition: transform 0.5s var(--ease-out); }
.contact__details li:hover .contact__icon { transform: rotate(15deg) scale(1.05); }
.contact__icon svg { width: 20px; height: 20px; }
.contact__details small { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact__details p, .contact__details a { font-size: 15px; color: var(--quartz); font-weight: 300; transition: color 0.3s; }
.contact__details a:hover { color: var(--gold); }

.contact__form {
  background: rgba(244, 239, 229, 0.03);
  border: 1px solid rgba(244, 239, 229, 0.1);
  border-radius: 12px;
  padding: clamp(28px, 3vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  align-content: start;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.field { position: relative; padding-top: 20px; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 0 12px; font-size: 15px; color: var(--quartz); border-bottom: 1px solid rgba(244, 239, 229, 0.2); transition: border-color 0.4s; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4 L6 8 L10 4' stroke='%23C5A572' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 12px; padding-right: 24px; }
.field select option { background: var(--teal); color: var(--quartz); }
.field textarea { resize: vertical; min-height: 60px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field label { position: absolute; top: 28px; left: 0; font-size: 13px; font-weight: 400; color: rgba(244, 239, 229, 0.85); transition: all 0.4s var(--ease-out); pointer-events: none; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.field__line { position: absolute; bottom: 0; left: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.field input:focus ~ .field__line, .field select:focus ~ .field__line, .field textarea:focus ~ .field__line { transform: scaleX(1); }
.field::after { content: ""; position: absolute; inset: 16px -8px -2px -8px; border-radius: 8px; background: radial-gradient(60% 100% at 50% 100%, var(--gold-soft), transparent 70%); opacity: 0; transform: scaleY(0.6); transform-origin: bottom; transition: opacity 0.5s, transform 0.6s var(--ease-out); pointer-events: none; z-index: -1; }
.field:focus-within::after { opacity: 1; transform: scaleY(1); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: #C26C5A; }
.field.is-invalid { animation: shakeSoft 0.4s var(--ease-out); }
@keyframes shakeSoft { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.checkbox { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 13px; color: rgba(244, 239, 229, 0.88); line-height: 1.5; position: relative; }
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox__box { width: 18px; height: 18px; border: 1px solid rgba(244, 239, 229, 0.3); border-radius: 3px; flex-shrink: 0; position: relative; transition: border-color 0.3s; margin-top: 2px; }
.checkbox__box::after { content: ""; position: absolute; top: 2px; left: 5px; width: 5px; height: 9px; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform 0.3s var(--ease-out); }
.checkbox input:checked ~ .checkbox__box { border-color: var(--gold); }
.checkbox input:checked ~ .checkbox__box::after { transform: rotate(45deg) scale(1); }
.checkbox a { color: var(--gold); border-bottom: 1px solid var(--gold); }

/* Trust list under form (anti-objection block) */
.form-trust {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
  padding: 16px 18px;
  border: 1px solid rgba(197, 165, 114, 0.22);
  border-radius: 2px;
  list-style: none;
}
.form-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(244, 239, 229, 0.86);
  font-weight: 300;
  letter-spacing: 0.01em;
}
.form-trust li svg { color: var(--gold); flex-shrink: 0; }
.form-note { grid-column: 1 / -1; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244, 239, 229, 0.5); text-align: center; margin-top: -16px; }

/* ============== 17. FOOTER ============== */
.footer { background: var(--teal-deep); color: var(--quartz); padding: 80px 0 0; position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 80px); padding-bottom: 60px; border-bottom: 1px solid rgba(244, 239, 229, 0.1); }
.footer__brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; color: rgba(244, 239, 229, 0.65); max-width: 320px; }
.footer__logo { display: flex; align-items: center; gap: 12px; }
.footer__logo-mark { width: 24px; height: 30px; color: var(--gold); }
.footer__logo > span:last-child { display: flex; flex-direction: column; font-family: var(--ff-display); font-style: italic; font-size: 16px; line-height: 1; }
.footer__logo em:first-child { font-size: 11px; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 2px; }
.footer__logo em { font-style: italic; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h4 { font-family: var(--ff-display); font-size: 14px; font-style: italic; font-weight: 400; color: var(--gold); margin-bottom: 20px; letter-spacing: 0.05em; }
.footer__cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer__cols li, .footer__cols a { font-size: 13px; color: rgba(244, 239, 229, 0.65); transition: color 0.3s, transform 0.4s var(--ease-out); letter-spacing: 0.02em; display: inline-block; }
.footer__cols a:hover { color: var(--gold); transform: translateX(4px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 28px 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244, 239, 229, 0.45); position: relative; z-index: 2; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 12px; }
.footer__social a { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(244, 239, 229, 0.15); display: grid; place-items: center; color: rgba(244, 239, 229, 0.65); transition: color 0.4s var(--ease-out), border-color 0.4s, transform 0.5s var(--ease-out); overflow: hidden; isolation: isolate; }
.footer__social a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform 0.5s var(--ease-emph); }
.footer__social a:hover::before { transform: scale(1); }
.footer__social a:hover { color: var(--teal); border-color: var(--gold); transform: translateY(-3px) scale(1.06); }
.footer__social svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease-out); }
.footer__social a:hover svg { transform: scale(1.12) rotate(-6deg); }

.footer__big { text-align: center; pointer-events: none; margin-top: -40px; --plx: 0; transform: translateY(calc(var(--plx) * 1px)); }
.footer__big-text {
  display: inline-block;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(80px, 22vw, 320px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgba(197, 165, 114, 0.22) 0%, rgba(197, 165, 114, 0.04) 60%, transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__big-letter { display: inline-block; transform: translateY(60%); opacity: 0; transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); will-change: transform, opacity; }
.footer__big.is-revealed .footer__big-letter { transform: translateY(0); opacity: 1; }

/* ============== 18. WHATSAPP FAB ============== */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 95;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--teal);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease-out), background 0.4s, color 0.4s, box-shadow 0.5s;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(197, 165, 114, 0);
}
.whatsapp-fab:hover {
  background: var(--gold);
  color: var(--teal);
  transform: scale(1.08);
  box-shadow: 0 16px 36px -10px rgba(197, 165, 114, 0.5), 0 0 0 8px rgba(197, 165, 114, 0.1);
}
.whatsapp-fab__icon { width: 28px; height: 28px; position: relative; z-index: 2; }
.whatsapp-fab__pulse {
  position: absolute; inset: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: whatsappPulse 2.6s var(--ease-out) infinite;
  pointer-events: none;
}
.whatsapp-fab__pulse--2 { animation-delay: 1.3s; }
@keyframes whatsappPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.whatsapp-fab__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 8px 14px;
  background: var(--teal);
  color: var(--quartz);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.whatsapp-fab:hover .whatsapp-fab__label { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 720px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-fab__icon { width: 24px; height: 24px; }
  .whatsapp-fab__label { display: none; }
}

/* ============== 19. SCROLL REVEALS ============== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============== 20. FOCUS VISIBLE ============== */
.btn:focus-visible, .nav__link:focus-visible, .t-card__link:focus-visible, .faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 4px;
}

/* ============== 21. RESPONSIVE ============== */
@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .hero__container { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { max-width: 480px; }
  .hero__copy { grid-template-columns: 1fr; gap: 24px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }

  .philosophy__grid,
  .faq__grid,
  .contact__grid,
  .doctor-hero { grid-template-columns: 1fr; }
  .doctor-hero__media { min-height: 360px; }
  .faq__intro { position: static; }

  .why__items { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid, .credentials-band__grid, .treatment-cards { grid-template-columns: repeat(2, 1fr); }
  .footer__top, .footer__cols { grid-template-columns: repeat(2, 1fr); }

  .philosophy__visual { min-height: 580px; }
}

@media (max-width: 720px) {
  :root { --gap-section: 80px; }

  .hero { padding: 90px 0 32px; }
  .hero__chrome { font-size: 9px; flex-wrap: wrap; gap: 8px; }
  .hero__chrome-sep { display: none; }

  .t-card { grid-template-columns: 1fr; }
  .t-card__media { aspect-ratio: 16/9; }

  .why__items, .credentials-band__grid, .treatment-cards, .doctor-grid, .footer__cols, .footer__top { grid-template-columns: 1fr; }
  .credentials-band__grid { gap: 28px; }

  .contact__form { grid-template-columns: 1fr; gap: 28px; }

  .philosophy__visual { display: flex; flex-direction: column; gap: 16px; min-height: auto; }
  .philosophy__img--main, .philosophy__img--accent, .philosophy__img--small { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; border: none; }
  .philosophy__quote { grid-column: auto; grid-row: auto; }
  .philosophy__badge { width: 80px; height: 80px; top: -16px; right: 0; }

  .footer__bottom { flex-direction: column; text-align: center; }

  .timeline { padding-left: 40px; }
  .timeline__rail { left: 12px; }
  .timeline__dot { left: -28px; }

  .doctor-hero__media { min-height: 300px; }
  .doctor-hero__info { padding: 32px 24px; }

  .reviews__cta { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(40px, 13vw, 64px); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .btn--lg { padding: 14px 22px; font-size: 12px; }
  .r-card { width: 280px; }
}

/* ==========================================================================
   X10 IMMERSIVE ENHANCEMENTS
   ========================================================================== */

/* ========== HERO PARTICLES (gold floating dots) ========== */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  filter: blur(0.5px);
  will-change: transform, opacity;
  animation: floatParticle var(--p-dur, 16s) ease-in-out infinite;
  animation-delay: var(--p-delay, 0s);
}
.particle--lg { width: 5px; height: 5px; opacity: 0.25; filter: blur(1px); }
.particle--xs { width: 2px; height: 2px; opacity: 0.55; filter: none; }
@keyframes floatParticle {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: var(--p-opacity, 0.4); }
  25% { transform: translate3d(20px, -25px, 0) scale(1.2); opacity: 0.7; }
  50% { transform: translate3d(-12px, -50px, 0) scale(0.85); opacity: 0.5; }
  75% { transform: translate3d(15px, -25px, 0) scale(1.1); opacity: 0.65; }
}

/* ========== HERO GRID DECOR (sutiles líneas verticales) ========== */
.hero__grid-decor {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  z-index: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
.hero__grid-decor span {
  position: relative;
  border-left: 1px solid rgba(244, 239, 229, 0.04);
}
.hero__grid-decor span:last-child {
  border-right: 1px solid rgba(244, 239, 229, 0.04);
}

/* ========== HERO PORTRAIT MOUSE PARALLAX HOOK ========== */
.hero__portrait img {
  transform: scale(var(--portrait-scale, 1.05)) translate3d(var(--portrait-x, 0), var(--portrait-y, 0), 0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== IMAGE REVEAL ON SCROLL ========== */
[data-img-reveal] {
  position: relative;
  overflow: hidden;
}
[data-img-reveal]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  z-index: 2;
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 1.1s cubic-bezier(0.83, 0, 0.17, 1);
}
[data-img-reveal] img {
  transform: scale(1.18);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-img-reveal].is-visible::before { transform: scaleY(0); }
[data-img-reveal].is-visible img { transform: scale(1); }

/* ========== CARD GRADIENT FOLLOW (luz que sigue al cursor) ========== */
.t-card,
.doctor-card,
.r-card,
.testi,
.why-item,
.tp-treatment {
  position: relative;
  isolation: isolate;
}
.t-card::after,
.doctor-card::after,
.tp-treatment::after,
.why-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(197, 165, 114, 0.15), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
.t-card:hover::after,
.doctor-card:hover::after,
.tp-treatment:hover::after,
.why-item:hover::after { opacity: 1; }

.t-card > *, .doctor-card > *, .tp-treatment > *, .why-item > * { position: relative; z-index: 2; }

/* ========== BUTTON SHINE EFFECT ========== */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transition: left 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
  transform: skewX(-15deg);
}
.btn:hover::after { left: 130%; }

/* ========== ENHANCED FOCUS ========== */
.btn:focus-visible,
.faq-item summary:focus-visible,
.t-card__link:focus-visible,
.nav__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(197, 165, 114, 0.15);
  border-radius: 4px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

/* ========== PERFORMANCE: content-visibility en secciones lejanas ========== */
.reviews,
.faq,
.contact,
.footer,
.tp-list,
.tp-final {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

/* ========== CONTAIN cards (paint/layout isolation) ========== */
.t-card, .doctor-card, .r-card, .testi, .why-item, .tp-treatment, .timeline__step {
  contain: layout style;
}

/* ========== STAR RATING ANIMATION ========== */
.r-card__stars {
  display: inline-flex;
  letter-spacing: 0;
  gap: 2px;
}
.r-card__stars::before {
  content: "★★★★★";
  display: inline-block;
  letter-spacing: 0.18em;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: starShimmer 4s ease-in-out infinite;
}
.r-card__stars { font-size: 0; }
@keyframes starShimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

/* ========== TIMELINE DOT GLOW PULSE ========== */
.timeline__step.is-active .timeline__dot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.5;
  animation: dotPing 2s ease-out infinite;
}
@keyframes dotPing {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}

/* ========== TIMELINE TEXT REVEAL (cuando se activa) ========== */
.timeline__step .timeline__title,
.timeline__step .timeline__text {
  opacity: 0.5;
  transform: translateX(8px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}
.timeline__step.is-active .timeline__title { opacity: 1; transform: translateX(0); transition-delay: 0.1s; }
.timeline__step.is-active .timeline__text { opacity: 0.85; transform: translateX(0); transition-delay: 0.2s; }
.timeline__step.is-active .timeline__num { color: var(--gold-bright); }

/* ========== DOCTOR HERO IMAGE EXTRA POLISH ========== */
.doctor-hero__media { isolation: isolate; }
.doctor-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20, 42, 45, 0.0) 30%, rgba(20, 42, 45, 0.45) 100%);
  z-index: 1;
  opacity: 0.85;
  transition: opacity 0.8s var(--ease-out);
}
.doctor-hero:hover .doctor-hero__media::before { opacity: 0.5; }
.doctor-hero__media-tag { z-index: 3; }

/* ========== MICRO-INTERACTIONS GLOBALES ========== */
/* Nav logo magnetic-lite */
.nav__logo { transition: transform 0.5s var(--ease-out); }
.nav__logo:hover { transform: translateY(-1px); }
.nav__logo-mark svg { transition: transform 0.6s var(--ease-out); }
.nav__logo:hover .nav__logo-mark svg { transform: rotate(8deg) scale(1.05); }

/* Eyebrow dot extra */
.eyebrow:hover .eyebrow__dot { animation-duration: 1.2s; }

/* Footer columns links arrow on hover */
.footer__cols a {
  position: relative;
  padding-right: 0;
  transition: color 0.3s, padding-right 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.footer__cols a::after {
  content: "→";
  position: absolute;
  right: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.footer__cols a:hover { padding-right: 16px; }
.footer__cols a:hover::after { opacity: 1; transform: translateX(0); }

/* T-card border glow */
.t-card { transition: transform 0.8s var(--ease-out), border-color 0.6s, box-shadow 0.8s var(--ease-out); }
.t-card:hover { box-shadow: 0 30px 60px -22px rgba(197, 165, 114, 0.2), 0 0 0 1px rgba(197, 165, 114, 0.15); }

/* ========== LIST ITEM HOVER (enhanced) ========== */
.t-card__list li {
  transition: color 0.3s, transform 0.4s var(--ease-out);
}
.t-card__list li:hover { color: var(--gold); transform: translateX(2px); }

/* ========== CONTACT DETAIL HOVER ========== */
.contact__details li {
  position: relative;
  transition: padding-left 0.5s var(--ease-out);
}
.contact__details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease-out);
}
.contact__details li:hover { padding-left: 12px; }
.contact__details li:hover::before { width: 8px; }

/* ========== FAQ Hover refined ========== */
.faq-item summary {
  transition: color 0.4s, padding-left 0.5s var(--ease-out);
}
.faq-item summary:hover { padding-left: 4px; }

/* ========== CREDENTIALS BAND HOVER ========== */
.credentials-band__item:hover .credentials-band__value em {
  color: var(--gold);
  transition: color 0.4s;
}

/* ========== HERO PORTRAIT NUM PULSE ========== */
.hero__portrait-num {
  animation: numGlow 3s ease-in-out infinite;
}
@keyframes numGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 12px rgba(197, 165, 114, 0.6); }
}

/* ========== SCROLLBAR ELEGANTE ========== */
html { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(197, 165, 114, 0.4);
  border-radius: 4px;
  transition: background 0.3s;
}
*::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ========== SOCIAL ICON ENHANCED ========== */
.footer__social a {
  transition: transform 0.5s var(--ease-out), color 0.4s, border-color 0.4s, box-shadow 0.5s;
}
.footer__social a:hover {
  box-shadow: 0 8px 24px -8px rgba(197, 165, 114, 0.5);
}

/* WhatsApp FAB: sin animación de entrada — siempre visible para acceso inmediato */

/* ========== HOVER UNDERLINE ANIMATIONS ========== */
.contact__details a {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.contact__details a:hover { background-size: 100% 1px; }

/* ========== NAV PROGRESS BAR (extra accent) ========== */
.scroll-progress::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
  pointer-events: none;
  opacity: 0.5;
  filter: blur(8px);
}

/* ========== BREATHING EFFECT en imágenes hero/badge ========== */
.philosophy__img-caption {
  transition: transform 0.5s var(--ease-out), background 0.4s;
}
.philosophy__img:hover .philosophy__img-caption {
  transform: translateY(-4px);
  background: rgba(197, 165, 114, 0.85);
  color: var(--teal);
}

/* ========== MARQUEE GLOW EDGES ========== */
.marquee {
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--teal), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--teal), transparent); }

/* ========== HERO QUOTE BREATHING ========== */
.hero__quote {
  animation: quoteBreathing 6s ease-in-out infinite;
}
@keyframes quoteBreathing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 165, 114, 0); }
  50% { box-shadow: 0 0 32px 0 rgba(197, 165, 114, 0.08); }
}

/* ========== TREATMENT NUM ENHANCED ========== */
.t-card__num {
  position: relative;
  display: inline-block;
}
.t-card__num::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.6s var(--ease-out);
}
.t-card:hover .t-card__num::after { width: 100%; }

/* ========== PHILOSOPHY VALUE-LIST H3 UNDERLINE ON HOVER ========== */
.value-list li h3 {
  position: relative;
  display: inline-block;
}
.value-list li h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width 0.6s var(--ease-out);
}
.value-list li:hover h3::after { width: 100%; }

/* ========== DOCTOR-CARD ROLE SHIFT ========== */
.doctor-card__role { transition: transform 0.5s var(--ease-out), letter-spacing 0.5s; }
.doctor-card:hover .doctor-card__role { transform: translateX(4px); letter-spacing: 0.32em; }

/* ========== TIMELINE NUM SCALE ========== */
.timeline__step.is-active .timeline__num {
  animation: numAppear 0.7s var(--ease-out) backwards;
}
@keyframes numAppear {
  from { transform: translateY(8px) scale(0.8); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ========== HERO ACTIONS INNER WORDS ========== */
.hero__actions .btn:hover { transform: translateY(-2px); }

/* ========== FAQ BODY ENHANCED ========== */
.faq-item[open] .faq-item__body p {
  animation: faqBodyIn 0.7s var(--ease-out) 0.2s backwards;
}
@keyframes faqBodyIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ========== REVIEW CARD HOVER POLISH ========== */
.r-card:hover { transition: transform 0.5s var(--ease-out), box-shadow 0.5s, rotate 0.5s; }

/* (credentials-band hover ya aplicado arriba) */

/* ========================================================================== */
/*                   RESPONSIVE EXTENDIDO                                       */
/* ========================================================================== */

/* Wide desktop (1440+) */
@media (min-width: 1440px) {
  :root { --container: 1380px; }
  .hero__title { font-size: clamp(56px, 8vw, 140px); }
  .h-display { font-size: clamp(40px, 5.4vw, 84px); }
}

/* Ultra wide (1920+) */
@media (min-width: 1920px) {
  :root { --container: 1480px; }
}

/* Tablet portrait (768-1099) */
@media (min-width: 768px) and (max-width: 1099px) {
  .doctor-hero { grid-template-columns: 0.9fr 1.1fr; }
  .doctor-hero__media { min-height: 420px; }
  .credentials-band__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* Small mobile + landscape mobile */
@media (max-width: 720px) and (orientation: landscape) {
  .hero { padding: 70px 0 32px; min-height: auto; }
  .hero__chrome { margin-bottom: 24px; }
  .hero__container { gap: 24px; }
}

/* Touch devices: disable hover-dependent animations */
@media (hover: none) {
  .t-card::after, .doctor-card::after, .tp-treatment::after, .why-item::after { display: none; }
  .btn::after { display: none; }
  .gradient-follow::after { display: none; }
  .footer__cols a::after { display: none; }
  .hero__quote { animation: none; }
}

/* Smaller mobile refinements */
@media (max-width: 480px) {
  :root { --gap-section: 70px; }
  .hero__chrome { font-size: 8px; gap: 6px; }
  .hero__chrome-sep { display: none; }
  .hero__chrome span { padding: 4px 0; }
  .nav { padding: 16px 0; }
  .nav.is-scrolled { padding: 12px 0; }
  .nav__logo-text em:first-child { font-size: 9px; }
  .nav__logo-text { font-size: 14px; }
  .doctor-hero__name { font-size: clamp(32px, 9vw, 44px); }
  .doctor-hero__bio { font-size: 14px; }
  .timeline__title { font-size: clamp(22px, 6vw, 28px); }
  .reviews__cta p { font-size: 16px; }
  .hero__stat-num { font-size: 22px; }
  .hero__stat-label { font-size: 9px; }
  .footer__big-text { font-size: clamp(64px, 22vw, 120px); }
  .whatsapp-fab { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .whatsapp-fab__icon { width: 22px; height: 22px; }
  .t-card { border-radius: 6px; }
}

/* Tiny screens (<360) */
@media (max-width: 359px) {
  :root { --gap-section: 56px; }
  .container { padding: 0 16px; }
  .hero { padding: 80px 0 24px; }
  .hero__title { font-size: clamp(32px, 11vw, 44px); }
  .doctor-hero__info { padding: 24px 16px; }
}

/* Touch-friendly minimum tap targets */
@media (hover: none) {
  .btn { min-height: 44px; }
  .nav__link { min-height: 44px; display: flex; align-items: center; }
  .testi-dot, .footer__social a, .nav__toggle { min-width: 44px; min-height: 44px; }
  .faq-item summary { padding: 24px 0; min-height: 56px; }
  .field input, .field select, .field textarea { min-height: 44px; padding: 12px 0; }
}

/* ============== TRATAMIENTOS · ATELIER EDITORIAL (home) ==============
   Split layout: numbered index (left) + live preview stage (right).
   Hover index row → crossfade preview. Click → category page.
   Mobile: stacks to inline cards (image + content per row).
   ====================================================================== */
.services { padding: var(--gap-section) 0; background: var(--quartz); position: relative; overflow: hidden; }
.services::before {
  content: "";
  position: absolute;
  top: 12%; left: -8%;
  width: 36%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(197,165,114,0.07), transparent 70%);
  pointer-events: none;
  filter: blur(4px);
}

/* ---------- HEADER editorial asimétrico (matches the split below) ---------- */
.tx-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--gold-soft);
  text-align: left;
  position: relative;
}
.tx-head__left { display: flex; flex-direction: column; gap: clamp(18px, 2.2vw, 28px); }
.tx-head__chapter {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.02em;
  color: var(--gold);
  font-weight: 400;
}
.tx-head__chapter::before {
  content: "";
  width: clamp(28px, 3.6vw, 56px);
  height: 1px;
  background: var(--gold);
  display: inline-block;
  transform: translateY(-4px);
  flex-shrink: 0;
}
.tx-head__title {
  font-size: clamp(34px, 4.4vw, 60px) !important;
  line-height: 1.04 !important;
  margin: 0;
  letter-spacing: -0.018em;
}
.tx-head__title em {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  position: relative;
}
.tx-head__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out) 0.4s;
}
.tx-head.is-visible .tx-head__title em::after { transform: scaleX(1); }

.tx-head__right {
  display: flex;
  align-items: flex-end;
  padding-bottom: 8px;
}
.tx-head__lead {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 380px;
  border-left: 1px solid var(--gold-soft);
  padding: 4px 0 4px clamp(18px, 2.2vw, 28px);
  margin: 0;
}

@media (max-width: 900px) {
  .tx-head {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    text-align: left;
  }
  .tx-head__title { font-size: clamp(30px, 8vw, 44px) !important; }
  .tx-head__lead {
    border-left: none;
    border-top: 1px solid var(--gold-soft);
    padding: 18px 0 0;
    max-width: 100%;
    font-size: 15px;
  }
}

/* Layout grid */
.tx-atelier {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
  position: relative;
}

/* ---------- INDEX (left column) ---------- */
.tx-index { position: relative; }
.tx-index__list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--gold-soft);
}
.tx-index__item { display: block; }

.tx-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: baseline;
  padding: clamp(18px, 2.4vw, 26px) clamp(8px, 1.6vw, 20px) clamp(18px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--gold-soft);
  text-decoration: none;
  color: var(--teal);
  transition: padding-left 0.55s var(--ease-out), color 0.4s;
  cursor: pointer;
  isolation: isolate;
}
.tx-row::before { /* gold left bar */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: width 0.55s var(--ease-out);
}

/* Number */
.tx-row__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
  min-width: 1.6em;
  transition: color 0.4s, transform 0.5s var(--ease-out);
}

/* Body (title + sub) */
.tx-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tx-row__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--teal);
  transition: transform 0.6s var(--ease-out), color 0.4s;
}
.tx-row__sub {
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-soft);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.55s var(--ease-out), opacity 0.55s, transform 0.55s var(--ease-out), margin-top 0.55s var(--ease-out);
}

/* Count chip */
.tx-row__count {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
  align-self: center;
  position: relative;
  padding-left: 28px;
  transition: color 0.4s, padding-left 0.5s var(--ease-out);
}
.tx-row__count::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--gold-soft);
  transform: translateY(-50%);
  transition: width 0.5s var(--ease-out), background 0.5s;
}

/* Hover line that draws from left to right at bottom */
.tx-row__line {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

/* States: hover or programmatically active */
.tx-row:hover,
.tx-row:focus-visible,
.tx-row.is-active {
  padding-left: clamp(20px, 2.4vw, 32px);
}
.tx-row:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}
.tx-row:hover, .tx-row.is-active { outline: none; }
.tx-row:hover::before,
.tx-row:focus-visible::before,
.tx-row.is-active::before {
  width: clamp(12px, 1.4vw, 18px);
}
.tx-row:hover .tx-row__num,
.tx-row:focus-visible .tx-row__num,
.tx-row.is-active .tx-row__num {
  transform: translateY(-2px);
}
.tx-row:hover .tx-row__title,
.tx-row:focus-visible .tx-row__title,
.tx-row.is-active .tx-row__title {
  color: var(--gold);
}
.tx-row.is-active .tx-row__sub {
  max-height: 60px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 4px;
}
.tx-row:hover .tx-row__count::before,
.tx-row:focus-visible .tx-row__count::before,
.tx-row.is-active .tx-row__count::before {
  width: 36px;
  background: var(--gold);
}
.tx-row:hover .tx-row__line,
.tx-row:focus-visible .tx-row__line,
.tx-row.is-active .tx-row__line {
  transform: scaleX(1);
}

/* ---------- STAGE (right column) ---------- */
.tx-stage {
  position: sticky;
  top: clamp(96px, 12vh, 120px);
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  background: var(--quartz-soft);
  box-shadow: 0 30px 80px -30px rgba(20, 42, 45, 0.18), 0 0 0 1px var(--gold-soft);
}

.tx-card {
  position: absolute;
  inset: 0;
  margin: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
.tx-card.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ease-out), visibility 0s linear 0s;
}

.tx-card__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tx-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.97);
  transform: scale(1.04);
  transition: transform 1.6s var(--ease-out);
}
.tx-card.is-active .tx-card__frame img {
  transform: scale(1);
}

/* Bottom gradient → keeps caption legible */
.tx-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,23,25,0) 35%, rgba(11,23,25,0.55) 75%, rgba(11,23,25,0.85) 100%),
    radial-gradient(140% 80% at 80% 20%, rgba(244,239,229,0) 60%, rgba(11,23,25,0.18) 100%);
  pointer-events: none;
}

/* Caption (overlay bottom) */
.tx-card__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) clamp(28px, 4vw, 44px);
  color: var(--quartz-pure);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.8s var(--ease-out) 0.1s, opacity 0.8s 0.1s;
}
.tx-card.is-active .tx-card__cap {
  transform: translateY(0);
  opacity: 1;
}

.tx-card__label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tx-card__label::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold-bright);
}

.tx-card__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--quartz-pure);
  margin: 0;
}
.tx-card__title em {
  font-style: italic;
  color: var(--gold-bright);
}

.tx-card__desc {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55;
  color: rgba(244, 239, 229, 0.82);
  max-width: 90%;
  margin: 4px 0 14px;
}

.tx-card__cta {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 17px);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--gold-bright);
  padding-bottom: 4px;
  position: relative;
  width: fit-content;
}
.tx-card__cta::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--gold-bright);
  opacity: 0.55;
  transform-origin: left center;
}
.tx-card__cta i {
  font-style: normal;
  font-size: 17px;
  font-weight: 300;
  transition: transform 0.5s var(--ease-out);
}

/* Cursor signal — full card is the link target via index.row JS or stage hover */
.tx-stage { cursor: default; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .tx-atelier { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(36px, 4vw, 56px); }
  .tx-row__sub { font-size: 12px; }
}

@media (max-width: 900px) {
  .tx-atelier { grid-template-columns: 1fr; gap: 0; }
  .tx-stage { display: none; } /* Stage replaced by inline images on mobile */

  .tx-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    padding: 22px 16px 22px 8px;
    gap: 12px 18px;
  }
  .tx-row__num { grid-row: 1 / 3; align-self: center; font-size: 22px; }
  .tx-row__count { grid-column: 3; grid-row: 1; align-self: center; }
  .tx-row__body { grid-column: 2; grid-row: 1 / 3; }
  .tx-row__title { font-size: clamp(20px, 5vw, 26px); }
  .tx-row__sub {
    max-height: 60px;
    opacity: 1;
    transform: none;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--ink-soft);
  }
  .tx-row.is-active { padding-left: 16px; }
  .tx-row.is-active::before { width: 0; } /* drop active indicator on mobile */
  .tx-row .tx-row__title { color: var(--teal); }
  .tx-row:hover .tx-row__title { color: var(--gold); }
}

@media (max-width: 600px) {
  .tx-row { padding: 18px 8px 18px 4px; gap: 8px 14px; }
  .tx-row__num { font-size: 18px; }
  .tx-row__title { font-size: 20px; }
  .tx-row__sub { font-size: 12px; }
  .tx-row__count { font-size: 13px; padding-left: 16px; }
  .tx-row__count::before { width: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tx-row, .tx-row::before, .tx-row__num, .tx-row__title, .tx-row__sub, .tx-row__count, .tx-row__count::before, .tx-row__line,
  .tx-card, .tx-card__frame img, .tx-card__cap { transition-duration: 0.01ms !important; }
}

/* ============== TREATMENT DETAIL (páginas individuales) ============== */
.td-hero { padding-top: clamp(100px, 12vw, 160px); padding-bottom: clamp(40px, 5vw, 64px); background: var(--quartz); position: relative; overflow: hidden; }
.td-hero::before { content: ""; position: absolute; top: -10%; right: -10%; width: 50%; aspect-ratio: 1; background: radial-gradient(circle, var(--gold-soft), transparent 70%); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
.td-hero .container { position: relative; z-index: 1; max-width: 1100px; }
.td-quick-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); margin-top: clamp(24px, 4vw, 40px); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.td-quick-meta > div { display: flex; flex-direction: column; gap: 6px; }
.td-quick-meta small { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.td-quick-meta strong { font-family: var(--ff-display); font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; color: var(--teal); letter-spacing: 0.01em; }
.td-cta-row { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; }

.td-image { padding: 0 0 clamp(48px, 6vw, 80px); background: var(--quartz); }
.td-image .container { max-width: 1100px; }
.td-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; box-shadow: 0 40px 80px -30px rgba(20, 42, 45, 0.4); }

/* ============== TD-SOLVES · "Qué resuelve" editorial bento ============== */
.td-solves { padding: clamp(72px, 9vw, 120px) 0; background: var(--quartz-soft); position: relative; overflow: hidden; }
.td-solves::before {
  content: "";
  position: absolute;
  top: 12%; left: -8%;
  width: 30%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(197,165,114,0.08), transparent 70%);
  pointer-events: none;
  filter: blur(4px);
}

.td-solves__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--gold-soft);
  position: relative;
}
.td-solves__chapter {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--gold);
  margin-bottom: 18px;
  width: fit-content;
}
.td-solves__chapter::before {
  content: "";
  width: clamp(28px, 3.6vw, 56px); height: 1px;
  background: var(--gold);
  transform: translateY(-4px);
}
.td-solves__h {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.4vw, 44px) !important;
  line-height: 1.1 !important;
  color: var(--teal);
  letter-spacing: -0.012em;
  font-weight: 400;
  margin: 0;
}
.td-solves__h em { font-style: italic; color: var(--gold); }
.td-solves__sublead {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  color: var(--ink-soft);
  border-left: 1px solid var(--gold-soft);
  padding: 4px 0 8px clamp(18px, 2.2vw, 28px);
  margin: 0;
  align-self: end;
}

.td-solves__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.8vw, 36px);
  position: relative;
}

.td-solves__item {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 22px);
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--quartz-pure);
  border: 1px solid rgba(197, 165, 114, 0.15);
  border-radius: 2px;
  position: relative;
  isolation: isolate;
  transition: transform 0.6s var(--ease-out), border-color 0.5s, box-shadow 0.6s;
  overflow: hidden;
}
.td-solves__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.6s var(--ease-out);
}
.td-solves__item:hover {
  border-color: rgba(197, 165, 114, 0.45);
  box-shadow: 0 20px 50px -28px rgba(20, 42, 45, 0.2);
  transform: translateY(-4px);
}
.td-solves__item:hover::before { width: 100%; }

.td-solves__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 0.85;
  color: var(--gold);
  display: block;
  letter-spacing: 0;
}
.td-solves__num::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-top: clamp(12px, 1.4vw, 18px);
  transition: width 0.55s var(--ease-out);
}
.td-solves__item:hover .td-solves__num::after { width: 56px; }

.td-solves__text {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--teal);
  margin: 0;
  font-weight: 300;
}

@media (max-width: 900px) {
  .td-solves__head { grid-template-columns: 1fr; gap: 16px; }
  .td-solves__sublead {
    border-left: none;
    border-top: 1px solid var(--gold-soft);
    padding: 14px 0 0;
    align-self: start;
  }
  .td-solves__grid { grid-template-columns: 1fr; }
}

.td-process { padding: clamp(60px, 8vw, 100px) 0; background: var(--teal); color: var(--quartz); position: relative; overflow: hidden; }
.td-process::before { content: ""; position: absolute; top: 30%; right: -8%; width: 35%; aspect-ratio: 1; background: radial-gradient(circle, var(--gold-soft), transparent 70%); pointer-events: none; animation: breathe 9s ease-in-out infinite; }
.td-process__list { max-width: 760px; margin: 0 auto; padding-left: 56px; position: relative; list-style: none; counter-reset: tdstep; }
.td-process__list::before { content: ""; position: absolute; left: 24px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(to bottom, var(--gold), rgba(244, 239, 229, 0.12) 80%); }
.td-process__list li { position: relative; padding-bottom: clamp(32px, 4vw, 48px); }
.td-process__list li:last-child { padding-bottom: 0; }
.td-process__num { position: absolute; left: -56px; top: 0; width: 48px; height: 48px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-display); font-style: italic; font-size: 16px; color: var(--gold); background: var(--teal); }
.td-process__list h3 { font-family: var(--ff-display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: var(--quartz); margin-bottom: 10px; line-height: 1.2; }
.td-process__list p { font-size: 14px; line-height: 1.7; color: rgba(244, 239, 229, 0.72); margin: 0; }

.td-results { padding: clamp(60px, 8vw, 100px) 0; background: var(--quartz); }
.td-results__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2vw, 24px); margin-bottom: 24px; }
.td-results__step { padding: clamp(20px, 2.5vw, 28px); background: var(--quartz-pure); border-left: 3px solid var(--gold); border-radius: 4px; transition: transform 0.5s var(--ease-out); }
.td-results__step:hover { transform: translateX(4px); }
.td-results__step span { font-family: var(--ff-display); font-style: italic; font-size: 17px; color: var(--gold); display: block; margin-bottom: 10px; }
.td-results__step p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.td-results__note { font-size: 13px; color: var(--ink-soft); font-style: italic; text-align: center; max-width: 720px; margin: 24px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }

.td-faq { padding: clamp(60px, 8vw, 100px) 0; background: var(--quartz-soft); }
.td-faq .faq__grid { grid-template-columns: 0.85fr 1.15fr; }

@media (max-width: 1100px) {
  .td-faq .faq__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .td-quick-meta { grid-template-columns: 1fr; gap: 12px; }
  .td-process__list { padding-left: 48px; }
  .td-process__num { left: -48px; width: 40px; height: 40px; font-size: 14px; }
  .td-process__list::before { left: 20px; }
}

/* ============== CATEGORÍAS SECUNDARIAS (otras especialidades) ============== */
.treatment-secondary {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.treatment-secondary__title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--teal);
  margin-bottom: clamp(24px, 3vw, 40px);
  letter-spacing: 0.02em;
}
.treatment-secondary__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.treatment-secondary__list li {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.treatment-secondary__list li:nth-child(odd) { border-right: 1px solid var(--line); }
.treatment-secondary__list a {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 24px 28px;
  transition: background 0.5s var(--ease-out), padding 0.4s var(--ease-out);
  position: relative;
}
.treatment-secondary__list a::before {
  content: "→";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%) translateX(-8px);
  opacity: 0;
  color: var(--gold);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.treatment-secondary__list a:hover {
  background: rgba(197, 165, 114, 0.04);
  padding-left: 32px;
}
.treatment-secondary__list a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.treatment-secondary__num {
  grid-row: 1 / 3;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  align-self: center;
}
.treatment-secondary__name {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.2;
}
.treatment-secondary__desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .treatment-secondary__list { grid-template-columns: 1fr; }
  .treatment-secondary__list li { border-right: none !important; }
}

/* ============== TREATMENT SUBPAGES ============== */
.tp-page { padding-top: 100px; }
.tp-hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  background: var(--quartz);
  position: relative;
  overflow: hidden;
}
.tp-hero::before {
  content: ""; position: absolute;
  top: 20%; right: -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
.tp-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
  transition: color 0.3s, gap 0.4s var(--ease-out);
}
.tp-back:hover { color: var(--gold); gap: 16px; }
.tp-back svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.tp-back:hover svg { transform: translateX(-4px); }
.tp-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.tp-meta-sep { width: 24px; height: 1px; background: var(--gold-soft); }
.tp-title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  color: var(--teal);
  margin-bottom: 24px;
  max-width: 900px;
}
.tp-title em { font-style: italic; color: var(--gold); }
.tp-lead {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
}

.tp-list { padding: clamp(48px, 6vw, 80px) 0; background: var(--quartz); }
.tp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.tp-treatment {
  background: var(--quartz-pure);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 36px);
  transition: transform 0.6s var(--ease-out), border-color 0.5s, box-shadow 0.6s;
  position: relative;
  overflow: hidden;
}
.tp-treatment:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 165, 114, 0.3);
  box-shadow: 0 24px 48px -22px rgba(20, 42, 45, 0.18);
}
.tp-treatment__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: inline-block;
}
.tp-treatment h3 { font-family: var(--ff-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; color: var(--teal); margin-bottom: 12px; }
.tp-treatment p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 20px; }
.tp-treatment__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tp-treatment__meta span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tp-treatment__meta span:first-child { color: var(--gold); border-color: var(--gold-soft); }

.tp-final {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--teal);
  color: var(--quartz);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tp-final::before {
  content: ""; position: absolute;
  top: 50%; left: 50%;
  width: 60%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite;
}
.tp-final h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 56px);
  color: var(--quartz);
  margin-bottom: 24px;
  position: relative;
}
.tp-final h2 em { font-style: italic; color: var(--gold); }
.tp-final p { font-size: 16px; line-height: 1.7; color: rgba(244, 239, 229, 0.7); max-width: 560px; margin: 0 auto 32px; position: relative; }
.tp-final .btn { position: relative; }

@media (max-width: 720px) {
  .tp-grid { grid-template-columns: 1fr; }
}

/* ============== 22. MOTION PREFERENCES ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track,
  .reviews__row--right .reviews__track,
  .reviews__row--left .reviews__track { animation: none; }
  .reveal-word > span { transform: translateY(0); }
  .credentials-band::before, .why__bg-decor::before, .why__bg-decor::after, .eyebrow__dot, .contact__blob, .preloader__circle, .philosophy__badge, .process::before, .hero__bg-orb, .whatsapp-fab__pulse { animation: none !important; }
  .doctor-card, .doctor-hero, .t-card, .why-item { transform: none !important; }
  body::before { display: none; }
  .footer__big-letter { transform: none; opacity: 1; }
  .r-card { transform: none !important; }
}


/* Treatment card link wrapper */
.tp-treatment__link { display: contents; color: inherit; text-decoration: none; }
.tp-treatment { cursor: pointer; }
.tp-treatment:hover h3 { color: var(--gold); transition: color 0.4s; }

/* ============== DOCTOR LICENSE LINE ============== */
.doctor-hero__license {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: -8px 0 14px;
  font-weight: 500;
}
.doctor-hero__license [data-pending] {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.55;
  font-size: 12px;
}

/* ============== FOOTER MEDICAL INFO ============== */
.footer__medical {
  margin-top: clamp(48px, 5vw, 72px);
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 32px);
  border-top: 1px solid rgba(244, 239, 229, 0.1);
  border-bottom: 1px solid rgba(244, 239, 229, 0.1);
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.footer__medical-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__medical-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}
.footer__medical-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 239, 229, 0.62);
  margin: 0;
}
.footer__medical-text [data-pending] {
  color: var(--gold);
  font-style: italic;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .footer__medical { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   LEGAL PAGES (privacidad / aviso-legal / cookies)
   Editorial long-form layout que respeta el design system.
   ============================================================ */
.legal-page { background: var(--quartz); padding-top: 0; }
.legal-page main { padding-top: clamp(96px, 12vh, 140px); }

.legal { padding: 0 0 clamp(80px, 10vw, 140px); position: relative; }
.legal::before {
  content: "";
  position: absolute;
  top: 8%; left: -8%;
  width: 32%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(197,165,114,0.06), transparent 70%);
  pointer-events: none;
  filter: blur(4px);
  z-index: 0;
}
.legal__container { max-width: 820px; position: relative; z-index: 1; }

.legal__head {
  padding-bottom: clamp(28px, 3.4vw, 44px);
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--gold-soft);
}
.legal__title {
  font-size: clamp(40px, 5.4vw, 72px) !important;
  line-height: 1.04 !important;
  margin: clamp(20px, 2.4vw, 32px) 0 clamp(14px, 1.6vw, 22px) !important;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.legal__title em {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--gold);
}
.legal__updated {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.legal__body { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.legal__body h2 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  color: var(--teal);
  margin: clamp(40px, 4vw, 56px) 0 clamp(14px, 1.4vw, 18px);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 20px;
}
.legal__body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 10px; height: 1px;
  background: var(--gold);
}
.legal__body h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 400;
  color: var(--teal);
  margin: clamp(28px, 3vw, 36px) 0 10px;
}
.legal__body p { margin: 0 0 18px; max-width: 70ch; }
.legal__body strong { color: var(--teal); font-weight: 500; }
.legal__body a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); transition: border-color 0.3s; }
.legal__body a:hover { border-color: var(--gold); }

.legal__list, .legal__data {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.legal__list li, .legal__data li {
  position: relative;
  padding: 6px 0 6px 24px;
  max-width: 72ch;
}
.legal__list li::before {
  content: "—";
  position: absolute;
  left: 0; top: 6px;
  color: var(--gold);
  font-family: var(--ff-display);
  font-style: italic;
}
.legal__data {
  background: var(--quartz-soft);
  border-left: 2px solid var(--gold);
  padding: clamp(20px, 2vw, 28px) clamp(20px, 2.2vw, 32px);
  border-radius: 2px;
  margin-bottom: 28px;
}
.legal__data li { padding: 5px 0; }
.legal__data li::before { content: none; }

@media (max-width: 720px) {
  .legal__title { font-size: clamp(32px, 9vw, 44px) !important; }
  .legal__body { font-size: 14.5px; }
  .legal__body h2 { font-size: 22px; }
}

/* ============================================================
   CATEGORY LANDING PAGES (editorial redesign)
   .tx-cat-*  →  hero asimétrico + featured + magazine grid + proceso
   Reemplaza el grid plano anterior. Usa el mismo design system.
   ============================================================ */

/* HERO asymmetric */
.tx-cat-hero {
  padding: clamp(112px, 13vh, 160px) 0 clamp(56px, 7vw, 96px);
  background: var(--quartz);
  position: relative;
  overflow: hidden;
}
.tx-cat-hero::before {
  content: "";
  position: absolute;
  top: 14%; right: -10%;
  width: 38%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  pointer-events: none;
  filter: blur(6px);
}
.tx-cat-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  position: relative;
}
.tx-cat-hero__left { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 28px); }
.tx-cat-hero__back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
  transition: color 0.3s, gap 0.4s var(--ease-out);
  width: fit-content;
}
.tx-cat-hero__back:hover { color: var(--gold); gap: 16px; }
.tx-cat-hero__back svg { width: 13px; height: 13px; transition: transform 0.4s var(--ease-out); }
.tx-cat-hero__back:hover svg { transform: translateX(-4px); }

.tx-cat-hero__chapter {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.02em;
  color: var(--gold);
  width: fit-content;
}
.tx-cat-hero__chapter::before {
  content: "";
  width: clamp(28px, 3.6vw, 56px);
  height: 1px;
  background: var(--gold);
  display: inline-block;
  transform: translateY(-4px);
}

.tx-cat-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1 !important;
  letter-spacing: -0.022em;
  color: var(--teal);
  margin: 0;
  font-weight: 400;
}
.tx-cat-hero__title em {
  font-style: italic;
  color: var(--gold);
  position: relative;
  display: inline-block;
}
.tx-cat-hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out) 0.5s;
}
.tx-cat-hero.is-visible .tx-cat-hero__title em::after { transform: scaleX(1); }

.tx-cat-hero__lead {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0;
  font-weight: 400;
}

.tx-cat-hero__stats {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  padding: clamp(20px, 2.4vw, 28px) 0 clamp(8px, 1.4vw, 16px);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  margin: clamp(8px, 1vw, 16px) 0;
}
.tx-cat-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tx-cat-hero__stats span {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}
.tx-cat-hero__stats small {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.tx-cat-hero__cta { width: fit-content; margin-top: 4px; }

.tx-cat-hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 30px 80px -30px rgba(20, 42, 45, 0.18), 0 0 0 1px var(--gold-soft);
  margin: 0;
}
.tx-cat-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.96) brightness(0.97);
  transform: scale(1.03);
  transition: transform 1.6s var(--ease-out);
}
.tx-cat-hero.is-visible .tx-cat-hero__media img { transform: scale(1); }
.tx-cat-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,23,25,0.55) 100%);
  pointer-events: none;
}
.tx-cat-hero__caption {
  position: absolute;
  left: clamp(20px, 2.4vw, 28px);
  bottom: clamp(20px, 2.4vw, 28px);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.tx-cat-hero__caption::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold-bright);
}

/* ============================================================
   PULL QUOTE EDITORIAL (entre hero y catálogo)
   ============================================================ */
.tx-cat-quote {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--quartz-soft);
  position: relative;
  overflow: hidden;
}
.tx-cat-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(197,165,114,0.05), transparent 70%);
  pointer-events: none;
}
.tx-cat-quote__inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 40px);
}
.tx-cat-quote blockquote {
  margin: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.35;
  color: var(--teal);
  letter-spacing: -0.01em;
  position: relative;
}
.tx-cat-quote blockquote::before {
  content: "“";
  display: block;
  font-size: clamp(60px, 8vw, 110px);
  color: var(--gold);
  line-height: 0.6;
  margin-bottom: 8px;
  font-style: normal;
}
.tx-cat-quote cite {
  display: block;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.tx-cat-quote cite::before {
  content: "— ";
  color: var(--gold);
}

/* ============================================================
   EL CATÁLOGO · MAGAZINE LAYOUT
   ============================================================ */
.tx-cat-list {
  padding: clamp(72px, 9vw, 130px) 0;
  background: var(--quartz);
}
.tx-cat-list__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--gold-soft);
}
.tx-cat-list__chapter {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--gold);
  width: fit-content;
  margin-bottom: 18px;
}
.tx-cat-list__chapter::before {
  content: "";
  width: clamp(28px, 3.6vw, 56px);
  height: 1px;
  background: var(--gold);
  transform: translateY(-4px);
}
.tx-cat-list__title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  color: var(--teal);
  letter-spacing: -0.012em;
  font-weight: 400;
  margin: 0;
}
.tx-cat-list__title em {
  font-style: italic;
  color: var(--gold);
}
.tx-cat-list__sublead {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 1px solid var(--gold-soft);
  padding: 4px 0 4px clamp(18px, 2.2vw, 28px);
  margin: 0;
  align-self: end;
  padding-bottom: 8px;
}

/* Featured first treatment (row image+content) */
.tx-cat-feat {
  margin-bottom: clamp(48px, 6vw, 80px);
}
.tx-cat-feat__link {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  isolation: isolate;
}
.tx-cat-feat__media {
  margin: 0;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 30px 70px -30px rgba(20, 42, 45, 0.2), 0 0 0 1px var(--gold-soft);
  position: relative;
}
.tx-cat-feat__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(11,23,25,0.35) 100%);
  pointer-events: none;
}
.tx-cat-feat__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.96) brightness(0.97);
  transition: transform 1.4s var(--ease-out);
}
.tx-cat-feat__link:hover .tx-cat-feat__media img { transform: scale(1.04); }
.tx-cat-feat__overlay {
  position: absolute;
  left: clamp(18px, 2.4vw, 28px); bottom: clamp(18px, 2.4vw, 28px);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
  z-index: 2;
}

.tx-cat-feat__body {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
}
.tx-cat-feat__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.04em;
  color: var(--gold);
}
.tx-cat-feat__num::before {
  content: "№ ";
  font-style: italic;
  margin-right: 4px;
}
.tx-cat-feat__title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  color: var(--teal);
  letter-spacing: -0.012em;
  margin: 0;
  font-weight: 400;
  transition: color 0.4s;
}
.tx-cat-feat__link:hover .tx-cat-feat__title { color: var(--gold); }
.tx-cat-feat__desc {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
}
.tx-cat-feat__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2vw, 32px);
  list-style: none;
  padding: clamp(16px, 1.8vw, 24px) 0;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  margin: clamp(4px, 0.8vw, 8px) 0;
}
.tx-cat-feat__meta li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tx-cat-feat__meta li small {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.tx-cat-feat__meta li span {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--teal);
  font-weight: 400;
}
.tx-cat-feat__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-soft);
  width: fit-content;
  transition: gap 0.4s var(--ease-out), border-color 0.4s;
}
.tx-cat-feat__cta i { font-style: normal; transition: transform 0.4s var(--ease-out); }
.tx-cat-feat__link:hover .tx-cat-feat__cta { gap: 16px; border-color: var(--gold); }
.tx-cat-feat__link:hover .tx-cat-feat__cta i { transform: translateX(4px); }

/* Treatment cards · varied magazine grid */
/* ============================================================
   TX-CAT-CARD · cards de tratamiento con 3 variantes editoriales
   data-style="top"  → imagen 16:11 arriba, contenido abajo (default)
   data-style="side" → imagen 50% izq, contenido 50% der (cards anchas)
   data-style="bg"   → imagen full-bleed con overlay y texto sobreimpresionado
   ============================================================ */
.tx-cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.tx-cat-card {
  grid-column: span 6;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tx-cat-card[data-span="4"] { grid-column: span 4; }
.tx-cat-card[data-span="6"] { grid-column: span 6; }
.tx-cat-card[data-span="8"] { grid-column: span 8; }
.tx-cat-card[data-span="12"] { grid-column: span 12; }

.tx-cat-card__link {
  display: flex;
  height: 100%;
  background: var(--quartz-pure);
  border: 1px solid rgba(197, 165, 114, 0.18);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.5s, box-shadow 0.6s, transform 0.6s var(--ease-out);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.tx-cat-card__link:hover {
  border-color: rgba(197, 165, 114, 0.45);
  box-shadow: 0 20px 50px -28px rgba(20, 42, 45, 0.2);
  transform: translateY(-4px);
}
.tx-cat-card__link::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.6s var(--ease-out);
  z-index: 3;
}
.tx-cat-card__link:hover::before { width: 100%; }

/* MEDIA */
.tx-cat-card__media {
  margin: 0;
  overflow: hidden;
  position: relative;
  background: var(--quartz-soft);
}
.tx-cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) brightness(0.97);
  transition: transform 1.2s var(--ease-out);
}
.tx-cat-card__link:hover .tx-cat-card__media img { transform: scale(1.05); }

/* INNER */
.tx-cat-card__inner {
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.tx-cat-card__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 10px;
}
.tx-cat-card__num::before { content: "№ "; margin-right: 2px; }

.tx-cat-card__title {
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--teal);
  margin: 0 0 10px;
  transition: color 0.4s;
}
.tx-cat-card__link:hover .tx-cat-card__title { color: var(--gold); }

.tx-cat-card__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 16px;
  flex: 1;
}

.tx-cat-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
}
.tx-cat-card__meta li {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}
.tx-cat-card__meta li:first-child { color: var(--gold); border-color: var(--gold-soft); }

/* ====== STYLE 1 · TOP (default) — imagen arriba, contenido abajo ====== */
.tx-cat-card[data-style="top"] .tx-cat-card__link,
.tx-cat-card:not([data-style]) .tx-cat-card__link {
  flex-direction: column;
}
.tx-cat-card[data-style="top"] .tx-cat-card__media,
.tx-cat-card:not([data-style]) .tx-cat-card__media {
  aspect-ratio: 16 / 11;
}

/* ====== STYLE 2 · SIDE — imagen izquierda, contenido derecha ====== */
.tx-cat-card[data-style="side"] .tx-cat-card__link {
  flex-direction: row;
  min-height: 280px;
}
.tx-cat-card[data-style="side"] .tx-cat-card__media {
  flex: 0 0 44%;
  aspect-ratio: auto;
  min-height: 100%;
}
.tx-cat-card[data-style="side"] .tx-cat-card__inner {
  flex: 1;
  justify-content: center;
}

/* ====== STYLE 3 · BG — imagen full-bleed con overlay + texto sobreimpresionado ====== */
.tx-cat-card[data-style="bg"] .tx-cat-card__link {
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 0;
  background: var(--teal-deep);
}
.tx-cat-card[data-style="bg"] .tx-cat-card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  z-index: 0;
}
.tx-cat-card[data-style="bg"] .tx-cat-card__media img {
  filter: saturate(0.92) brightness(0.85);
}
.tx-cat-card[data-style="bg"] .tx-cat-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 23, 25, 0.35) 50%, rgba(11, 23, 25, 0.92) 100%);
  pointer-events: none;
}
.tx-cat-card[data-style="bg"] .tx-cat-card__inner {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 2.8vw, 36px);
  color: var(--quartz-pure);
}
.tx-cat-card[data-style="bg"] .tx-cat-card__num {
  color: var(--gold-bright);
}
.tx-cat-card[data-style="bg"] .tx-cat-card__title {
  color: var(--quartz-pure);
}
.tx-cat-card[data-style="bg"] .tx-cat-card__link:hover .tx-cat-card__title {
  color: var(--gold-bright);
}
.tx-cat-card[data-style="bg"] .tx-cat-card__desc {
  color: rgba(244, 239, 229, 0.82);
}
.tx-cat-card[data-style="bg"] .tx-cat-card__meta {
  border-top-color: rgba(244, 239, 229, 0.18);
}
.tx-cat-card[data-style="bg"] .tx-cat-card__meta li {
  color: rgba(244, 239, 229, 0.7);
  border-color: rgba(244, 239, 229, 0.18);
}
.tx-cat-card[data-style="bg"] .tx-cat-card__meta li:first-child {
  color: var(--gold-bright);
  border-color: rgba(217, 189, 138, 0.4);
}

@media (max-width: 900px) {
  .tx-cat-card[data-style="side"] .tx-cat-card__link { flex-direction: column; min-height: 0; }
  .tx-cat-card[data-style="side"] .tx-cat-card__media { flex: none; aspect-ratio: 16/11; min-height: 0; }
  .tx-cat-card[data-style="bg"] .tx-cat-card__link { min-height: 320px; }
}

/* ============================================================
   PROCESO en 3 pasos
   ============================================================ */
.tx-cat-process {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--quartz-pure);
  position: relative;
}
.tx-cat-process::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: var(--gold-soft);
}
.tx-cat-process__head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.tx-cat-process__head .eyebrow { color: var(--gold); }
.tx-cat-process__head h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  color: var(--teal);
  letter-spacing: -0.012em;
  font-weight: 400;
  margin: 0;
  max-width: 700px;
}
.tx-cat-process__head h2 em { font-style: italic; color: var(--gold); }

.tx-cat-process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.tx-cat-process__step {
  position: relative;
  padding-top: clamp(72px, 9vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tx-cat-process__num {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.9;
  color: var(--gold);
  font-weight: 400;
}
.tx-cat-process__num::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-top: 14px;
}
.tx-cat-process__step h3 {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--teal);
  letter-spacing: -0.005em;
  margin: 0;
}
.tx-cat-process__step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   FINAL CTA mejorado (override of .tp-final on category pages)
   ============================================================ */
.tx-cat-final {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--teal);
  color: var(--quartz);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tx-cat-final::before {
  content: ""; position: absolute;
  top: 50%; left: 50%;
  width: 70%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  pointer-events: none;
}
.tx-cat-final__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.tx-cat-final__eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tx-cat-final__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}
.tx-cat-final h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  color: var(--quartz);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.tx-cat-final h2 em { font-style: italic; color: var(--gold-bright); }
.tx-cat-final p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: rgba(244, 239, 229, 0.78);
  max-width: 520px;
  margin: 0;
}
.tx-cat-final__bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  list-style: none;
  padding: clamp(8px, 1vw, 16px) 0;
  margin: 0;
}
.tx-cat-final__bullets li {
  font-size: 12.5px;
  color: rgba(244, 239, 229, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.tx-cat-final__bullets li::before {
  content: "✓";
  color: var(--gold-bright);
  font-weight: 500;
}
.tx-cat-final__cta { margin-top: 6px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .tx-cat-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; }
  .tx-cat-list__head { grid-template-columns: 1fr; gap: 16px; }
  .tx-cat-list__sublead { border-left: none; padding-left: 0; padding-top: 12px; border-top: 1px solid var(--gold-soft); align-self: start; }
}
@media (max-width: 900px) {
  .tx-cat-hero { padding-top: clamp(96px, 12vh, 120px); padding-bottom: clamp(40px, 6vw, 64px); }
  .tx-cat-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .tx-cat-hero__media { aspect-ratio: 16 / 11; max-height: 460px; }
  .tx-cat-feat__link { grid-template-columns: 1fr; gap: 24px; }
  .tx-cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .tx-cat-card,
  .tx-cat-card[data-span] { grid-column: 1 / -1; }
  .tx-cat-process__steps { grid-template-columns: 1fr; gap: 36px; }
  .tx-cat-process__step { padding-top: 56px; }
  .tx-cat-process__num { font-size: 56px; }
}
@media (max-width: 600px) {
  .tx-cat-hero__title { font-size: clamp(36px, 11vw, 56px); }
  .tx-cat-hero__stats { gap: 16px; }
  .tx-cat-hero__stats span { font-size: 24px; }
  .tx-cat-feat__title { font-size: clamp(24px, 7vw, 32px); }
  .tx-cat-quote blockquote { font-size: 22px; }
}

/* ============================================================
   PERFORMANCE · Desactivar motion permanente en mobile +
   prefers-reduced-motion para reducir trabajo CPU/GPU
   ============================================================ */
@media (max-width: 900px) {
  /* En mobile: desactivar animaciones decorativas permanentes (sin afectar transitions útiles) */
  .preloader__circle,
  .philosophy__badge,
  .contact__blob,
  .hero__bg-orb,
  .particles,
  .ambient,
  .whatsapp-fab__pulse,
  .whatsapp-fab__pulse--2 { animation: none !important; }
  /* Reducir radial backgrounds caros */
  .hero::before,
  .why__bg-decor,
  .credentials-band::before,
  .services::before,
  .td-process::before,
  .td-faq::before,
  .contact__bg-decor,
  .tx-cat-hero::before,
  .td-solves::before { display: none !important; }
  /* Eliminar backdrop-filter caro en mobile (causa heavy compositing) */
  .nav.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 42, 45, 0.96); }
  .mobile-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 42, 45, 0.96); }
}

/* Universal: prefers-reduced-motion respeta usuarios con sensibilidad al movimiento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track,
  .reviews__track { animation: none !important; }
}

/* Hide preloader CSS (kept for back-compat, never rendered) */
.preloader { display: none !important; }
