/* Dra. Ilse López Campos. Cada dirección es un mundo de color completo; el sitio no sigue el tema del sistema. */
:root {
  color-scheme: light;
  --tunnel: #0b2b2a; --on-tunnel: #fdf1ea; --on-tunnel-soft: #b9d3cd; --glow: #ffab8a;
  --paper: #f8ebe6; --paper-2: #f1dfd8; --ink: #12302f; --muted: #4d6563; --line: #dcc8c0;
  --accent: #1f5a55; --cta-bg: #12302f; --cta-fg: #fdf1ea;
  --ok: #1f6b4f; --warn: #8a5a12; --full: #8a3434;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 350; letter-spacing: -0.02em; line-height: 1.06; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--cta-bg); color: var(--cta-fg); padding: 10px 14px; border-radius: 10px; z-index: 60; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.sec { padding-block: clamp(72px, 10vw, 128px); }
.tint { background: var(--paper-2); }
.deep { background: var(--tunnel); color: var(--on-tunnel); --ink: var(--on-tunnel); --muted: var(--on-tunnel-soft); --line: color-mix(in srgb, var(--on-tunnel) 18%, transparent); --cta-bg: var(--glow); --cta-fg: var(--tunnel); }
.sec h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16em; }
.lede { margin-top: 18px; max-width: 36em; color: var(--muted); font-size: 1.08rem; }
.draft { display: inline-block; margin-top: 14px; font-size: 13.5px; line-height: 1.4; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 5px 10px; }
.rows + .more, .qa + .more, .path + .more { margin-top: 28px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--cta-bg); color: var(--cta-fg); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-glow { background: var(--glow); color: var(--tunnel); }
.btn-ghost { border-color: color-mix(in srgb, var(--on-tunnel) 45%, transparent); color: var(--on-tunnel); background: transparent; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-line:hover { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
  .btn-ghost:hover { background: color-mix(in srgb, var(--on-tunnel) 14%, transparent); }
  .more:hover { color: var(--accent); }
  .deep .more:hover { color: var(--glow); }
}

/* Navegación */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) clamp(16px, 4vw, 40px) 0; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); color: var(--ink); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background-color .35s, color .35s, border-color .35s; }
.p-home .nav:not(.on-paper) { background: transparent; color: var(--on-tunnel); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand b { font: 500 17.5px var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand small { font-size: 13px; opacity: .8; white-space: nowrap; }
.links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15.5px; transition: background-color .2s; }
.links a[aria-current="page"] { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav .cta { min-height: 44px; padding: 0 18px; font-size: 15px; background: var(--cta-bg); color: var(--cta-fg); }
.p-home .nav:not(.on-paper) .cta { background: var(--glow); color: var(--tunnel); }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: 600 15px var(--body); cursor: pointer; }
@media (hover: hover) { .links a:hover { background: color-mix(in srgb, currentColor 10%, transparent); } }
.sheet { position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 29; background: var(--paper); color: var(--ink); padding: 18px clamp(16px, 4vw, 40px) calc(env(safe-area-inset-bottom, 0px) + 96px); overflow: auto; overscroll-behavior: contain; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 350 1.9rem/1.15 var(--display); letter-spacing: -0.015em; }
.sheet a[aria-current="page"] { color: var(--accent); }
.sheet a.btn { margin-top: 26px; width: 100%; display: flex; padding: 0 22px; border: 0; font: 600 16px/1 var(--body); letter-spacing: 0; }
.sheet p { margin-top: 18px; color: var(--muted); }
@media (max-width: 1020px) { .links { display: none; } .menu-btn { display: inline-flex; align-items: center; } }
@media (max-width: 460px) { .nav .cta { display: none; } .brand small { display: none; } }

/* Encabezado de páginas internas */
.phead { padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(48px, 8vw, 104px)) 0 clamp(44px, 6vw, 80px); background: radial-gradient(60% 110% at 100% 0%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 62%), var(--paper); }
.phead h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 13em; }
.phead .lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

/* Listas con divisores */
.rows { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); }
.rows a { display: block; padding: 22px 0 24px; border-top: 1px solid var(--line); text-decoration: none; }
.rows h3 { font-size: 1.55rem; font-weight: 400; }
.rows p { margin-top: 6px; color: var(--muted); max-width: 30em; }
.rows a span { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .rows a:hover h3 { color: var(--accent); } }
@media (max-width: 760px) { .rows { grid-template-columns: minmax(0, 1fr); } }

