/* Clínica Vitalis (demo) */
@font-face { font-family: 'Sora'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('../fonts/sora-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

:root { --bg: #081218; --teal: #2dd4bf; --blue: #38bdf8; --mint: #99f6e4; --ink: #eaf6f6; --muted: #8ba5ae; --pill: #2dd4bf; --map-bg: #0b1a21; --scroll-bar: linear-gradient(90deg, #2dd4bf, #38bdf8); --spot-color: rgba(45, 212, 191, 0.12); }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', sans-serif; overflow-x: clip; }
.font-display { font-family: 'Sora', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.dot-teal { background: var(--teal); }
.tile-teal { background: rgba(45, 212, 191, 0.12); }
.tile-blue { background: rgba(56, 189, 248, 0.12); }
.tile-mint { background: rgba(153, 246, 228, 0.12); }
.c-teal { color: var(--teal); }
.c-blue { color: var(--blue); }
.c-mint { color: var(--mint); }
.m-cta { background: rgba(45, 212, 191, 0.1); color: var(--teal); }

.mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px circle at 15% 10%, rgba(45, 212, 191, 0.1), transparent 55%), radial-gradient(700px circle at 90% 30%, rgba(56, 189, 248, 0.09), transparent 55%); }
.glass { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); }
header .glass, #mobileMenu { background: rgba(8, 18, 24, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

.pulse-line { width: 100%; height: 34px; overflow: hidden; }
.pulse-line svg { width: 200%; height: 100%; animation: pulseScroll 5s linear infinite; }
@keyframes pulseScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.btn-primary { background: linear-gradient(120deg, var(--teal), var(--blue)); color: #052024; font-weight: 600; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(45, 212, 191, 0.5); }
.btn-outline { border: 1px solid rgba(45, 212, 191, 0.35); transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
.btn-outline:hover { border-color: var(--teal); background: rgba(45, 212, 191, 0.07); }
.lift-card { transition: transform 0.45s var(--ease-out), border-color 0.3s ease; }
.lift-card:hover { transform: translateY(-6px); border-color: rgba(45, 212, 191, 0.4); }

.photo-frame { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid rgba(45, 212, 191, 0.16); background: #081218; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease-out); }
.gal-item:hover img { transform: scale(1.06); }

/* Héroe */
.hero-banner { position: relative; overflow: hidden; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; animation: heroZoom 22s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 24, 0.45) 0%, rgba(8, 18, 24, 0.68) 55%, rgba(8, 18, 24, 0.98) 100%); }

/* ¿Con quién debo ir? */
.triage-opt { display: block; width: 100%; text-align: left; padding: 0.85rem 1.1rem; border-radius: 0.9rem; font-size: 0.875rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-out); }
.triage-opt:hover { transform: translateX(4px); border-color: rgba(45, 212, 191, 0.4); }
.triage-opt[aria-pressed='true'] { background: rgba(45, 212, 191, 0.1); border-color: var(--teal); color: var(--mint); }
.triage-result { min-height: 100%; background: linear-gradient(160deg, rgba(45, 212, 191, 0.12), rgba(56, 189, 248, 0.05)); border: 1px solid rgba(45, 212, 191, 0.25); }
.triage-result.pop { animation: triagePop 0.6s var(--ease-out); }
@keyframes triagePop { from { opacity: 0.2; transform: translateY(10px); } }

/* Doctores */
.doc-card { transition: border-color 0.3s ease; }
.doc-card:hover { border-color: rgba(45, 212, 191, 0.4); }
.doctor-photo { position: relative; }
.doctor-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(8, 18, 24, 0.05), rgba(45, 212, 191, 0.14)); mix-blend-mode: multiply; }
.doctor-photo img { filter: saturate(0.92) contrast(1.03); transition: transform 0.8s var(--ease-out); }
.doc-card:hover .doctor-photo img { transform: scale(1.06); }
.doc-book { margin-top: 0.85rem; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); cursor: pointer; }
.doc-book:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Agenda */
.slot { transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.slot:not(:disabled):active { transform: scale(0.95); }
.slot.selected { background: linear-gradient(120deg, var(--teal), var(--blue)); color: #052024; border-color: transparent; font-weight: 600; }
.day-btn.selected { border-color: transparent; color: #052024; }
.day-btn.selected span { color: inherit; }
.toggle-btn { transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.toggle-btn.selected { background: linear-gradient(120deg, var(--teal), var(--blue)); color: #052024; border-color: transparent; font-weight: 600; }
select option { background: #0c1922; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }
.summary-row .label { color: var(--muted); }

#mobileMenu { max-height: 0; overflow: hidden; border-width: 0; transition: max-height 0.3s ease; }
#mobileMenu.open { max-height: 26rem; border-width: 1px; }

.map-frame { filter: grayscale(0.15) invert(0.92) contrast(0.9); }
details > summary::-webkit-details-marker { display: none; }
.faq-icon { transition: transform 0.25s ease; }
details[open] .faq-icon { transform: rotate(45deg); }

/* Subpáginas */
.chip { transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.step-item { position: relative; padding-left: 2.5rem; }
.step-item::before { content: attr(data-step); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: linear-gradient(120deg, var(--teal), var(--blue)); color: #052024; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-item::after { content: ''; position: absolute; left: 0.85rem; top: 1.9rem; bottom: -2rem; width: 1px; background: rgba(45, 212, 191, 0.25); }
.step-item:last-child::after { display: none; }
