/* =========================================================
   Dr. Bryan Cobeña — tema oscuro azul noche + dorado
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --line: rgba(0, 0, 0, .09);
  --line-2: rgba(184, 137, 63, .35);
  --text: #333;
  --muted: #777;
  --heading: #0b0b0b;
  --gold: #d2aa67;
  --gold-2: #ecd3a0;
  --gold-deep: #a97b36;
  --gold-grad: linear-gradient(135deg, #ecd09b 0%, #d2aa67 45%, #a97b36 100%);
  --wa: #22c55e;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --logo: "Cormorant Garamond", Georgia, serif;
  --body: "Poppins", system-ui, -apple-system, sans-serif;

  --header-h: 88px;
  --radius: 20px;
  --shadow: 0 30px 60px -34px rgba(42, 35, 32, .35);
}

/* Bloques oscuros de acento (ficha del doctor, teleconsulta, pie, menú) */
.tele-mock, .site-footer, .menu-overlay, .bk-head, .doctor, .treatments, .clinic {
  --bg: #0b0b0b; --bg-2: #111; --surface: #161616; --surface-2: #1e1e1e;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(210, 170, 103, .32);
  --text: #e9e6e1; --muted: #a3a09b; --heading: #fff; --gold-deep: #d2aa67;
  color: var(--text);
}
.doctor, .treatments, .clinic { background: #0b0b0b !important; border-color: rgba(255, 255, 255, .06) !important; }
.treatments { background: #111 !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open, body.bk-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--heading); line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 20px; }
h2 em, h1 em { font-style: normal; color: var(--gold-deep); }
.label { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold-grad); z-index: 90; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 30px; border-radius: 999px; overflow: hidden; white-space: nowrap;
  font-family: var(--body); font-weight: 500; font-size: 14px; letter-spacing: .4px;
  transition: transform .3s, box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold-grad); color: #1b1408; box-shadow: 0 14px 30px -14px rgba(210, 170, 103, .8); }
.btn-gold:hover { box-shadow: 0 18px 40px -14px rgba(210, 170, 103, .95); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--line-2); color: var(--gold-deep); background: transparent; }
.btn-outline:hover { border-color: var(--gold); background: rgba(210, 170, 103, .1); }
.btn-wa { background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; box-shadow: 0 14px 30px -14px rgba(22, 163, 74, .8); }
.btn-wa svg { width: 20px; height: 20px; }
.hero-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: gap .3s, color .3s; }
.hero-link:hover { gap: 18px; color: var(--gold); }
.hero-link svg { width: 24px; height: 16px; }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .35s, box-shadow .35s, transform .35s; }
.site-header.fixed { background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
body.scroll-down .site-header.fixed { transform: translateY(-100%); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-deep); line-height: 1; }
.logo-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--logo); font-size: 18px; font-weight: 600; letter-spacing: .04em; color: var(--gold-deep); flex: none; }
.logo-text { display: flex; flex-direction: column; }
.logo .logo-top { font-family: var(--body); font-size: 10px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.logo strong { font-family: var(--logo); font-weight: 600; font-size: 25px; letter-spacing: .06em; color: var(--heading); white-space: nowrap; }

.main-nav { display: flex; gap: 6px; }
.main-nav a { position: relative; padding: 10px 14px; font-size: 14px; font-weight: 400; color: var(--muted); transition: color .3s; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--heading); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { padding: 11px 24px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-deep); font-size: 14px; font-weight: 500; transition: background .3s, color .3s; }
.header-cta:hover { background: var(--gold-grad); color: #1b1408; border-color: transparent; }
.menu-btn { display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); color: var(--heading); }
.menu-btn svg { width: 22px; height: 16px; stroke-width: 1.4; }