.trio { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.trio h3 { font-size: 1.45rem; font-weight: 420; }
.trio p { margin-top: 10px; color: var(--muted); }
@media (max-width: 820px) { .trio { grid-template-columns: minmax(0, 1fr); } }

/* Foto en arco */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.arch { aspect-ratio: 4 / 5; width: 100%; max-width: 100%; border-radius: 999px 999px 28px 28px; background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--glow) 55%, var(--paper-2)) 0%, var(--paper-2) 62%); border: 1px solid var(--line); display: grid; place-items: end center; padding: 28px; text-align: center; color: var(--muted); font-size: 14.5px; overflow: hidden; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } .arch { max-width: 380px; } }

.creds { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.creds li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.creds li > span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) { .creds li { flex-direction: column; gap: 2px; } }

/* Camino de formación */
.path { list-style: none; margin: 48px 0 0; padding: 0 0 0 34px; position: relative; max-width: 760px; }
.path::before { content: ''; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--glow)); }
.path li { position: relative; padding-bottom: 40px; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: ''; position: absolute; left: -32px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.path li:last-child::before { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 0 6px color-mix(in srgb, var(--glow) 30%, transparent); }
.path .yr { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.path h3 { margin-top: 4px; font-size: 1.6rem; font-weight: 400; }
.path p { margin-top: 6px; color: var(--muted); }

/* Preguntas */
.qa { margin-top: 32px; max-width: 780px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 420 1.28rem/1.3 var(--display); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qa details > div { padding: 0 0 22px; max-width: 40em; color: var(--muted); display: grid; gap: 10px; }
@media (hover: hover) { .qa summary:hover { color: var(--accent); } }
.qgroup + .qgroup { margin-top: clamp(56px, 8vw, 96px); }
.qgroup h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* Días */
.days { margin-top: 32px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.day { scroll-snap-align: start; min-height: 104px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 16px; padding: 12px; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: background-color .2s, border-color .2s, color .2s; }
.day small { color: var(--muted); font-size: 13.5px; }
.day b { font: 420 1.7rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.day > span { margin-top: auto; font-size: 13.5px; font-weight: 600; }
[data-s="ok"] > span, .st-ok { color: var(--ok); }
[data-s="few"] > span, .st-few { color: var(--warn); }
[data-s="full"] > span, .st-full { color: var(--full); }
[data-s="off"] > span, .st-off { color: var(--muted); font-weight: 400; }
.day[aria-pressed="true"] { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-fg); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] > span { color: inherit; opacity: .85; }
@media (hover: hover) { .day:hover { border-color: var(--ink); } }
.slots { margin-top: 22px; min-height: 120px; }
.slots h3 { font-size: 1.3rem; font-weight: 420; }
.slot-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.slot { min-height: 46px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 16px var(--body); font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.slot[aria-pressed="true"] { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
.slot.taken { border-color: var(--line); color: var(--muted); font-weight: 400; text-decoration: line-through; cursor: default; }
@media (hover: hover) { a.slot:hover, button.slot:not(.taken):hover { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); } }
.slots p { margin-top: 12px; color: var(--muted); }
.today { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.today::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

/* Agendar */
.book { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.step + .step { margin-top: 48px; }
.step h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
.step h2 small { display: block; font: 600 14.5px var(--body); letter-spacing: 0; color: var(--muted); margin-bottom: 6px; }
.choices { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { display: block; font-weight: 600; }
.choice span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .choice:hover { border-color: var(--ink); } }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-head { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }
.cal { margin-top: 8px; }
.cell { aspect-ratio: 1 / 1; min-height: 46px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink); font: 420 1.15rem var(--display); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0; transition: background-color .2s, border-color .2s, color .2s; }
.cell i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cell[data-s="ok"] i { background: var(--ok); } .cell[data-s="few"] i { background: var(--warn); } .cell[data-s="full"] i { background: var(--full); }
.cell[data-s="off"], .cell[data-s="past"] { color: var(--muted); border-style: dashed; cursor: default; }
.cell[data-s="off"] i, .cell[data-s="past"] i { visibility: hidden; }
.cell[data-s="full"] { color: var(--muted); }
.cell[aria-pressed="true"] { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
.cell[aria-pressed="true"] i { background: var(--cta-fg); }
@media (hover: hover) { .cell:not([data-s="off"]):not([data-s="past"]):hover { border-color: var(--ink); } }
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.fields { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: 400 17px var(--body); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 15%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--full); }
.field .err:empty { display: none; }
.field .err { margin-top: 6px; font-size: 14px; color: var(--full); min-height: 1.2em; }
.field .help { margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 620px) { .fields, .choices { grid-template-columns: minmax(0, 1fr); } }
.summary { position: sticky; top: calc(var(--nav-h) + 24px); border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: var(--paper-2); }
.summary h2 { font-size: 1.6rem; }
.summary dl { margin: 18px 0 0; display: grid; gap: 12px; }
.summary dt { font-size: 14px; color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary dd.empty { font-weight: 400; color: var(--muted); }
.summary .btn { width: 100%; margin-top: 22px; }
.summary .note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.done { margin-top: 18px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 12%, transparent); }
.done p + p { margin-top: 8px; }
.done .btn { margin-top: 14px; }
@media (max-width: 900px) { .book { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }

/* Padecimientos */
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 500 15.5px var(--body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
@media (hover: hover) { .chip:hover { border-color: var(--ink); } }
.match { margin-top: 16px; color: var(--muted); min-height: 1.6em; }
.conds { margin-top: 36px; border-top: 1px solid var(--line); }
.cond { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 56px); padding: 30px 0; border-bottom: 1px solid var(--line); transition: opacity .3s var(--ease); }
.cond h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 400; }
.cond > div:first-child p { margin-top: 10px; color: var(--muted); }
.cond dl { margin: 0; display: grid; gap: 14px; }
.cond dt { font-weight: 600; }
.cond dd { margin: 2px 0 0; color: var(--muted); }
.cond.dim { opacity: .32; }
.cond.hit h3 { color: var(--accent); }
@media (max-width: 760px) { .cond { grid-template-columns: minmax(0, 1fr); } }
.procs { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); }
.procs div { padding: 18px 0; border-top: 1px solid var(--line); }
.procs h3 { font-size: 1.3rem; font-weight: 420; }
.procs p { margin-top: 4px; color: var(--muted); }
@media (max-width: 760px) { .procs { grid-template-columns: minmax(0, 1fr); } }
.alert { margin-top: 0; border-radius: 24px; padding: clamp(22px, 4vw, 40px); background: color-mix(in srgb, var(--full) 9%, var(--paper)); border: 1px solid color-mix(in srgb, var(--full) 30%, transparent); }
.alert h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.alert ul { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.alert p { margin-top: 16px; color: var(--muted); }

/* Contacto */
.info { margin: 0; display: grid; gap: 22px; }
.info dt { font-size: 14px; color: var(--muted); }
.info dd { margin: 3px 0 0; font: 400 1.35rem/1.3 var(--display); }
.phone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copy { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 14px var(--body); cursor: pointer; }
@media (hover: hover) { .copy:hover { border-color: var(--ink); } }
.hours { margin-top: 18px; width: 100%; max-width: 460px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--ink); }

/* Texto legal */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.6rem; margin-top: 44px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* Pie */
.foot { background: var(--tunnel); color: var(--on-tunnel); padding: clamp(56px, 8vw, 88px) 0 calc(env(safe-area-inset-bottom, 0px) + 96px); }
.foot .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 36px; }
.foot h2 { font-size: 15px; font-family: var(--body); font-weight: 600; letter-spacing: 0; color: var(--on-tunnel-soft); }
.foot ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.foot a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.foot p { color: var(--on-tunnel-soft); margin-top: 12px; max-width: 30em; }
.foot .big { font: 350 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--display); letter-spacing: -0.02em; color: var(--on-tunnel); margin: 0; }
.foot .base { margin-top: 48px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--on-tunnel) 16%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--on-tunnel-soft); }
@media (hover: hover) { .foot a:hover { color: var(--glow); } }
@media (max-width: 820px) { .foot .cols { grid-template-columns: minmax(0, 1fr); } }

/* Barra de borrador */

/* El recorrido (solo inicio) */
.journey { position: relative; height: 760vh; background: var(--tunnel); color: var(--on-tunnel); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#tunnel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--tunnel) 78%, transparent) 0%, color-mix(in srgb, var(--tunnel) 35%, transparent) 46%, transparent 70%); }
.bloom { --r: -30%; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, var(--paper) calc(var(--r) - 16%), color-mix(in srgb, var(--glow) 70%, var(--paper)) var(--r), transparent calc(var(--r) + 22%)); }
.hero, .stop { position: absolute; left: clamp(16px, 6vw, 96px); right: clamp(16px, 6vw, 96px); will-change: opacity, transform; }
.hero { top: 50%; transform: translateY(-46%); max-width: 740px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); }
.hero > p { margin-top: 22px; max-width: 34em; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--on-tunnel-soft); }
.hero .where { margin-top: 26px; font-size: 14.5px; color: var(--on-tunnel-soft); }
.stop { bottom: clamp(88px, 16vh, 170px); max-width: 580px; opacity: 0; visibility: hidden; }
.stop .n { font-size: 14.5px; color: var(--glow); font-weight: 600; margin-bottom: 12px; }
.stop h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.stop p { margin-top: 14px; color: var(--on-tunnel-soft); max-width: 30em; }
.stop a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--on-tunnel); font-weight: 600; text-underline-offset: 4px; }
.gauge { position: absolute; right: clamp(16px, 4vw, 48px); top: 50%; transform: translateY(-50%); height: 44vh; width: 2px; background: color-mix(in srgb, var(--on-tunnel) 22%, transparent); border-radius: 2px; }
.gauge i { position: absolute; left: -1px; top: 0; width: 4px; border-radius: 4px; background: var(--glow); height: 0; }
.gauge b { position: absolute; right: 14px; top: 0; transform: translateY(-50%); white-space: nowrap; font: 500 14px var(--body); font-variant-numeric: tabular-nums; color: var(--on-tunnel); }
.gauge em { position: absolute; right: 14px; top: 83.3%; transform: translateY(-50%); white-space: nowrap; font: 400 12.5px var(--body); font-style: normal; color: var(--on-tunnel-soft); transition: opacity .3s; }
.gauge em::after { content: ''; position: absolute; right: -19px; top: 50%; width: 12px; height: 1px; background: currentColor; }
.hint { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); transform: translateX(-50%); font-size: 13.5px; color: var(--on-tunnel-soft); white-space: nowrap; }
.no3d .journey { height: auto; background: linear-gradient(180deg, var(--tunnel) 0%, var(--tunnel) 75%, var(--paper) 100%); }
.no3d .stage { position: static; height: auto; overflow: visible; padding: 150px 0 120px; display: grid; gap: 72px; }
.no3d #tunnel, .no3d .veil, .no3d .bloom, .no3d .gauge, .no3d .hint { display: none; }
.no3d .hero, .no3d .stop { position: static; transform: none !important; opacity: 1 !important; visibility: visible !important; margin: 0 clamp(16px, 6vw, 96px); }
@media (max-width: 820px) {
  .journey { height: 640vh; }
  .veil { background: linear-gradient(180deg, color-mix(in srgb, var(--tunnel) 55%, transparent), color-mix(in srgb, var(--tunnel) 30%, transparent) 55%, color-mix(in srgb, var(--tunnel) 72%, transparent)); }
  .gauge { height: 30vh; top: 30%; }
  .gauge em, .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* ---------- Detalles de interacción ---------- */
::selection { background: color-mix(in srgb, var(--glow) 55%, transparent); color: var(--ink); }

/* Cursor propio (solo mouse) */
.has-cur, .has-cur * { cursor: none !important; }
.has-cur input, .has-cur textarea { cursor: text !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; will-change: transform; }
.cur-dot i { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); transition: opacity .2s, transform .25s var(--ease), background-color .3s; }
.cur-ring i { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent); transition: transform .45s var(--ease), background-color .35s, border-color .35s, opacity .3s; }
.cur.on-dark.cur-dot i { background: var(--on-tunnel); }
.cur.on-dark.cur-ring i { border-color: color-mix(in srgb, var(--on-tunnel) 55%, transparent); }
.cur-ring.is-hover i, .cur.on-dark.cur-ring.is-hover i { transform: scale(1.55); border-color: transparent; background: color-mix(in srgb, var(--glow) 32%, transparent); }
.cur-dot.is-hover i { transform: scale(.6); }
.cur-ring.is-down i { transform: scale(.82); }
.cur-ring.is-light i { transform: scale(6); border-color: transparent; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 48%, transparent) 0%, transparent 70%); }
.cur.on-dark.cur-ring.is-light i { border-color: color-mix(in srgb, var(--on-tunnel) 22%, transparent); border-width: 0.5px; }
.cur-dot.is-light i { background: var(--glow); transform: scale(1.4); }
.cur.is-text i, .cur.is-gone i { opacity: 0; }