/* ---------- Menú pantalla completa ---------- */
.menu-overlay { position: fixed; inset: 0; z-index: 80; background: #0b0b0b; color: #fff; display: flex; flex-direction: column; overflow-y: auto; opacity: 0; transition: opacity .4s; }
.menu-overlay.open { opacity: 1; }
.menu-top { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.close-btn { justify-self: start; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.close-btn svg { width: 22px; height: 22px; }
.menu-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; }
.menu-links { display: grid; gap: 16px; }
.menu-links a { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); color: #fff; line-height: 1.15; transition: color .3s, padding .3s; }
.menu-links a:hover { color: var(--gold); padding-left: 8px; }
.menu-info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.menu-info .label { margin-bottom: 8px; font-size: 10.5px; }
.menu-info .label::before { display: none; }
.menu-info p, .menu-info a { color: rgba(255, 255, 255, .85); font-size: 15px; overflow-wrap: anywhere; }
.menu-info a:hover { color: var(--gold); }
.menu-cta { grid-column: 1 / -1; }

/* ---------- Hero: foto de fondo + reserva rápida ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; background: #0b0b0b; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 0 34%; z-index: -2; background: var(--hero-img) 50% 16% / cover no-repeat; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #080808 0%, #080808 33%, rgba(8, 8, 8, .55) 46%, rgba(8, 8, 8, .08) 72%, rgba(8, 8, 8, 0) 100%),
    linear-gradient(0deg, rgba(8, 8, 8, .75) 0%, rgba(8, 8, 8, 0) 38%); }
.hero-inner { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 40px) 0 34px; min-height: inherit; width: min(1200px, 100% - 40px); }
.hero-text { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 720px; padding-bottom: 40px; }
.hero .label { color: var(--gold); animation: fadeUp .9s ease both; }
.hero h1 { color: #fff; font-size: clamp(40px, 4.9vw, 70px); line-height: 1.04; margin-bottom: 22px; animation: fadeUp .9s .1s ease both; }
.hero h1 em { color: var(--gold); }
.hero-lead { max-width: 470px; font-size: 18px; color: rgba(255, 255, 255, .78); animation: fadeUp .9s .2s ease both; }

.hero-book {
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 14px; align-items: end;
  padding: 18px 18px 18px 22px; border-radius: 24px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  animation: fadeUp .9s .35s ease both;
}
.hb-field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin-bottom: 8px; }
.hb-control { position: relative; display: flex; align-items: center; }
.hb-control::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid #0b0b0b; border-bottom: 1.6px solid #0b0b0b; transform: rotate(45deg); pointer-events: none; }
.hb-control select { width: 100%; height: 52px; padding: 0 40px 0 16px; border-radius: 14px; border: 1px solid transparent; background: #fff; color: #0b0b0b; font: inherit; font-size: 15px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.hb-control select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 170, 103, .35); }
.hb-control--date svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--gold-deep); pointer-events: none; }
.hb-control--date select { padding-left: 42px; }
.hb-submit { height: 52px; padding: 0 30px; border-radius: 14px; }
.hero-book.shake { animation: shake .4s ease; }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Cabecera flotante en píldora */
.site-header { padding-top: 14px; }
.site-header .header-row { height: 70px; padding: 0 12px 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .7); }
.site-header.fixed { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.site-header.fixed .header-row { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .05); }
.header-cta { background: #0b0b0b; color: #fff; border-color: #0b0b0b; }
.header-cta:hover { background: var(--gold-grad); color: #0b0b0b; border-color: transparent; }

/* ---------- Preguntas frecuentes ---------- */
.faq { padding: 120px 0; background: var(--bg); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-intro > p:not(.label) { color: var(--muted); margin-bottom: 30px; max-width: 380px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: block; padding: 22px 56px 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 20px; color: var(--heading); line-height: 1.35; transition: color .3s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--gold-deep), var(--gold-deep)) center / 12px 1.5px no-repeat, linear-gradient(var(--gold-deep), var(--gold-deep)) center / 1.5px 12px no-repeat; transition: transform .3s, background-color .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: rgba(210, 170, 103, .12); }
.faq-list summary:hover { color: var(--gold-deep); }
.faq-list details p { padding: 0 56px 24px 0; color: var(--muted); font-size: 15px; animation: fadeUp .35s ease both; }

/* ---------- Áreas de atención: acordeón interactivo ---------- */
.space { padding: 120px 0; background: #fff; }
.space-head { max-width: 780px; margin: 0 auto 52px; text-align: center; }
.space-head .label { justify-content: center; }
.space-head .label::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.space-head > p:not(.label) { color: var(--muted); font-size: 16.5px; }
.area-cards { display: flex; gap: 14px; height: 520px; }
.acard { position: relative; flex: 1 1 0; min-width: 0; border-radius: 24px; overflow: hidden; background: #0b0b0b; color: #fff; isolation: isolate; cursor: pointer; outline: none;
  transition: flex-grow .7s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .6); }
.acard.is-active { flex-grow: 2.6; cursor: default; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75); }
.acard:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.acard-img, .acard-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .7s, opacity 1.2s; filter: saturate(.7) brightness(.85); }
.acard.is-active .acard-img, .acard.is-active .acard-slides img { filter: saturate(1) brightness(1); transform: scale(1.03); }
.acard-slides img { opacity: 0; object-position: center 30%; }
.acard-slides img.is-on { opacity: 1; }
.acard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 8, .15) 0%, rgba(8, 8, 8, 0) 30%, rgba(8, 8, 8, .6) 62%, rgba(8, 8, 8, .94) 100%); }
.acard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(210, 170, 103, 0); transition: border-color .5s; z-index: 3; pointer-events: none; }
.acard.is-active::before { border-color: rgba(210, 170, 103, .6); }
.acard-num { position: absolute; top: 18px; left: 18px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(8, 8, 8, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--serif); font-size: 14px; }
.acard.is-active .acard-num { background: var(--gold-grad); color: #0b0b0b; border-color: transparent; }
.acard-badge { position: absolute; top: 22px; right: 18px; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #0b0b0b; background: var(--gold-grad); }
.acard-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 24px 24px; }
.acard h3 { color: #fff; font-size: 23px; line-height: 1.15; white-space: nowrap; }
.acard.is-active h3 { font-size: clamp(26px, 2.3vw, 34px); white-space: normal; }
.acard-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.acard-more > * { min-height: 0; }
.acard-more { overflow: hidden; }
.acard.is-active .acard-more { grid-template-rows: 1fr; opacity: 1; transition-delay: .15s; }
.acard-more-inner { overflow: hidden; }
.acard-text { margin: 10px 0 16px; max-width: 440px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.acard-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.acard-chips a { display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s, border-color .3s, color .3s; }
.acard-chips a:hover { background: var(--gold-grad); color: #0b0b0b; border-color: transparent; }
.acard-go { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.acard-go svg { width: 16px; height: 16px; transition: transform .3s; }
.acard-go:hover svg { transform: translateX(5px); }

/* Teleconsulta: el doctor en una videollamada */
.acard--tele { background: radial-gradient(90% 70% at 50% 30%, #2a2a2a, #0b0b0b); }
.acard-call { position: absolute; z-index: -1; left: 50%; top: 42%; width: 74%; max-width: 300px; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.acard--tele.is-active .acard-call { transform: translate(-50%, -54%) scale(1.04); }
.acard-call img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.call-live { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); font-size: 11px; }
.call-live b { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: pulseDot 1.6s ease-in-out infinite; }
.call-time { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: 11px; font-variant-numeric: tabular-nums; }
.call-bar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.call-bar i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.call-bar i.end { background: #d4553f; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- El doctor ---------- */
.doctor { padding: 130px 0; }
.doctor-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.doc-photo-wrap { position: relative; margin: 0 22px 22px 0; }
.doc-photo-wrap::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid rgba(210, 170, 103, .55); border-radius: 26px; z-index: 0; }
.doc-photo-img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 26px; filter: saturate(.9); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.doc-badge { position: absolute; z-index: 2; left: 24px; bottom: 24px; display: flex; flex-direction: column; padding: 14px 20px; border-radius: 16px; background: rgba(11, 11, 11, .72); border: 1px solid rgba(210, 170, 103, .35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); line-height: 1.35; }
.doc-badge strong { font-family: var(--serif); font-weight: 500; font-size: 19px; color: #fff; }
.doc-badge span { font-size: 12px; color: var(--gold-2); letter-spacing: .3px; }

.doctor-text h2 { margin-bottom: 26px; }
.doc-quote { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; color: var(--gold); margin: 0 0 22px; padding-left: 20px; border-left: 2px solid var(--gold); }
.doctor-text > p:not(.label) { color: var(--muted); margin-bottom: 32px; max-width: 540px; }
.doc-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 36px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .09); }
.doc-creds li { display: flex; align-items: center; gap: 14px; padding: 18px 18px; background: #0b0b0b; }
.dc-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(210, 170, 103, .35); color: var(--gold); flex: none; }
.dc-icon svg { width: 20px; height: 20px; stroke-width: 1.4; }
.doc-creds small { display: block; font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.doc-creds strong { display: block; font-weight: 400; font-size: 14.5px; color: #fff; line-height: 1.35; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Teleconsulta ---------- */
.tele { padding: 120px 0; background: var(--bg); }
.tele-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.tele-text > p:not(.label) { color: var(--muted); margin-bottom: 26px; }
.checks { display: grid; gap: 12px; margin-bottom: 36px; }
.checks li { position: relative; padding-left: 34px; font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-grad); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 1.6px solid #1b1408; border-bottom: 1.6px solid #1b1408; transform: rotate(-45deg); }

.tele-mock { border-radius: 24px; background: #161616; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px; font-size: 12px; }
.tm-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; }
.tm-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--gold-grad); color: #1b1408; font-family: var(--logo); font-weight: 600; font-size: 13px; }
.tm-title { font-weight: 500; color: #fff; }
.tm-tabs { margin-left: auto; display: flex; gap: 6px; }
.tm-tabs i { font-style: normal; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.tm-tabs i.on { background: var(--gold); color: #1b1408; border-color: var(--gold); }
.tm-body { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; }
.tm-video { position: relative; min-height: 320px; border-radius: 18px; overflow: hidden; background: radial-gradient(70% 60% at 50% 45%, #2b2b2b, #141414); }
.tm-live { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.tm-live b { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); }
.tm-timer { position: absolute; top: 42px; left: 14px; padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-weight: 600; color: #fff; display: flex; flex-direction: column; line-height: 1.2; }
.tm-timer small { font-weight: 300; font-size: 10px; color: var(--muted); }
.tm-avatar-big { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); animation: talk 2.4s ease-in-out infinite; }
.tm-avatar-big i { font-style: normal; font-family: var(--logo); font-weight: 600; font-size: 38px; letter-spacing: .06em; color: var(--gold); }
.tm-self { position: absolute; top: 14px; right: 14px; width: 72px; height: 94px; border-radius: 12px; background: #262626; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.tm-self svg { width: 30px; height: 30px; stroke-width: 1.4; }
.tm-who { position: absolute; left: 14px; bottom: 62px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); display: flex; flex-direction: column; line-height: 1.3; }
.tm-who strong { font-weight: 500; color: #fff; }
.tm-who small { color: var(--muted); font-size: 10px; }
.tm-controls { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.tm-controls i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.tm-controls i svg { width: 14px; height: 14px; }
.tm-controls i.end { width: auto; padding: 0 12px; border-radius: 999px; background: #d4553f; font-style: normal; font-size: 11px; }
.tm-chat { border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tm-chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.tm-chat-head strong { display: block; font-weight: 500; color: #fff; }
.tm-chat-head small { color: #22c55e; font-size: 10px; }
.tm-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); }
.msg { max-width: 88%; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); line-height: 1.45; font-size: 11px; color: var(--text); }
.msg.me { align-self: flex-end; background: rgba(210, 170, 103, .2); }
.msg-sys { text-align: center; font-size: 10px; color: var(--muted); }
.tm-input { margin-top: auto; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@keyframes talk { 0%, 100% { box-shadow: 0 0 0 8px rgba(210, 170, 103, .12), 0 0 0 18px rgba(210, 170, 103, .06); } 50% { box-shadow: 0 0 0 12px rgba(210, 170, 103, .18), 0 0 0 26px rgba(210, 170, 103, .05); } }

/* ---------- Tratamientos: todos los servicios ---------- */
.treatments { position: relative; padding: 130px 0; overflow: hidden; }
.treatments::before { content: ""; position: absolute; width: 760px; height: 760px; left: -260px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 170, 103, .16), transparent 65%); pointer-events: none; }
.treatments::after { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 170, 103, .12), transparent 65%); pointer-events: none; }
.treatments .container { position: relative; z-index: 1; }
.tr-head { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.tr-head .label { justify-content: center; }
.tr-head .label::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.tr-head h2 { margin-bottom: 14px; }
.tr-lead { color: var(--muted); font-size: 16px; }
.tr-filters { display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 6px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tr-filters::-webkit-scrollbar { display: none; }
.tr-filters button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 11px 20px; border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, .7); transition: color .3s, background .3s; }
.tr-filters button span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 11.5px; }
.tr-filters button:hover { color: #fff; }
.tr-filters button[aria-selected="true"] { background: var(--gold-grad); color: #0b0b0b; font-weight: 500; box-shadow: 0 10px 24px -12px rgba(210, 170, 103, .9); }
.tr-filters button[aria-selected="true"] span { background: rgba(0, 0, 0, .12); }

.tr-grid-all { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 22px; transition: transform .45s cubic-bezier(.2, .7, .2, 1), border-color .4s, box-shadow .4s, opacity .4s; transform-style: preserve-3d; }
.tcard.is-hidden { display: none; }
.tcard.is-flash { animation: flashCard 1.6s ease; }
.tcard-media { position: relative; margin: -22px -22px 18px; height: 150px; overflow: hidden; border-radius: 22px 22px 0 0; }
.tcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 11, 11, .55)); }
.tcard:hover .tcard-media img { transform: scale(1.07); }
.tcard-real { position: absolute; z-index: 1; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: #0b0b0b; background: var(--gold-grad); }
.tcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tcard-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--gold); background: rgba(210, 170, 103, .1); border: 1px solid rgba(210, 170, 103, .3); }
.tcard-icon svg { width: 22px; height: 22px; stroke-width: 1.4; }
.tcard--photo .tcard-top { margin-top: -42px; position: relative; z-index: 2; }
.tcard--photo .tcard-icon { background: rgba(11, 11, 11, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tcard-cat { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.tcard--photo .tcard-cat { color: rgba(255, 255, 255, .8); }
.tcard h3 { font-size: 20px; line-height: 1.2; margin-bottom: 4px; }
.tcard-alias { font-size: 12.5px; color: var(--gold); margin-bottom: 10px; }
.tcard-desc { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .62); flex: 1; margin-bottom: 18px; }
.tcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tcard-tag { font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.tcard-book { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--gold-2); border: 1px solid rgba(210, 170, 103, .35); transition: background .3s, color .3s, border-color .3s; }
.tcard-book svg { width: 14px; height: 14px; transition: transform .3s; }
.tcard-book:hover { background: var(--gold-grad); color: #0b0b0b; border-color: transparent; }
.tcard-book:hover svg { transform: translateX(3px); }
.tr-note { margin-top: 36px; text-align: center; color: var(--muted); }
.link-gold { color: var(--gold); border-bottom: 1px solid rgba(210, 170, 103, .5); padding-bottom: 1px; }
@keyframes flashCard { 0%, 100% { box-shadow: 0 0 0 0 rgba(210, 170, 103, 0); } 30% { box-shadow: 0 0 0 3px rgba(210, 170, 103, .9), 0 0 40px rgba(210, 170, 103, .35); } }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .06) 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 24px 50px -30px rgba(0, 0, 0, .8);
}
.glass::before { /* brillo que sigue al cursor */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(236, 211, 160, .2), transparent 60%);
}
.glass::after { /* borde luminoso */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgba(236, 211, 160, .75), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.glass:hover::before, .glass:hover::after { opacity: 1; }
.tcard.glass:hover { border-color: rgba(210, 170, 103, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 40px 70px -36px rgba(0, 0, 0, .9); }

/* Cabecera en vidrio */
.site-header .header-row { background: rgba(255, 255, 255, .72); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); border: 1px solid rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 40px -24px rgba(0, 0, 0, .55); }

/* Destello dorado que sigue al cursor en secciones negras */
.glow-follow { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 0; top: 0; transform: translate(var(--gx, -999px), var(--gy, -999px)); background: radial-gradient(circle, rgba(210, 170, 103, .13), transparent 65%); pointer-events: none; z-index: 0; transition: opacity .4s; }

/* Brillo animado en las palabras doradas del título */
.hero h1 em { background: linear-gradient(100deg, #b8893f 0%, #ecd3a0 30%, #d2aa67 50%, #f3e0b8 62%, #b8893f 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldShine 6s ease-in-out infinite; }
@keyframes goldShine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* Aparición con desenfoque */
.js .reveal { filter: blur(8px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s ease; }
.js .reveal.in { filter: none; }

/* Logo, avatares */
.logo-mark { border: 0 !important; width: 46px; height: 46px; color: var(--gold-deep); }
.logo-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.site-footer .logo-mark, .menu-overlay .logo-mark { color: var(--gold); }
.bk-doc__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); box-shadow: 0 0 0 3px rgba(210, 170, 103, .18); flex: none; }
.tm-avatar-big { overflow: hidden; }
.tm-avatar-big img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tm-avatar { object-fit: cover; }

/* ---------- Casos médicos ---------- */
.cases { padding: 120px 0; background: var(--bg); }
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 36px; }
.cases-head h2 { margin-bottom: 12px; }
.cases-lead { max-width: 480px; font-size: 15px; color: var(--muted); }
.cases-arrows { display: flex; gap: 10px; flex: none; }
.cases-arrows button { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold-deep); background: #fff; transition: background .3s, color .3s; }
.cases-arrows button:hover { background: var(--gold-grad); color: #1b1408; border-color: transparent; }
.cases-arrows svg { width: 20px; height: 20px; }
.cases-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.cases-track::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -40px rgba(42, 35, 32, .45); transition: border-color .3s; }
.case:hover { border-color: var(--line-2); }
.case-img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 4.4; overflow: hidden; background: #0a0f16; cursor: zoom-in; }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .7s ease; }
.case:hover .case-img img { transform: scale(1.05); }
.case-zoom { position: absolute; right: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 11, 11, .72); border: 1px solid var(--line-2); font-size: 11.5px; color: var(--gold-2); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.case:hover .case-zoom { opacity: 1; transform: none; }
.case-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.case-tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.case-body h3 { font-size: 24px; margin-bottom: 6px; }
.case-body p { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 18px; }
.case-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--gold-deep); transition: background .3s, color .3s; }
.case-link svg { width: 15px; height: 15px; }
.case-link:hover { background: var(--gold-grad); color: #1b1408; border-color: transparent; }

/* ---------- La consulta ---------- */
.clinic { padding: 120px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.clinic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.clinic-grid > div > p:not(.label) { color: var(--muted); margin-bottom: 32px; max-width: 480px; }
.steps { border-top: 1px solid var(--line); }
.steps li { display: flex; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li > span { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--gold-deep); width: 56px; flex: none; }
.steps h3 { font-size: 23px; margin-bottom: 6px; }
.steps p { font-size: 14px; color: var(--muted); }

/* ---------- Mapa ---------- */
.map { position: relative; height: 340px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.15) contrast(.95); }
.map-pill { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; background: var(--gold-grad); color: #1b1408; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); }
.map-pill svg { width: 16px; height: 16px; }

/* ---------- Pie ---------- */
.site-footer { background: #050505; color: #fff; overflow: hidden; border-top: 1px solid var(--line); }
.glow-wordmark { position: relative; display: grid; padding: 40px 0 22px; user-select: none; --mx: 50%; --my: 0%; }
.glow-wordmark span { grid-area: 1 / 1; display: block; width: 100%; text-align: center; white-space: nowrap; font-family: var(--logo); font-weight: 600; line-height: .9; letter-spacing: .04em; font-size: clamp(3rem, 12.2vw, 12rem); }
.gw-base { color: rgba(210, 170, 103, .07); }
.gw-glow { color: transparent; pointer-events: none; background-image: radial-gradient(480px circle at var(--mx) var(--my), rgba(236, 211, 160, .95), rgba(210, 170, 103, .25) 35%, transparent 65%); -webkit-background-clip: text; background-clip: text; }
.footer-main { border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr) 1fr; gap: 40px; }
.logo--foot { margin-bottom: 18px; }
.logo--foot .logo-top { font-size: 10px; }
.logo--foot strong { font-size: 24px; white-space: normal; }
.f-tag { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.f-wa { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: #fff; margin-bottom: 18px; }
.f-wa svg { color: var(--wa); width: 18px; height: 18px; }
.f-wa:hover { color: var(--gold); }
.f-contacts { display: grid; gap: 12px; margin-bottom: 22px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.f-contacts span { display: block; font-size: 11px; color: rgba(255, 255, 255, .4); }
.f-contacts a { overflow-wrap: anywhere; }
.f-contacts a:hover { color: var(--gold); }
.f-social { display: flex; gap: 10px; }
.f-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: #fff; transition: border-color .3s, color .3s; }
.f-social a:hover { border-color: var(--gold); color: var(--gold); }
.f-social svg { width: 18px; height: 18px; }
.f-col h2 { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.f-col ul { display: grid; gap: 12px; }
.f-col a { font-size: 13.5px; color: rgba(255, 255, 255, .55); transition: color .3s; }
.f-col a:hover { color: var(--gold); }
.f-actions { display: grid; gap: 10px; }
.f-btn { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; color: #fff !important; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: border-color .3s; }
.f-btn:hover { border-color: var(--gold); }
.f-btn svg { width: 17px; height: 17px; color: var(--gold); }
.f-btn:first-child svg { color: var(--wa); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: rgba(255, 255, 255, .45); }
.footer-bottom a { color: rgba(255, 255, 255, .75); border-bottom: 1px solid var(--line-2); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- WhatsApp flotante y dock ---------- */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; box-shadow: 0 16px 30px -10px rgba(22, 163, 74, .6); transition: transform .3s; }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 30px; height: 30px; stroke: none; }
.wa .fill { fill: currentColor; }
body.bk-open .wa, body.menu-open .wa { opacity: 0; pointer-events: none; }
.dock { display: none; }

/* ---------- Agenda: asistente en 3 pasos (claro, para leer cómodo) ---------- */
dialog { border: 0; padding: 0; color: #1f1a18; }
dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.booking { --ink: #111; --soft: #6f6f6f; --edge: #e6e1d9; --cream: #f7f3ed; margin: auto; width: min(620px, calc(100% - 32px)); max-height: min(780px, calc(100dvh - 32px)); border-radius: 26px; background: #fff; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.booking[open] { display: flex; animation: popIn .35s cubic-bezier(.2, .8, .2, 1) both; }
.booking__form { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: #0b0b0b; color: #fff; }
.bk-doc { display: flex; align-items: center; gap: 12px; }
.bk-doc__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-family: var(--logo); font-weight: 600; font-size: 17px; flex: none; }
.bk-doc__name { font-family: var(--serif); font-size: 18px; color: #fff; line-height: 1.2; }
.bk-doc__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bk-doc__meta b { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.booking__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: #fff; flex: none; transition: background .3s; }
.booking__close:hover { background: rgba(255, 255, 255, .08); }
.booking__close svg { width: 18px; height: 18px; }
.bk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 22px 0; }
.bk-steps li { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; font-size: 12px; color: #a9b0ba; border-bottom: 2px solid #eee9e2; transition: color .3s, border-color .3s; }
.bk-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; flex: none; }
.bk-steps li.is-on { color: var(--ink); border-color: var(--gold); }
.bk-steps li.is-done { color: var(--gold-deep); border-color: var(--gold); }
.bk-steps li.is-done span { background: var(--gold); border-color: var(--gold); color: #fff; }
.booking.is-finished .bk-steps { display: none; }
.bk-body { flex: 1; overflow-y: auto; padding: 22px; color: var(--ink); }
.bk-step { animation: stepIn .35s ease both; }
.bk-title { font-family: var(--serif); font-size: 26px; color: var(--ink); margin-bottom: 6px; }
.bk-sub { font-size: 14px; color: var(--soft); margin-bottom: 18px; }
.bk-label { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--soft); margin: 18px 0 10px; }
.bk-step[data-step="2"] .bk-label:first-of-type { margin-top: 0; }
.bk-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.bk-cats::-webkit-scrollbar { display: none; }
.bk-cats button { flex: none; padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--soft); border: 1px solid var(--edge); transition: all .25s; }
.bk-cats button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bk-services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--edge); background: #fff; text-align: left; color: var(--ink); transition: border-color .25s, background .25s, box-shadow .25s; }
.svc:hover { border-color: var(--gold); }
.svc .ci { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--cream); color: var(--gold-deep); flex: none; }
.svc .ci svg { width: 19px; height: 19px; }
.svc strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.svc small { display: block; font-size: 12px; color: var(--soft); line-height: 1.3; }
.svc[aria-checked="true"] { border-color: var(--gold); background: #fbf7f0; box-shadow: 0 0 0 3px rgba(210, 170, 103, .22); }
.svc[aria-checked="true"] .ci { background: var(--gold-grad); color: #1b1408; }
.svc--wide { grid-column: 1 / -1; background: var(--cream); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day, .time { border: 1px solid var(--edge); background: #fff; border-radius: 14px; color: var(--ink); transition: background .25s, border-color .25s, color .25s; }
.day { flex: none; width: 70px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.day small { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); }
.day strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.day em { font-style: normal; font-size: 11px; color: var(--soft); }
.day:hover, .time:hover { border-color: var(--gold); }
.day[aria-checked="true"], .time[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-checked="true"] small, .day[aria-checked="true"] em { color: rgba(255, 255, 255, .75); }
.times__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time { padding: 12px 0; font-size: 14px; }
.bk-summary { display: grid; gap: 2px; padding: 16px 18px; margin-bottom: 20px; border-radius: 16px; background: var(--cream); }
.bk-summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.bk-summary span { color: var(--soft); }
.bk-summary strong { font-weight: 500; text-align: right; }
.bk-summary button { justify-self: start; margin-top: 6px; font-size: 12.5px; color: var(--gold-deep); border-bottom: 1px solid currentColor; }
.field { border: 0; min-width: 0; margin-bottom: 18px; }
.field > label, .field > legend { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.field small { font-weight: 300; color: var(--soft); }
.field input[type="text"], .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--edge); background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 170, 103, .22); }
.segmented { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--cream); }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented span { display: block; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; color: var(--soft); transition: background .25s, color .25s; }
.segmented input:checked + span { background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-policy { font-size: 12.5px; color: var(--soft); }
.booking__error { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #fbeaea; color: #9b2c2c; font-size: 13.5px; font-weight: 500; }
.bk-done { text-align: center; padding: 20px 0 10px; }
.bk-check { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; box-shadow: 0 18px 36px -14px rgba(22, 163, 74, .6); animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.bk-check svg { width: 40px; height: 40px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck .5s .25s ease forwards; }
.bk-done .bk-sub { max-width: 380px; margin-inline: auto; }
.bk-done .btn { margin: 6px auto 14px; }
.bk-link { display: block; margin: 0 auto; font-size: 13px; color: var(--soft); border-bottom: 1px solid var(--edge); }
.bk-foot { display: flex; align-items: center; gap: 14px; padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #eee9e2; background: #fff; color: var(--ink); }
.bk-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); padding: 10px 4px; }
.bk-back svg { width: 16px; height: 16px; }
.bk-mini { flex: 1; min-width: 0; font-size: 12.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-foot .btn { padding: 14px 24px; font-size: 14px; flex: none; }
.bk-next, .bk-send { margin-left: auto; }
.bk-foot .btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.booking.is-finished .bk-foot { display: none; }

/* ---------- Visor ---------- */
.lightbox { margin: auto; background: transparent; max-width: min(92vw, 520px); overflow: visible; }
.lightbox[open] { animation: popIn .25s ease both; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-height: 82dvh; width: auto; margin: 0 auto; border-radius: 16px; }
.lightbox figcaption { margin-top: 12px; text-align: center; color: #fff; font-family: var(--serif); font-size: 20px; }
.lightbox__close { position: absolute; top: -10px; right: -10px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-grad); color: #1b1408; }
.lightbox__close svg { width: 20px; height: 20px; }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-height: 760px) and (min-width: 901px) {
  :root { --header-h: 76px; }
}

@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 1140px) {
  .main-nav a { padding: 10px 10px; font-size: 13.5px; }
  .main-nav a::after { left: 10px; right: 10px; }
}

@media (max-width: 940px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
}

@media (max-width: 1024px) {
  .cases-head { flex-direction: column; align-items: flex-start; }
  .doctor-grid, .tele-grid, .clinic-grid, .faq-grid { grid-template-columns: 1fr; gap: 50px; }
  .area-cards { height: 460px; }
  .faq-intro { position: static; }
  .doc-photo-wrap { max-width: 460px; width: calc(100% - 22px); }
  .doctor-grid { gap: 60px; }
  .cases-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
}

@media (max-width: 760px) {
  :root { --header-h: 70px; }
  body { padding-bottom: 70px; }
  .logo-mark { width: 38px; height: 38px; font-size: 15px; }
  .logo strong { font-size: 21px; }
  .logo .logo-top { font-size: 9px; letter-spacing: 3px; }
  .header-cta { display: none; }
  .menu-top { grid-template-columns: auto 1fr; }
  .menu-top > span { display: none; }
  .menu-top .logo { justify-self: end; }
  .menu-body { grid-template-columns: 1fr; padding-top: 10px; }
  .menu-info { grid-template-columns: 1fr; }


  .space, .doctor, .tele, .treatments, .cases, .clinic, .faq { padding: 80px 0; }
  .doc-photo-wrap { margin: 0 14px 14px 0; width: calc(100% - 14px); }
  .doc-photo-wrap::before { inset: 14px -14px -14px 14px; }
  .doc-badge { left: 14px; bottom: 14px; padding: 10px 14px; }
  .doc-badge strong { font-size: 16px; }
  .doc-creds { grid-template-columns: 1fr; }
  .doc-creds li { padding: 14px 16px; }
  .doc-actions .btn { flex: 1 1 100%; }
  .space-head { margin-bottom: 34px; }
  .area-cards { flex-direction: column; height: auto; gap: 12px; }
  .acard, .acard.is-active { flex: none; height: 400px; }
  .acard .acard-more { grid-template-rows: 1fr; opacity: 1; }
  .acard h3, .acard.is-active h3 { font-size: 26px; white-space: normal; }
  .acard .acard-img, .acard .acard-slides img { filter: none; }
  .faq-list summary { font-size: 17px; padding: 18px 48px 18px 0; }
  .faq-list details p { padding-right: 0; font-size: 14.5px; }
  .btn { width: 100%; }
  .tm-body { grid-template-columns: 1fr; }
  .tm-video { min-height: 240px; }
  .tm-chat, .tm-tabs { display: none; }
  .cases-track { grid-auto-columns: 82%; gap: 14px; }
  .steps li { gap: 18px; }
  .steps li > span { font-size: 30px; width: 44px; }
  .map { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .f-col:last-child { grid-column: 1 / -1; }
  .f-actions { grid-template-columns: repeat(3, 1fr); }
  .f-btn { flex-direction: column; gap: 6px; padding: 12px 8px; font-size: 12px; text-align: center; }
  .footer-bottom { flex-direction: column; margin-top: 34px; }
  .wa { display: none; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .dock a, .dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; font-size: 11px; color: var(--text); }
  .dock svg { width: 21px; height: 21px; color: var(--gold-deep); }
  .dock .dock-cta { background: var(--gold-grad); color: #1b1408; }
  .dock .dock-cta svg { color: #1b1408; }
  body.bk-open .dock, body.menu-open .dock { display: none; }

  .hero-link, .tr-wa, .f-wa, .f-contacts a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .f-wa { margin-bottom: 8px; }
  .logo--foot { min-height: 44px; }
  .menu-top .logo { flex-direction: row; text-align: left; }
  .menu-top .logo-top { margin: 0 0 5px; }
  .booking { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .bk-services { grid-template-columns: 1fr; }
  .bk-steps li { font-size: 11px; }
  .bk-mini { display: none; }
  .bk-foot { justify-content: space-between; }
  .bk-foot .btn { width: auto; padding: 14px 20px; }
}

/* ---------- Hero responsive ---------- */
@media (max-width: 900px) {
  .hero-book { grid-template-columns: 1fr 1fr; }
  .hb-submit { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 760px) {
  .site-header { padding-top: 10px; }
  .site-header .header-row { height: 60px; width: calc(100% - 20px); padding: 0 8px 0 12px; }
  .hero { min-height: 0; }
  .hero-bg { inset: 0 0 auto 0; height: 560px; background-position: 58% 10%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .hero::before { background: linear-gradient(180deg, rgba(8, 8, 8, .35) 0%, rgba(8, 8, 8, .1) 22%, rgba(8, 8, 8, .7) 48%, #080808 66%, #080808 100%); }
  .hero-inner { padding: calc(var(--header-h) + 250px) 0 26px; }
  .hero-text { padding-bottom: 26px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 15.5px; }
  .hero-book { grid-template-columns: 1fr; padding: 16px; gap: 12px; border-radius: 20px; }
  .hb-control select { height: 50px; }
}

/* WhatsApp flotante oculto mientras se ve la portada (ya tiene la barra de reserva) */
body.in-hero .wa { opacity: 0; transform: scale(.8); pointer-events: none; }
.wa { transition: transform .3s, opacity .3s; }

/* ---------- Tratamientos responsive ---------- */
@media (max-width: 1180px) { .tr-grid-all { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .tr-grid-all { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .treatments { padding: 80px 0; }
  .tr-filters { justify-content: flex-start; width: auto; margin-inline: -20px; border-radius: 0; border-left: 0; border-right: 0; padding: 6px 20px; }
  .tr-grid-all { grid-template-columns: 1fr; gap: 12px; }
  .tcard { padding: 18px; }
  .tcard-media { margin: -18px -18px 16px; height: 170px; }
  .tcard--photo .tcard-top { margin-top: -40px; }
  .glow-follow { display: none; }
}
@media (hover: none) { .glass::before, .glass::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1 em { animation: none; } .js .reveal { filter: none; } }

/* =========================================================
   Cabecera: barra recta de vidrio (liquid glass) a todo el ancho
   ========================================================= */
.site-header { padding-top: 0 !important; background: rgba(12, 12, 12, .46) !important; backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 18px 40px -28px rgba(0, 0, 0, .7) !important; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(210, 170, 103, .7) 30%, rgba(236, 211, 160, .9) 50%, rgba(210, 170, 103, .7) 70%, transparent); opacity: .55; }
.site-header.fixed { background: rgba(12, 12, 12, .62) !important; }
.site-header .header-row, .site-header.fixed .header-row { height: var(--header-h); padding: 0; border-radius: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: min(1200px, 100% - 40px); }
.site-header .logo strong { color: #fff; }
.site-header .logo .logo-top { color: rgba(255, 255, 255, .55); }
.site-header .logo-mark { color: var(--gold); }
.site-header .main-nav a { color: rgba(255, 255, 255, .72); }
.site-header .main-nav a:hover, .site-header .main-nav a.is-active { color: #fff; }
.site-header .header-cta { background: var(--gold-grad); color: #0b0b0b; border-color: transparent; }
.site-header .header-cta:hover { filter: brightness(1.06); }
.site-header .menu-btn { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }

/* La foto de portada empieza debajo de la barra: no tapa la cara */
.hero-bg { top: var(--header-h) !important; }
@media (max-width: 760px) {
  .site-header .header-row, .site-header.fixed .header-row { width: calc(100% - 32px); height: var(--header-h); }
  .hero-bg { top: var(--header-h) !important; height: 540px !important; background-position: 50% 6% !important; }
  .hero-inner { padding-top: calc(var(--header-h) + 270px) !important; }
}

/* =========================================================
   Portada: el doctor completo (cara, estetoscopio y bata con su nombre)
   ========================================================= */
.hero-bg {
  top: var(--header-h) !important; left: 44% !important; right: 0 !important; bottom: 0 !important; height: auto !important;
  background-size: auto 118% !important; background-position: 50% 0 !important; transform: none !important; animation: heroIn 1.2s ease both !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 88%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 88%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%); mask-composite: intersect;
}
.hero::before { background: linear-gradient(90deg, #080808 0%, #080808 40%, rgba(8, 8, 8, .35) 56%, rgba(8, 8, 8, 0) 70%) !important; }
.hero-inner { display: grid !important; grid-template-columns: minmax(0, 560px); align-content: center; gap: 30px; padding-bottom: 50px !important; }
.hero-text { padding-bottom: 0 !important; }
.hero h1 { font-size: clamp(38px, 4.4vw, 64px) !important; }
.hero-book { grid-template-columns: 1fr 1fr !important; padding: 16px !important; gap: 12px !important; }
.hero-book .hb-submit { grid-column: 1 / -1; width: 100%; }
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 1200px) { .hero-bg { left: 48% !important; } }
@media (max-width: 900px) and (min-width: 761px) {
  .hero-bg { left: 40% !important; background-size: auto 112% !important; }
  .hero-inner { grid-template-columns: minmax(0, 470px); }
}
@media (max-width: 760px) {
  .hero-bg { left: 0 !important; right: 0 !important; bottom: auto !important; height: 470px !important; background-size: cover !important; background-position: 50% 0 !important;
    -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%); mask-image: linear-gradient(180deg, #000 76%, transparent 100%); }
  .hero::before { background: linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, rgba(8, 8, 8, 0) 55%, rgba(8, 8, 8, .85) 72%, #080808 82%) !important; }
  .hero-inner { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 420px) !important; gap: 24px; }
  .hero-book { grid-template-columns: 1fr !important; }
}

/* Ajuste final: foto completa con su proporción real y texto a la izquierda */
@media (min-width: 761px) {
  .hero-bg {
    left: auto !important; right: max(2%, calc((100% - 1200px) / 2)) !important; top: var(--header-h) !important; bottom: 0 !important;
    width: auto !important; height: auto !important; aspect-ratio: 4 / 5;
    background-size: cover !important; background-position: 50% 0 !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 86%, transparent 100%), linear-gradient(180deg, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 86%, transparent 100%), linear-gradient(180deg, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero::before { background: radial-gradient(60% 70% at 78% 50%, rgba(8, 8, 8, 0), rgba(8, 8, 8, .55) 70%), linear-gradient(90deg, #080808 0%, #080808 35%, rgba(8, 8, 8, .2) 60%, rgba(8, 8, 8, 0) 75%) !important; }
  .hero-inner { justify-content: start !important; grid-template-columns: minmax(0, min(560px, 56%)) !important; }
}

/* =========================================================
   Portada v4: foto grande a sangre (como la primera) con el doctor centrado
   ========================================================= */
@media (min-width: 761px) {
  .hero-bg {
    left: 30% !important; right: 0 !important; top: var(--header-h) !important; bottom: 0 !important;
    width: auto !important; height: auto !important; aspect-ratio: auto !important; transform: none !important;
    background: radial-gradient(70% 80% at 50% 32%, #706e72 0%, #4a494c 45%, #232224 78%, #121212 100%) !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(180deg, #000 80%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(180deg, #000 80%, transparent 100%) !important;
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero-bg::before {
    content: ""; position: absolute; top: 0; left: 50%; height: 112%; aspect-ratio: 4 / 5; transform: translateX(-50%);
    background: var(--hero-img) 50% 0 / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }
  .hero::before { background: linear-gradient(90deg, #080808 0%, #080808 30%, rgba(8, 8, 8, .55) 46%, rgba(8, 8, 8, 0) 62%) !important; }
}
@media (min-width: 1100px) { .hero-inner { grid-template-columns: minmax(0, min(640px, 54%)) !important; } }

/* Tratamientos: todas las fotos con el mismo tratamiento de color (cálido, sobrio, dorado) */
.tcard-media { height: 170px; background: #141414; }
.tcard-media img { filter: saturate(.62) contrast(1.06) brightness(.86) sepia(.16); transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.tcard:hover .tcard-media img { filter: saturate(.9) contrast(1.04) brightness(.95) sepia(.06); }
.tcard-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(135deg, rgba(210, 170, 103, .18), transparent 55%); mix-blend-mode: soft-light; }
.tcard-media::after { z-index: 1; background: linear-gradient(180deg, rgba(11, 11, 11, .05) 30%, rgba(11, 11, 11, .78)) !important; }
.tcard-real, .tcard-ref { z-index: 2; }
.tcard-ref { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .8); background: rgba(11, 11, 11, .45); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 760px) { .tcard-media { height: 180px; } }

/* =========================================================
   Footer estilo AutomatIA: tarjetas de acción, wordmark dentro del contenedor, columnas compactas
   ========================================================= */
.site-footer { background: #0b0b0b; border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 100%); height: 420px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 60% at 50% 30%, rgba(210, 170, 103, .14), transparent 70%); }
.f-cta { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 90px 0 70px; }
.f-cta-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 34px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.f-cta-label { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); }
.f-cta-card h2 { font-family: var(--serif, "Playfair Display", serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); color: #fff; line-height: 1.15; }
.f-cta-card p { color: rgba(255, 255, 255, .6); font-size: 14.5px; max-width: 420px; margin-bottom: 10px; }
.f-cta-btn { margin-top: auto; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 500 15px var(--body); color: #fff; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03); cursor: pointer; transition: background .3s, border-color .3s, transform .3s; }
.f-cta-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.f-cta-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.f-cta-btn--solid { background: #fff; color: #0b0b0b; border-color: #fff; }
.f-cta-btn--solid:hover { background: #f3ead8; border-color: #f3ead8; }

.glow-wordmark { padding: 10px 0 34px; }
.glow-wordmark span { font-family: var(--logo); font-weight: 600; letter-spacing: .02em; font-size: clamp(2.2rem, 7.6vw, 7.4rem); line-height: 1; }
.gw-base { color: rgba(255, 255, 255, .07); }
.gw-glow { background-image: radial-gradient(520px circle at var(--mx) var(--my), #fff, rgba(236, 211, 160, .75) 25%, rgba(210, 170, 103, .2) 50%, transparent 70%); }

.footer-main { border-top: 1px solid rgba(255, 255, 255, .08); padding: 56px 0 28px; }
.footer-grid { grid-template-columns: 1.55fr 1fr 1fr 1fr 1fr 0.9fr; gap: 32px; }
.logo--foot strong { font-size: 22px; }
.f-tag { font-size: 13.5px; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.f-contacts { gap: 10px; font-size: 13px; }
.f-contacts span { font-size: 11px; }
.f-social a { border-radius: 50%; width: 40px; height: 40px; border-color: rgba(255, 255, 255, .14); }
.f-col h2 { font-size: 12px; letter-spacing: 1.2px; color: #fff; margin-bottom: 20px; }
.f-col ul { gap: 13px; }
.f-col li { line-height: 1.35; }
.f-col a { font-size: 14px; color: rgba(255, 255, 255, .55); }
.f-col a:hover { color: #fff; }
.f-actions { gap: 10px; }
.f-btn { justify-content: center; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; background: #ececec; color: #111 !important; border: 0; transition: background .3s, transform .3s; }
.f-btn:hover { background: #fff; transform: translateY(-1px); }
.f-btn svg { color: #111 !important; }
.f-btn:first-child svg { color: #128c4a !important; }
.footer-bottom { margin-top: 44px; border-top-color: rgba(255, 255, 255, .08); align-items: center; }
.fb-note { flex: 1; text-align: center; }
@media (max-width: 1100px) { .fb-note { flex-basis: 100%; order: 3; text-align: left; } }
@media (max-width: 760px) {
  .f-cta { grid-template-columns: 1fr; gap: 14px; padding: 64px 0 40px; }
  .f-cta-card { padding: 24px; }
  .glow-wordmark span { font-size: 10.4vw; }
  .f-btn { flex-direction: row; font-size: 13px; padding: 12px 8px; }
}
/* Wordmark a todo el ancho de la pantalla, sin espacios vacíos a los lados */
.gw-wrap { width: 100%; padding: 0 clamp(10px, 1.4vw, 24px); }
.glow-wordmark span { font-size: calc((100vw - clamp(20px, 2.8vw, 48px)) / 9.7) !important; letter-spacing: .015em; }

/* =========================================================
   Páginas internas: portada de página + tarjetas de contacto
   ========================================================= */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: #080808; color: #fff; padding: calc(var(--header-h) + 90px) 0 90px; min-height: 520px; display: flex; align-items: center; }
.page-hero-bg { position: absolute; top: var(--header-h); right: 0; bottom: 0; left: 38%; z-index: -2; background: var(--ph-img) var(--ph-pos, 50% 30%) / cover no-repeat;
  filter: saturate(.7) contrast(1.05) brightness(.8) sepia(.12); animation: heroIn 1.2s ease both;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 75%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 75%, transparent 100%); mask-composite: intersect; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 15% 50%, rgba(210, 170, 103, .12), transparent 70%), linear-gradient(90deg, #080808 0%, rgba(8, 8, 8, .85) 40%, rgba(8, 8, 8, .2) 75%); }
.page-hero-inner { position: relative; max-width: 1200px; }
.page-hero-inner > * { max-width: 640px; animation: fadeUp .9s ease both; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 26px; }
.crumbs a { color: rgba(255, 255, 255, .7); transition: color .3s; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: #fff; }
.page-hero .label { color: var(--gold); }
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.04; color: #fff; margin-bottom: 20px; }
.page-hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { color: rgba(255, 255, 255, .72); font-size: 17px; max-width: 520px; margin-bottom: 32px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ph-ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; color: #fff; font-weight: 500; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .3s, transform .3s; }
.ph-ghost:hover { border-color: var(--gold); transform: translateY(-1px); }
.ph-ghost svg { width: 18px; height: 18px; fill: none; stroke: var(--wa); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-cards { padding: 80px 0 20px; background: var(--bg); }
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cc-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 22px; background: #0e0e0e; color: #fff; border: 1px solid rgba(255, 255, 255, .08); transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .4s, box-shadow .4s; }
.cc-card:hover { transform: translateY(-4px); border-color: rgba(210, 170, 103, .5); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); }
.cc-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; color: var(--gold); background: rgba(210, 170, 103, .1); border: 1px solid rgba(210, 170, 103, .25); }
.cc-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cc-ic--wa { color: var(--wa); background: rgba(37, 211, 102, .08); border-color: rgba(37, 211, 102, .25); }
.cc-k { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.cc-card strong { font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.cc-v { font-size: 13px; color: rgba(255, 255, 255, .55); }
@media (max-width: 1000px) { .cc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .page-hero { min-height: 0; padding: calc(var(--header-h) + 230px) 0 56px; align-items: flex-end; }
  .page-hero-bg { left: 0; height: 340px; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .page-hero::before { background: linear-gradient(180deg, rgba(8, 8, 8, .1) 0%, rgba(8, 8, 8, .35) 40%, #080808 70%); }
  .page-hero h1 { font-size: 40px; }
  .page-hero .lead { font-size: 15.5px; }
  .ph-actions > * { flex: 1 1 100%; justify-content: center; }
  .cc-grid { grid-template-columns: 1fr; }
  .contact-cards { padding: 56px 0 10px; }
}

/* Cabecera: vidrio casi opaco para que nada se vea por detrás al hacer scroll */
.site-header, .site-header.fixed { background: linear-gradient(180deg, rgba(16, 16, 16, .94), rgba(10, 10, 10, .9)) !important; backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%); }
/* Portada de página con la foto del doctor: estudio gris y el doctor completo, centrado */
.page-hero--doc { min-height: 600px; }
.page-hero--doc .page-hero-bg { left: 36%; filter: none; background: radial-gradient(70% 85% at 50% 30%, #706e72 0%, #4a494c 45%, #232224 78%, #121212 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(180deg, #000 82%, transparent 100%); }
.page-hero--doc .page-hero-bg::before { content: ""; position: absolute; top: 0; left: 50%; height: 118%; aspect-ratio: 4 / 5; transform: translateX(-50%); background: var(--ph-img) 50% 0 / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%); }
.page-hero--doc::before { background: linear-gradient(90deg, #080808 0%, #080808 30%, rgba(8, 8, 8, .55) 46%, rgba(8, 8, 8, 0) 64%); }
@media (max-width: 760px) {
  .page-hero--doc { min-height: 0; padding-top: calc(var(--header-h) + 300px); }
  .page-hero--doc .page-hero-bg { left: 0; height: 400px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .page-hero--doc .page-hero-bg::before { height: 100%; }
  .page-hero--doc::before { background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(8, 8, 8, .8) 62%, #080808 76%); }
}
/* Footer: columnas responsivas (restablece los cortes después del rediseño) */
@media (max-width: 1180px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .tcard-book { min-height: 44px; }
}

/* =========================================================
   Agenda v2: dos columnas (doctor + "Tu cita" en vivo) y tratamientos con foto
   ========================================================= */
.bk-aside { display: none; }
.svc { position: relative; }
.svc .thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; background: #141414; }
.svc .thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.62) contrast(1.06) brightness(.9) sepia(.16); transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.svc:hover .thumb img { transform: scale(1.08); filter: saturate(.85) brightness(.95) sepia(.06); }
.svc-txt { min-width: 0; flex: 1; }
.svc-check { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-grad); color: #1b1408; opacity: 0; transform: scale(.5); transition: opacity .25s, transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.svc-check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.svc[aria-checked="true"] .svc-check { opacity: 1; transform: scale(1); }
.svc:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .35); }
.bk-services .svc { animation: stepIn .35s ease both; }
.bk-services .svc:nth-child(2) { animation-delay: .03s; } .bk-services .svc:nth-child(3) { animation-delay: .06s; }
.bk-services .svc:nth-child(4) { animation-delay: .09s; } .bk-services .svc:nth-child(5) { animation-delay: .12s; }
.bk-services .svc:nth-child(n+6) { animation-delay: .15s; }

@media (min-width: 900px) {
  .booking { width: min(1060px, calc(100% - 48px)); height: min(740px, calc(100dvh - 48px)); max-height: none; border-radius: 28px; }
  .booking[open] { display: flex; }
  .booking__form { flex: 1; min-width: 0; max-height: none; height: 100%; }

  .bk-aside { position: relative; display: flex; flex-direction: column; width: 372px; flex: none; overflow: hidden; color: #fff;
    background: radial-gradient(120% 60% at 50% 0%, #3a393c 0%, #161616 55%, #0b0b0b 100%); }
  .bk-aside::after { content: ""; position: absolute; inset: auto -40% -30% -40%; height: 60%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(210, 170, 103, .16), transparent 70%); }
  .bk-aside-photo { height: 300px; flex: none; background: url('/assets/img/dr-bryan-cobena.jpg') 50% 8% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .bk-aside-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: 0 26px 24px; margin-top: -54px; min-height: 0; }
  .bk-aside-k { font-size: 10.5px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold); }
  .bk-aside-name { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 4px 0 2px; }
  .bk-aside-role { font-size: 12px; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
  .bk-ticket { display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .bk-ticket-title { font-size: 10.5px; letter-spacing: 2.2px; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 6px; }
  .bk-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
  .bk-row:first-of-type { border-top: 0; }
  .bk-row-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; color: rgba(255, 255, 255, .4); border: 1px dashed rgba(255, 255, 255, .2); transition: all .35s; }
  .bk-row-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .bk-row small { display: block; font-size: 10.5px; letter-spacing: .6px; color: rgba(255, 255, 255, .45); }
  .bk-row strong { display: block; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .4); line-height: 1.3; transition: color .35s; }
  .bk-row.is-set .bk-row-ic { color: #1b1408; background: var(--gold-grad); border: 1px solid transparent; }
  .bk-row.is-set strong { color: #fff; }
  .bk-row.is-pop strong { animation: stepIn .4s ease both; }
  .bk-row.is-pop .bk-row-ic { animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
  .bk-trust { margin-top: auto; padding-top: 16px; display: grid; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .55); }
  .bk-trust li { display: flex; align-items: center; gap: 8px; }
  .bk-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

  /* Cabecera de la columna derecha: solo el botón cerrar */
  .bk-head { position: absolute; top: 14px; right: 14px; z-index: 3; padding: 0; background: transparent; }
  .bk-head .bk-doc { display: none; }
  .booking__close { color: var(--ink); border-color: var(--edge); background: #fff; }
  .booking__close:hover { background: var(--cream); }
  .bk-steps { padding: 26px 76px 0 32px; }
  .bk-body { padding: 26px 32px; }
  .bk-title { font-size: 30px; }
  .bk-foot { padding: 16px 32px 18px; }
  .bk-services { gap: 10px; }
  .svc { padding: 10px 12px 10px 10px; min-height: 74px; }
  .times__row { grid-template-columns: repeat(5, 1fr); }
  .bk-mini { display: none; }
}
@media (min-width: 900px) {
  .times__row { grid-template-columns: repeat(4, 1fr); }
  .booking.is-finished .bk-body { display: flex; flex-direction: column; justify-content: center; }
  .days { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
}

/* =========================================================
   El doctor: galería de trayectoria (solo el Dr. Cobeña)
   ========================================================= */
.doc-gallery { margin-top: 110px; }
.dg-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 30px; margin-bottom: 30px; }
.dg-head .label { margin-bottom: 0; color: var(--gold); }
.dg-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); color: #fff; }
.dg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dg-card { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; background: #1a1a1b; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .4s; }
.dg-card:hover { transform: translateY(-6px); border-color: rgba(210, 170, 103, .45); }
.dg-card button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.dg-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.dg-card:hover img { transform: scale(1.05); }
.dg-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, rgba(8, 8, 8, .85) 100%); }
.dg-zoom { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff;
  background: rgba(11, 11, 11, .4); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.dg-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dg-card:hover .dg-zoom, .dg-card button:focus-visible .dg-zoom { opacity: 1; transform: scale(1); }
.dg-card figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; pointer-events: none;
  background: rgba(14, 14, 14, .45); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.dg-card figcaption span { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.dg-card figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 19px; color: #fff; line-height: 1.2; }
.dg-card figcaption small { font-size: 12px; color: rgba(255, 255, 255, .65); line-height: 1.4; }
@media (max-width: 900px) { .dg-grid { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 0 20px 8px; gap: 14px; }
  .dg-grid::-webkit-scrollbar { display: none; } .dg-card { scroll-snap-align: center; } .doc-gallery { margin-top: 70px; } }
@media (max-width: 760px) { .dg-grid { grid-template-columns: repeat(3, 80%); } }
/* Leyenda debajo de la foto: nada tapa al doctor */
.dg-card { aspect-ratio: auto; display: flex; flex-direction: column; background: #121212; }
.dg-card button { position: relative; aspect-ratio: 4 / 5; height: auto; overflow: hidden; background: #1a1a1b; }
.dg-card::after { display: none; }
.dg-card figcaption { position: static; border: 0; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 16px 20px 20px; }
.dg-card--fit button::before { content: ""; position: absolute; inset: -30px; background: var(--dg-bg) center / cover; filter: blur(24px) brightness(.5) saturate(1.1); }
.dg-card--fit img { position: relative; object-fit: contain; object-position: 50% 50%; }

/* =========================================================
   Optimización celular
   ========================================================= */
.f-toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: default; text-align: left; }
.f-toggle svg { display: none; }
@media (max-width: 760px) {
  /* Tratamientos: tarjetas compactas con la foto como miniatura */
  .tr-grid-all { gap: 10px; }
  .tcard { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 14px; padding: 12px; border-radius: 18px; }
  .tcard-media { grid-column: 1; grid-row: 1 / span 4; margin: 0 !important; width: 92px; height: 100% !important; min-height: 112px; border-radius: 14px; align-self: stretch; }
  .tcard-media::after { background: linear-gradient(180deg, transparent 50%, rgba(11, 11, 11, .45)) !important; }
  .tcard-ref { display: none; }
  .tcard-real { left: 6px; top: 6px; padding: 2px 7px; font-size: 8.5px; letter-spacing: .6px; }
  .tcard-top, .tcard--photo .tcard-top { grid-column: 2; margin: 2px 0 4px !important; }
  .tcard-icon { display: none; }
  .tcard-cat { font-size: 9.5px; }
  .tcard h3 { grid-column: 2; font-size: 17px; margin-bottom: 2px; }
  .tcard-alias { grid-column: 2; font-size: 12px; margin-bottom: 8px; }
  .tcard-desc { display: none; }
  .tcard-foot { grid-column: 2; align-self: end; padding-top: 0; border-top: 0; }
  .tcard-tag { display: none; }
  .tcard-book { margin-left: auto; min-height: 40px; padding: 8px 16px; background: rgba(210, 170, 103, .1); }

  /* Áreas: carrusel deslizable */
  .area-cards { flex-direction: row !important; height: auto !important; gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .area-cards::-webkit-scrollbar { display: none; }
  .acard, .acard.is-active { flex: 0 0 84% !important; height: 470px !important; scroll-snap-align: center; }

  /* Footer: columnas plegables */
  .footer-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .f-brand { margin-bottom: 26px; }
  .f-col { border-top: 1px solid rgba(255, 255, 255, .08); }
  .f-col h2 { margin: 0; }
  .f-toggle { width: 100%; justify-content: space-between; min-height: 56px; cursor: pointer; }
  .f-toggle svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s; }
  .f-col--fold ul { display: none; padding-bottom: 18px; }
  .f-col--fold.is-open ul { display: grid; animation: stepIn .3s ease both; }
  .f-col--fold.is-open .f-toggle svg { transform: rotate(180deg); }
  .f-col:last-child { padding-top: 18px; }
  .f-col:last-child h2 { margin-bottom: 14px; }
  .f-col:last-child .f-toggle { min-height: 0; cursor: default; }
  .f-col:last-child .f-toggle svg { display: none; }
  .f-actions { grid-template-columns: repeat(3, 1fr); }
  .f-col li a { display: inline-flex; align-items: center; min-height: 40px; }
  .f-col ul { gap: 0; }
}
@media (max-width: 760px) {
  .f-btn { flex-direction: column; gap: 6px; padding: 12px 6px; font-size: 12.5px; text-align: center; }
  .f-col:last-child h2 { font-size: 12px; letter-spacing: 1.2px; }
}

/* Áreas en celular: foto arriba, texto abajo (nada tapa la imagen) + puntos de paginación */
.area-dots { display: none; }
@media (max-width: 760px) {
  .space { padding-bottom: 56px; }
  .space-head { margin-bottom: 26px; }
  .area-cards { align-items: stretch; padding-bottom: 4px; }
  .acard, .acard.is-active { height: auto !important; display: flex; flex-direction: column; background: #0e0e0e; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .55); }
  .acard.is-active::before { border-color: rgba(210, 170, 103, .35); }
  .acard-slides, .acard-img { position: relative !important; inset: auto !important; flex: none; width: 100%; height: 250px !important; z-index: 0 !important; }
  .acard-slides img { position: absolute; inset: 0; z-index: 0; }
  .acard-img, .acard-slides img { filter: saturate(.85) brightness(.95) !important; transform: none !important; }
  .acard::after { inset: 0 0 auto 0; height: 250px; z-index: 1; background: linear-gradient(180deg, rgba(14, 14, 14, .25) 0%, rgba(14, 14, 14, 0) 30%, rgba(14, 14, 14, 0) 62%, #0e0e0e 100%); }
  .acard-num, .acard-badge { z-index: 2; }
  .acard-num { top: 14px; left: 14px; width: 36px; height: 36px; font-size: 13px; }
  .acard-badge { top: 18px; right: 14px; font-size: 10px; padding: 5px 10px; }
  .acard--tele .acard-call { position: relative; z-index: 0; left: auto; top: auto; transform: none !important; flex: none; width: 168px; max-width: none; margin: 30px auto 6px; }
  .acard-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; padding: 4px 20px 22px; margin-top: -26px; }
  .acard h3, .acard.is-active h3 { font-size: 25px; }
  .acard-more { flex: 1; }
  .acard .acard-more { display: flex; flex-direction: column; overflow: visible; }
  .acard-text { margin: 8px 0 14px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
  .acard-chips { gap: 6px; margin-bottom: 16px; }
  .acard-chips a { padding: 6px 11px; font-size: 12px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
  .acard-go { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); width: 100%; min-height: 44px; }
  .area-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .area-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; background: rgba(11, 11, 11, .18); transition: width .35s cubic-bezier(.2, .8, .2, 1), background .35s; position: relative; }
  .area-dots button::after { content: ""; position: absolute; inset: -14px -6px; }
  .area-dots button[aria-current="true"] { width: 26px; background: var(--gold-grad); }
}
@media (max-width: 760px) {
  .acard--tele .acard-call { width: 150px; margin: 26px auto 18px; }
  .acard--tele::after { display: none; }
  .acard--tele .acard-body { margin-top: 0; padding-top: 6px; }
  .area-dots button::after { inset: -18px -8px; }
  .space { padding-bottom: 44px; }
}

/* =========================================================
   Tablet (761–1024): ajustes propios
   ========================================================= */
@media (min-width: 901px) and (max-width: 1024px) {
  .doctor-grid { grid-template-columns: .85fr 1.15fr !important; gap: 48px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .doc-photo-wrap { margin: 0 auto 22px !important; }
  .doctor-text { max-width: 640px; margin-inline: auto; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  /* Portada: columna de texto más ancha para que la agenda no corte el texto */
  .hero-inner { grid-template-columns: minmax(0, min(600px, 68%)) !important; }
  .hero-book select { font-size: 14px; padding-right: 30px; }

  /* Áreas: carrusel de dos tarjetas con foto arriba (táctil, sin títulos cortados) */
  .area-cards { flex-direction: row !important; height: auto !important; gap: 16px !important; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 6px; scrollbar-width: none; align-items: stretch; }
  .area-cards::-webkit-scrollbar { display: none; }
  .acard, .acard.is-active { flex: 0 0 calc(50% - 8px) !important; height: auto !important; display: flex; flex-direction: column; scroll-snap-align: start; background: #0e0e0e; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .55); }
  .acard-slides, .acard-img { position: relative !important; inset: auto !important; flex: none; width: 100%; height: 280px !important; z-index: 0 !important; }
  .acard-slides img { position: absolute; inset: 0; z-index: 0; }
  .acard-img, .acard-slides img { filter: saturate(.85) brightness(.95) !important; transform: none !important; }
  .acard::after { inset: 0 0 auto 0; height: 280px; z-index: 1; background: linear-gradient(180deg, rgba(14, 14, 14, .25) 0%, rgba(14, 14, 14, 0) 30%, rgba(14, 14, 14, 0) 62%, #0e0e0e 100%); }
  .acard-num, .acard-badge { z-index: 2; }
  .acard--tele::after { display: none; }
  .acard--tele .acard-call { position: relative; z-index: 0; left: auto; top: auto; transform: none !important; flex: none; width: 170px; max-width: none; margin: 30px auto 18px; }
  .acard-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; padding: 4px 22px 22px; margin-top: -26px; }
  .acard--tele .acard-body { margin-top: 0; padding-top: 6px; }
  .acard h3, .acard.is-active h3 { font-size: 26px; white-space: normal; }
  .acard .acard-more { display: flex; flex-direction: column; overflow: visible; grid-template-rows: 1fr; opacity: 1; flex: 1; }
  .acard-text { margin: 8px 0 14px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
  .acard-chips { gap: 6px; margin-bottom: 16px; }
  .acard-chips a { padding: 7px 12px; font-size: 12.5px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
  .acard-go { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); width: 100%; min-height: 44px; }
  .area-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
  .area-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; background: rgba(11, 11, 11, .18); transition: width .35s cubic-bezier(.2, .8, .2, 1), background .35s; position: relative; }
  .area-dots button::after { content: ""; position: absolute; inset: -18px -8px; }
  .area-dots button[aria-current="true"] { width: 26px; background: var(--gold-grad); }
}

/* Pantallas táctiles: enlaces con área de toque cómoda */
@media (pointer: coarse) {
  .acard-go, .f-wa { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Tablet vertical: portada apilada (foto arriba, texto abajo) para que nada tape la cara */
@media (min-width: 761px) and (max-width: 900px) and (orientation: portrait) {
  .hero { min-height: 0 !important; }
  .hero-bg { left: 0 !important; right: 0 !important; bottom: auto !important; height: 620px !important;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%) !important; mask-image: linear-gradient(180deg, #000 70%, transparent 100%) !important; }
  .hero-bg::before { height: 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, rgba(8, 8, 8, 0) 50%, rgba(8, 8, 8, .85) 68%, #080808 78%) !important; }
  .hero-inner { grid-template-columns: minmax(0, 620px) !important; padding-top: calc(var(--header-h) + 520px) !important; padding-bottom: 60px !important; }
}

/* Trayectoria: línea de tiempo (sin fotos) */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: linear-gradient(90deg, rgba(210, 170, 103, .15), rgba(210, 170, 103, .7) 50%, rgba(210, 170, 103, .15)); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; color: var(--gold); background: #0b0b0b; border: 1px solid rgba(210, 170, 103, .45); box-shadow: 0 0 0 6px #0b0b0b; transition: transform .4s cubic-bezier(.2, 1.4, .4, 1), background .4s, color .4s; }
.tl-dot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.timeline li:hover .tl-dot { transform: scale(1.08); }
.timeline li.is-now .tl-dot { background: var(--gold-grad); color: #1b1408; border-color: transparent; box-shadow: 0 0 0 6px #0b0b0b, 0 0 0 7px rgba(210, 170, 103, .35), 0 12px 30px -10px rgba(210, 170, 103, .6); }
.tl-k { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.timeline strong { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; color: #fff; }
.timeline p { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .58); }
@media (max-width: 1024px) {
  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .timeline::before { left: 24px; right: auto; top: 24px; bottom: 24px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(210, 170, 103, .7), rgba(210, 170, 103, .15)); }
  .timeline li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; row-gap: 2px; padding: 0 0 26px; }
  .tl-dot { grid-row: 1 / span 3; margin: 0; }
  .timeline li:last-child { padding-bottom: 0; }
}

/* =========================================================
   Asistente virtual (chat)
   ========================================================= */
.chat-fab { padding: 0; background: #0b0b0b !important; border: 2px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 2px rgba(210, 170, 103, .85), 0 18px 36px -12px rgba(0, 0, 0, .55) !important; overflow: visible; cursor: pointer; }
.chat-fab-av { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.chat-fab-dot { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid #0b0b0b; }
.chat-fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(210, 170, 103, .6); animation: chatPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes chatPulse { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.chat-fab-bubble { position: absolute; right: calc(100% + 14px); bottom: 10px; white-space: nowrap; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #fff; color: #111; font-size: 13.5px; font-weight: 500; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .35s, transform .35s; }
.chat-fab.has-bubble .chat-fab-bubble { opacity: 1; transform: none; }
body.chat-open .chat-fab::after { display: none; }

.chat { position: fixed; right: 24px; bottom: 96px; z-index: 80; display: flex; flex-direction: column; width: 380px; height: min(600px, calc(100dvh - 130px)); border-radius: 24px; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, rgba(22, 22, 22, .97), rgba(12, 12, 12, .98)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.chat.open { opacity: 1; transform: none; }
.chat[hidden] { display: none !important; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(120% 140% at 0% 0%, rgba(210, 170, 103, .16), transparent 60%); }
.chat-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(210, 170, 103, .6); flex: none; }
.chat-id { flex: 1; min-width: 0; display: grid; }
.chat-id strong { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.2; }
.chat-id span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-id b { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.chat-wa, .chat-close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; color: #fff; border: 1px solid rgba(255, 255, 255, .14); transition: background .3s, border-color .3s; }
.chat-wa { color: #4ade80; }
.chat-wa:hover, .chat-close:hover { background: rgba(255, 255, 255, .08); }
.chat-wa svg, .chat-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; font-size: 14px; line-height: 1.5; border-radius: 18px; animation: stepIn .3s ease both; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-bottom-left-radius: 6px; color: rgba(255, 255, 255, .92); }
.msg--bot strong { color: #fff; font-weight: 600; }
.msg--me { align-self: flex-end; background: var(--gold-grad); color: #1b1408; border-bottom-right-radius: 6px; font-weight: 500; }
.msg--typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; background: rgba(255, 255, 255, .07); border-bottom-left-radius: 6px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: typing 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg-list { display: grid; gap: 8px; margin: 2px 0; }
.msg-list li { display: grid; padding-left: 12px; border-left: 2px solid rgba(210, 170, 103, .6); }
.msg-list strong { font-size: 13.5px; font-weight: 500; }
.msg-list span { font-size: 12px; color: rgba(255, 255, 255, .55); }
.msg-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 14px; border-radius: 999px; background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; font-weight: 600; font-size: 13px; }
.msg-wa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msg-link { color: var(--gold); border-bottom: 1px solid currentColor; }
.chat-quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 4px 16px 10px; max-height: 40%; overflow-y: auto; }
.chat-quick:empty { display: none; }
.chat-quick button { padding: 8px 14px; border-radius: 999px; font-size: 13px; color: #fff; border: 1px solid rgba(210, 170, 103, .45); background: rgba(210, 170, 103, .08); transition: background .25s, color .25s, border-color .25s; animation: stepIn .3s ease both; text-align: left; }
.chat-quick button:hover { background: var(--gold-grad); color: #1b1408; border-color: transparent; }
.chat-quick button.is-primary { background: var(--gold-grad); color: #1b1408; border-color: transparent; font-weight: 500; }
.chat-quick button.is-ghost { border-color: rgba(255, 255, 255, .16); background: transparent; color: rgba(255, 255, 255, .7); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; font: inherit; font-size: 16px; }
.chat-form input::placeholder { color: rgba(255, 255, 255, .4); }
.chat-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 170, 103, .2); }
.chat-form button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none; background: var(--gold-grad); color: #1b1408; }
.chat-form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-note { padding: 0 16px 12px; font-size: 10.5px; color: rgba(255, 255, 255, .38); text-align: center; }
body.bk-open .chat { display: none; }

@media (max-width: 760px) {
  .chat-fab { display: grid !important; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .chat-fab-bubble { display: none; }
  .chat { left: 0; right: 0; bottom: 0; width: auto; height: 86dvh; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); transform-origin: bottom center; transform: translateY(30px); }
  body.chat-open .dock { display: none; }
  body.chat-open .chat-fab { opacity: 0; pointer-events: none; }
}

/* Sello "Hecho por AutomatIA" en el pie: discreto, con un brillo suave */
.footer-bottom .aia-badge { border-bottom: 0; }
.aia-badge { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; overflow: hidden; isolation: isolate;
  color: rgba(255, 255, 255, .78) !important; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1) !important;
  transition: border-color .4s, background .4s, transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.aia-badge::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(249, 115, 22, .22), rgba(255, 255, 255, .12), transparent); transform: skewX(-18deg); animation: aiaSheen 7s ease-in-out 2s infinite; }
@keyframes aiaSheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.aia-mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #000; border: 1px solid rgba(255, 255, 255, .12); flex: none; transition: box-shadow .4s, border-color .4s; }
.aia-mark img { width: 15px; height: auto; }
.aia-mark::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(249, 115, 22, .55); opacity: 0; animation: aiaRing 7s ease-out 2s infinite; }
@keyframes aiaRing { 0%, 74% { opacity: 0; transform: scale(.85); } 82% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.aia-txt { display: grid; line-height: 1.15; text-align: left; }
.aia-txt small { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.aia-txt strong { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .2px; }
.aia-txt b { color: #f97316; font-weight: 700; }
.aia-arrow { width: 14px; height: 14px; fill: none; stroke: #f97316; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transform: translate(-2px, 2px); transition: transform .35s, opacity .35s; }
.aia-badge:hover, .aia-badge:focus-visible { border-color: rgba(249, 115, 22, .55) !important; background: rgba(249, 115, 22, .07); transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(249, 115, 22, .55); color: #fff !important; }
.aia-badge:hover .aia-mark { border-color: rgba(249, 115, 22, .7); box-shadow: 0 0 18px -2px rgba(249, 115, 22, .55); }
.aia-badge:hover .aia-arrow { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .aia-badge::before, .aia-mark::after { animation: none; } }
@media (max-width: 760px) { .footer-bottom .aia-badge { align-self: flex-start; min-height: 48px; } }
/* Espacio final para que el botón flotante del asistente no tape el pie */
.footer-main { padding-bottom: 104px !important; }
@media (max-width: 760px) { .footer-main { padding-bottom: 92px !important; } }

/* Portada: el doctor un poco más a la derecha (más aire junto a la barra de agendar) */
@media (min-width: 761px) { .hero-bg::before { left: 62%; } }
@media (min-width: 761px) and (max-width: 900px) and (orientation: portrait) { .hero-bg::before { left: 50%; } }

/* Áreas: el contenido oculto ya no ocupa espacio → todos los títulos alineados abajo */
.acard-more-inner { min-height: 0; overflow: hidden; }
.acard:not(.is-active) h3 { white-space: normal; }
@media (max-width: 1024px) {
  .acard .acard-more-inner { display: flex; flex-direction: column; flex: 1; overflow: visible; }
}

/* =========================================================
   Casos: comparador antes / después (primero el antes, luego el después)
   ========================================================= */
.ba { position: relative; width: 100%; aspect-ratio: 4 / 4.4; overflow: hidden; background: #0e0e0e; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ba-fit, 50% 50%); pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: linear-gradient(180deg, rgba(236, 211, 160, .2), #ecd3a0 20%, #d2aa67 80%, rgba(210, 170, 103, .2)); box-shadow: 0 0 14px rgba(210, 170, 103, .6); pointer-events: none; z-index: 2; }
.ba-knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--gold-grad); color: #1b1408; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .55), 0 0 0 4px rgba(255, 255, 255, .25); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.ba-knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba:hover .ba-knob, .ba.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(1.1); }
.ba-tag { position: absolute; top: 14px; z-index: 3; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; pointer-events: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .35s; }
.ba-tag--before { left: 14px; color: #fff; background: rgba(11, 11, 11, .55); border: 1px solid rgba(255, 255, 255, .2); }
.ba-tag--after { right: 14px; color: #1b1408; background: var(--gold-grad); }
.ba[data-side="before"] .ba-tag--after, .ba[data-side="after"] .ba-tag--before { opacity: 0; }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.ba-range::-moz-range-thumb { width: 48px; height: 100vh; border: 0; background: transparent; }
.ba-range:focus-visible ~ .ba-line .ba-knob, .ba:focus-within .ba-knob { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold); }
.case .ba-hint { display: none; }

/* Contacto: sección oscura continua y tarjetas con la misma estructura */
.contact-cards { background: #0b0b0b; padding: 36px 0 90px; border-top: 1px solid rgba(255, 255, 255, .05); }
.cc-grid { gap: 16px; align-items: stretch; }
.cc-card { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border-color: rgba(255, 255, 255, .09); padding: 26px 24px 20px; gap: 4px; }
.cc-ic { margin-bottom: 18px; }
.cc-card strong { font-size: 16px; line-height: 1.35; overflow-wrap: normal; word-break: normal; }
.cc-v { flex: 1; line-height: 1.5; margin-top: 2px; }
.cc-go { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
.cc-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.cc-card:hover .cc-go svg { transform: translateX(4px); }
.cc-card:nth-child(1) .cc-go { color: #4ade80; }
@media (max-width: 760px) { .contact-cards { padding: 24px 0 56px; } }

/* =========================================================
   Barra inferior en celular: pastilla de vidrio flotante + botón Agendar
   ========================================================= */
@media (max-width: 760px) {
  body { padding-bottom: 0; }
  .dock { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex !important; gap: 10px; align-items: stretch;
    background: none !important; border: 0 !important; padding: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; grid-template-columns: none; }
  .dock-pill { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 5px; border-radius: 999px;
    background: linear-gradient(180deg, rgba(236, 234, 230, .82), rgba(214, 211, 205, .78)); border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 14px 34px -14px rgba(0, 0, 0, .55);
    backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
  .dock-pill a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 999px;
    font-size: 11.5px; font-weight: 500; color: rgba(30, 30, 30, .62); transition: background .35s, color .35s, box-shadow .35s; -webkit-tap-highlight-color: transparent; }
  .dock-pill a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: inherit !important; }
  .dock-pill a.is-active { background: #fff; color: #111; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
  .dock-pill a:active { transform: scale(.97); }
  .dock .dock-cta { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 66px; border-radius: 999px;
    background: var(--gold-grad) !important; color: #1b1408 !important; font-size: 12px; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px -12px rgba(169, 123, 54, .8); }
  .dock .dock-cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor !important; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: inherit !important; }
  .dock .dock-cta:active { transform: scale(.97); }
  .chat-fab { bottom: calc(92px + env(safe-area-inset-bottom)) !important; right: 18px !important; }
  .footer-main { padding-bottom: 110px !important; }
}

/* Barra inferior: asistente integrado como cuarta opción */
.dock-chat { display: none; }
@media (max-width: 760px) {
  .chat-fab { display: none !important; }
  .dock { left: 10px; right: 10px; gap: 8px; }
  .dock-pill { grid-template-columns: 1.25fr 1fr 1fr .85fr; padding: 4px; }
  .dock-pill a, .dock-pill .dock-chat { min-height: 58px; font-size: 10.5px; gap: 3px; padding: 0 2px; letter-spacing: -.1px; white-space: nowrap; }
  .dock-pill .dock-chat { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 999px; font-weight: 500; color: rgba(30, 30, 30, .62); transition: background .35s, color .35s; -webkit-tap-highlight-color: transparent; }
  .dock-chat-ic { position: relative; display: grid; }
  .dock-chat svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .dock-chat svg circle { fill: currentColor; stroke: none; }
  .dock-dot { position: absolute; top: -1px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; border: 2px solid #e4e2de; }
  .dock-chat:active { transform: scale(.97); }
  .dock .dock-cta { width: 80px; font-size: 11.5px; }
}
@media (max-width: 360px) { .dock-pill a, .dock-pill .dock-chat { font-size: 9.5px; } .dock .dock-cta { width: 72px; } }
@media (max-width: 760px) { .dock .dock-chat svg { color: inherit !important; } }

/* Chat v2: se abre a la izquierda del botón, encabezado propio y opciones en carrusel */
@media (min-width: 761px) {
  .chat { right: 106px; bottom: 24px; transform-origin: bottom right; transform: translateX(14px) scale(.98); }
  .chat.open { transform: none; }
}
.chat-av--bot { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #2a2418, #0b0b0b); color: var(--gold); }
.chat-av--bot svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat-av--bot svg path:last-child { fill: currentColor; stroke: none; }
.chat-quick { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; overflow-y: hidden; max-height: none !important; gap: 8px; padding: 6px 16px 12px;
  scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 82%, transparent 100%); }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick.is-start-hidden { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 82%, transparent 100%); }
.chat-quick.is-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%); }
.chat-quick.is-fits { -webkit-mask-image: none; mask-image: none; }
.chat-quick button { flex: none; white-space: nowrap; scroll-snap-align: start; min-height: 40px; }
.chat-quick { scroll-padding-inline: 16px; }
.chat-quick { scroll-snap-type: none !important; }

/* Chat: avatar ilustrado del asistente virtual */
.chat-av--img { padding: 0; overflow: hidden; background: #111; border: 1.5px solid rgba(210, 170, 103, .75); box-shadow: 0 0 0 3px rgba(210, 170, 103, .12); }
.chat-av--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-head .chat-av { width: 46px; height: 46px; }

/* =========================================================
   Efectos "tech": IA, escáner, red neuronal y transiciones
   ========================================================= */
/* Títulos que se generan palabra por palabra */
.wr { animation: none !important; }
.wr .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.35em);
  transition: opacity .7s ease, filter .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.wr.is-in .w { opacity: 1; filter: blur(0); transform: none; }

/* Chat: "Analizando…" con brillo y cursor mientras escribe */
.msg--typing { align-items: center; }
.msg--typing .think { margin-right: 6px; font-size: 12px; font-weight: 500; letter-spacing: .3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .35) 0%, #ecd3a0 50%, rgba(255, 255, 255, .35) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: thinkShine 1.3s linear infinite; }
@keyframes thinkShine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.msg--bot.is-streaming::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 3px; vertical-align: -2px; border-radius: 1px; background: #d2aa67; animation: caretBlink .7s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* Imágenes que aparecen "escaneadas" */
.scan { position: relative; }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, #ecd3a0 20%, #fff7e6 50%, #d2aa67 80%, transparent);
  box-shadow: 0 0 16px 3px rgba(210, 170, 103, .55), 0 0 40px 8px rgba(210, 170, 103, .18); }
.scan.is-scanned .scan-line { animation: scanMove 1.25s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes scanMove { 0% { top: 0; opacity: 1; } 90% { top: calc(100% - 2px); opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
.tcard-media.scan img, .doc-photo-wrap.scan .doc-photo-img { clip-path: inset(0 0 100% 0); }
.tcard-media.scan.is-scanned img, .doc-photo-wrap.scan.is-scanned .doc-photo-img { clip-path: inset(0 0 0 0); transition: clip-path 1.25s cubic-bezier(.65, 0, .35, 1), transform .8s cubic-bezier(.2, .7, .2, 1), filter .6s; }

/* Red neuronal dorada en la portada */
.neural { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 66%); mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 66%); }

/* Transición suave entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .32s ease both; }
::view-transition-new(root) { animation: vtIn .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vtOut { to { opacity: 0; filter: blur(6px); transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; filter: blur(8px); transform: scale(1.012); } }
.site-header { view-transition-name: site-header; }
@media (max-width: 760px) { .dock { view-transition-name: dock; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .msg--typing .think { animation: none; }
}
/* Red neuronal más sutil: predomina el negro */
.neural { opacity: .55; }

/* Portada: el doctor completo (brazos incluidos), sin recortes ni sombras encima */
@media (min-width: 761px) {
  .hero-bg::before { height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .hero-bg { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%) !important; mask-image: linear-gradient(90deg, transparent 0%, #000 22%) !important; }
  .hero::before { background: linear-gradient(90deg, #080808 0%, #080808 28%, rgba(8, 8, 8, .5) 40%, rgba(8, 8, 8, 0) 50%) !important; }
}
@media (min-width: 761px) and (max-width: 1200px) and (orientation: landscape) {
  .hero-bg::before { left: 70%; }
  .hero-inner { grid-template-columns: minmax(0, min(540px, 52%)) !important; }
}
@media (min-width: 761px) and (max-width: 1200px) and (orientation: landscape) {
  .hero-bg::before { left: 60%; height: 94%; }
  .hero-inner { grid-template-columns: minmax(0, min(520px, 50%)) !important; }
}
/* Portada: barra de agendar más abajo, equilibrada con la foto del doctor */
@media (min-width: 1025px) {
  .hero-inner { padding-top: calc(var(--header-h) + 110px) !important; }
  .hero-book { margin-top: 36px; }
}
@media (min-width: 761px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-inner { padding-top: calc(var(--header-h) + 80px) !important; }
  .hero-book { margin-top: 24px; }
}
/* Barra inferior más abajo (como la referencia): usa solo parte del margen de seguridad del iPhone */
@media (max-width: 760px) {
  .dock { bottom: max(4px, calc(env(safe-area-inset-bottom) - 26px)) !important; }
}