/* Transición entre páginas: un amanecer que sube y se va */
.curtain { position: fixed; inset: 0; z-index: 80; pointer-events: none; transform: scaleY(0); transform-origin: 50% 100%; background: linear-gradient(0deg, var(--glow) 0%, color-mix(in srgb, var(--glow) 45%, var(--paper)) 30%, var(--paper) 62%); }
.curtain.in { transform: scaleY(1); transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
html.arriving .curtain { transform: scaleY(1); transform-origin: 50% 0%; }
html.arriving .curtain.out { transform: scaleY(0); transition: transform .75s cubic-bezier(.65, 0, .15, 1); }
html.arriving main, html.arriving .foot { opacity: 0; transform: translateY(18px); }
html.entered main, html.entered .foot { opacity: 1; transform: none; transition: opacity .7s var(--ease) .18s, transform .9s var(--ease) .18s; }

/* Menú en celular con entrada escalonada */
.sheet { opacity: 0; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.sheet.open { opacity: 1; transform: none; }
.sheet li, .sheet > a, .sheet > p { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .55s var(--ease); }
.sheet.open li, .sheet.open > a, .sheet.open > p { opacity: 1; transform: none; }
.sheet.open li:nth-child(2) { transition-delay: .04s; } .sheet.open li:nth-child(3) { transition-delay: .08s; }
.sheet.open li:nth-child(4) { transition-delay: .12s; } .sheet.open li:nth-child(5) { transition-delay: .16s; }
.sheet.open li:nth-child(6) { transition-delay: .2s; } .sheet.open > a { transition-delay: .24s; } .sheet.open > p { transition-delay: .28s; }

/* Preguntas que se abren suave (navegadores que lo soportan) */
:root { interpolate-size: allow-keywords; }
.qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.qa details[open]::details-content { block-size: auto; }

/* Lo que cambia por una acción aparece, no salta */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slots > *, .done > *, .match:not(:empty) { animation: rise .45s var(--ease) both; }
.slots > :nth-child(2) { animation-delay: .05s; } .slots > :nth-child(3) { animation-delay: .1s; }
.cond.hit { animation: rise .45s var(--ease) both; }

/* WhatsApp siempre a la mano */
.wa-float { position: fixed; right: clamp(16px, 3vw, 28px); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 35; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--cta-bg); color: var(--cta-fg); text-decoration: none; font: 600 15.5px var(--body); box-shadow: 0 12px 30px color-mix(in srgb, var(--tunnel) 35%, transparent); transition: transform .3s var(--ease), opacity .3s; }
.wa-float svg { width: 22px; height: 22px; flex: none; }
.p-home .wa-float { background: var(--glow); color: var(--tunnel); }
@media (hover: hover) { .wa-float:hover { transform: translateY(-3px); } }
@media (max-width: 760px) { .wa-float { bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); padding: 0; width: 52px; justify-content: center; } .wa-float span { display: none; } }
@media (min-width: 761px) and (max-width: 1100px) { .wa-float { bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); } }

@media (prefers-reduced-motion: reduce) {
  .curtain, .cur { display: none; }
  html.arriving main, html.arriving .foot { opacity: 1; transform: none; }
  .slots > *, .done > *, .match, .cond.hit { animation: none; }
}

/* ---------- Piezas agregadas el 11 nov ---------- */
[hidden] { display: none !important; }

/* Fotos: espacio vacío que dice qué foto va, o la foto ya recortada */
.shot { margin: 0; min-width: 0; }
.shot figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.ph { width: 100%; max-width: 100%; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--glow) 40%, var(--paper-2)) 0%, var(--paper-2) 65%); }
.is-empty { display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.arch.is-empty { place-items: end center; padding: 28px; }
.is-empty small { display: block; margin-top: 6px; font-size: 12.5px; opacity: .85; }
.has-photo { padding: 0 !important; display: block; border-color: transparent; background: var(--paper-2); }
.has-photo picture, .has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duo { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.split-text { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 820px) { .split-text { grid-template-columns: minmax(0, 1fr); } }

/* Ruta de navegación en páginas por padecimiento */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
@media (hover: hover) { .crumb a:hover { color: var(--accent); } }

/* Qué es, síntomas, causas, revisión */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 6vw, 88px); }
.facts > div { padding: 26px 0 36px; border-top: 1px solid var(--line); min-width: 0; }
.sec .facts h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.prose p { margin-top: 12px; color: var(--muted); max-width: 36em; }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--muted); max-width: 36em; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.alert .ticks { padding-left: 0; }
.alert .ticks li { color: var(--ink); }
.alert .ticks li::before { background: var(--full); }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Escalera de pasos: horizontal en pantalla grande, vertical en celular */
.ladder { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ladder li { position: relative; padding: 38px clamp(14px, 2.4vw, 32px) 0 0; min-width: 0; }
.ladder li::before { content: ''; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); z-index: 1; display: grid; place-items: center; font: 700 10px/1 var(--body); color: var(--paper); }
.tint .ladder li::before { background: var(--paper-2); }
.ladder li::after { content: ''; position: absolute; left: 16px; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--glow))); }
.ladder li:last-child::after { display: none; }
.ladder li:last-child::before { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 0 6px color-mix(in srgb, var(--glow) 30%, transparent); }
.ladder li.is-done::before { content: '✓'; background: var(--ok); border-color: var(--ok); }
.ladder .where { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); }
.ladder h3 { margin-top: 6px; font-size: 1.4rem; font-weight: 420; }
.ladder p { margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) {
  .ladder { grid-auto-flow: row; gap: 34px; padding-left: 34px; }
  .ladder li { padding: 0; }
  .ladder li::before { left: -34px; top: 3px; }
  .ladder li::after { left: -27px; right: auto; top: 22px; bottom: -34px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--glow))); }
}

/* Relacionados y enlaces dentro de la lista de padecimientos */
.rel-h { margin-top: clamp(56px, 8vw, 88px); font: 600 15px var(--body); letter-spacing: 0; color: var(--muted); }
.rel-h + .rows { margin-top: 14px; }
.cond h3 a { text-decoration: none; }
.cond .more { margin-top: 6px; }
@media (hover: hover) { .cond h3 a:hover { color: var(--accent); } }

/* Confirmación de cita */
.conf-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.conf h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.btn-wa { gap: 10px; }
.btn-wa svg { width: 20px; height: 20px; flex: none; }
.ticket { border-radius: 28px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 34px 60px -34px color-mix(in srgb, var(--tunnel) 55%, transparent); animation: rise .6s var(--ease) both; }
.tk-top { position: relative; padding: 24px 26px 30px; color: var(--on-tunnel); background: radial-gradient(110% 120% at 50% 135%, color-mix(in srgb, var(--glow) 75%, transparent) 0%, transparent 62%), var(--tunnel); }
.ticket .tk-top h2 { font: 600 14.5px var(--body); letter-spacing: 0; color: var(--on-tunnel-soft); }
.tk-state { position: absolute; right: 20px; top: 18px; padding: 5px 11px; border-radius: 999px; font: 600 13px var(--body); border: 1px dashed color-mix(in srgb, var(--on-tunnel) 55%, transparent); }
.tk-state[data-s="ok"] { border: 0; background: var(--glow); color: var(--tunnel); }
.tk-day { margin-top: 20px; font: 400 1.3rem/1.2 var(--display); }
.tk-hour { margin-top: 4px; font: 350 clamp(3.4rem, 7vw, 4.6rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tk-rows { margin: 0; padding: 22px 26px 26px; display: grid; gap: 14px; border-top: 2px dashed var(--line); }
.tk-rows dt { font-size: 14px; color: var(--muted); }
.tk-rows dd { margin: 1px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) { .conf-grid { grid-template-columns: minmax(0, 1fr); } .ticket { max-width: 460px; } }
@media (prefers-reduced-motion: reduce) { .ticket { animation: none; } }

.foot .legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot .legal-links a { min-height: 44px; }
.foot .fine { margin: 0; max-width: none; align-self: center; font-size: 14px; }
.foot .base { align-items: center; }
