:root {
  --bg: #f6f1e9;
  --surface: #fffdf9;
  --ink: #17302a;
  --muted: #5d6f69;
  --line: #e3dccf;
  --accent: #0f5c4d;
  --accent-ink: #fff;
  --coral: #e9784f;
  --mint: #cfe7dc;
  --radius: 22px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

::selection { background: var(--mint); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
h1 em, h2 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.18em; background: var(--coral); opacity: 0.35; border-radius: 4px; z-index: -1; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head h2, .triage h2, .vac h2, .book h2 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: none; }
.section-head.split > p { max-width: 380px; color: var(--muted); }
.btn { border-radius: 999px; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }
.btn-soft { background: rgb(15 92 77 / 0.08); color: var(--accent); }
.btn-soft:hover { background: rgb(15 92 77 / 0.14); }
.btn-block { width: 100%; }
.disclaimer { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }
.input { background: #fff; border-radius: 14px; }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--accent); color: var(--bg); clip-path: circle(150% at 50% 50%); transition: clip-path 1.1s cubic-bezier(0.76, 0, 0.24, 1); pointer-events: none; }
.intro.open { clip-path: circle(0% at 50% 50%); }
.intro-word { text-align: center; }
.intro-word span { display: block; font: 600 clamp(3.6rem, 13vw, 8rem)/1 var(--font-display); letter-spacing: -0.05em; animation: pop 0.9s var(--ease) both; }
.intro-word small { display: block; margin-top: 10px; font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0; animation: fade 0.6s 0.4s forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.96); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { to { opacity: 0.75; } }

/* Barra de emergencias */
.sos { background: var(--ink); color: #f6f1e9; font-size: 0.86rem; }
.sos-inner { display: flex; align-items: center; gap: 10px; min-height: 38px; flex-wrap: wrap; }
.sos a { margin-left: auto; font-weight: 600; text-decoration: none; color: #ffc9b3; }
.sos-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgb(233 120 79 / 0.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgb(233 120 79 / 0); } 100% { box-shadow: 0 0 0 0 rgb(233 120 79 / 0); } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; transition: background 0.3s, box-shadow 0.3s; }
.header.is-solid { background: rgb(246 241 233 / 0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 600 1.6rem/1 var(--font-display); letter-spacing: -0.05em; text-decoration: none; color: var(--accent); }
.logo svg { width: 26px; height: 26px; fill: var(--accent); }
.logo.small { font-size: 1.25rem; }
.nav { display: flex; gap: 6px; font-size: 0.94rem; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; transition: background 0.2s; }
.nav a:hover { background: rgb(15 92 77 / 0.08); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: float 22s ease-in-out infinite alternate; }
.b1 { width: 46vw; height: 46vw; right: -10vw; top: -14vw; background: var(--mint); }
.b2 { width: 30vw; height: 30vw; left: -10vw; bottom: -10vw; background: #f6cdb8; animation-duration: 28s; }
@keyframes float { to { transform: translate(4vw, 3vw) scale(1.1); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.6); border: 1px solid var(--line); backdrop-filter: blur(8px); font-size: 0.86rem; font-weight: 500; }
.pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 0.98; margin: 22px 0 22px; position: relative; z-index: 0; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 32px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.trust strong { display: block; font: 600 1.9rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.hero-media { position: relative; aspect-ratio: 1 / 1.08; }
.frame { position: absolute; overflow: hidden; border-radius: 28px; box-shadow: 0 30px 60px -20px rgb(23 48 42 / 0.35); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.f1 { inset: 0 16% 18% 0; }
.f1 img { object-position: 55% 50%; }
.f2 { width: 46%; aspect-ratio: 3/4; right: 0; bottom: 0; border: 6px solid var(--bg); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.glass-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgb(255 255 255 / 0.62); border: 1px solid rgb(255 255 255 / 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px -14px rgb(23 48 42 / 0.35); }
.glass-card small { display: block; font-size: 0.76rem; color: var(--muted); }
.glass-card strong { font-family: var(--font-display); font-size: 1.15rem; }
.glass-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgb(43 182 115 / 0.2); }
.next { left: -4%; bottom: 8%; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: #fff; isolation: isolate; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(10 30 25 / 0.82)); }
.tile:hover img { transform: scale(1.06); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; }
.tile h3 { font-size: 1.35rem; color: #fff; }
.tile p { margin-top: 6px; font-size: 0.9rem; opacity: 0.85; max-width: 320px; }
.arrow { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / 0.2); backdrop-filter: blur(8px); transition: background 0.3s, transform 0.3s; }
.tile:hover .arrow { background: #fff; color: var(--ink); transform: rotate(-45deg); }

/* Orientador */
.triage-section { background: linear-gradient(180deg, transparent, rgb(207 231 220 / 0.55) 30%, rgb(207 231 220 / 0.55) 70%, transparent); }
.triage { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.triage-side > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.triage-main { padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: rgb(255 253 249 / 0.7); border: 1px solid #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgb(23 48 42 / 0.3); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgb(15 92 77 / 0.08); margin-bottom: 18px; }
.seg button { border: 0; background: none; padding: 8px 20px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: background 0.25s, color 0.25s; }
.seg button.on { background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgb(23 48 42 / 0.12); }
.symptoms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sym { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 0.93rem; line-height: 1.4; transition: border-color 0.2s, background 0.2s; }
.sym input { position: absolute; opacity: 0; pointer-events: none; }
.sym .box { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid #b9c4bf; transition: background 0.2s, border-color 0.2s; }
.sym.on { border-color: var(--accent); background: rgb(15 92 77 / 0.05); }
.sym.on .box { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%; border-color: var(--accent); }
.sym:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sym small { display: block; color: var(--coral); font-weight: 600; margin-top: 2px; }
.verdict { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: background 0.4s, border-color 0.4s; }
.verdict h3 { font-size: 1.25rem; }
.verdict p { font-size: 0.92rem; color: var(--muted); margin-top: 2px; }
.meter { display: flex; gap: 4px; align-items: end; }
.meter i { width: 8px; border-radius: 3px; background: #dfe3e1; transition: background 0.3s; }
.meter i:nth-child(1) { height: 14px; } .meter i:nth-child(2) { height: 22px; } .meter i:nth-child(3) { height: 30px; }
.verdict[data-level='1'] .meter i:nth-child(1) { background: #2bb673; }
.verdict[data-level='2'] .meter i:nth-child(-n+2) { background: #e9a23b; }
.verdict[data-level='2'] { border-color: #f1d2a1; background: #fff8ec; }
.verdict[data-level='3'] .meter i { background: #d9452b; }
.verdict[data-level='3'] { border-color: #f2b3a6; background: #fff1ee; }
.verdict[data-level='3'] .btn { background: #d9452b; }

/* Vacunas */
.vac { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.vac-head > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); max-width: 460px; }
.vac-form { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.vac-form .seg { margin-bottom: 2px; }
.vac-form .field { flex: 1; min-width: 200px; }
.vac-photo { margin-top: 30px; width: 100%; max-width: 360px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.vac-list { padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.timeline { list-style: none; margin: 0 0 6px; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 12px 0 14px 34px; display: grid; gap: 2px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid #c4cdc9; }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.done { opacity: 0.6; }
.timeline li.next::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 6px rgb(233 120 79 / 0.18); }
.timeline li.next { background: linear-gradient(90deg, rgb(233 120 79 / 0.08), transparent); border-radius: 12px; }
.timeline .when { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.timeline li.next .when { color: var(--coral); }
.timeline strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.timeline small { color: var(--muted); font-size: 0.84rem; }
.vac-list .btn { margin-top: 20px; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.member img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.member > div { padding: 20px 22px 24px; }
.member h3 { font-size: 1.3rem; }
.member .role { font-size: 0.84rem; font-weight: 600; color: var(--accent); margin: 4px 0 10px; }
.member p:last-child { color: var(--muted); font-size: 0.94rem; }

/* Agenda */
.book { display: grid; grid-template-columns: 1fr 1fr; border-radius: 32px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgb(23 48 42 / 0.35); }
.book-media img { width: 100%; height: 100%; object-fit: cover; }
.book-form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 48px); }
.book-form h2 { margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { text-align: center; font-size: 0.86rem; color: var(--muted); }

.footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .triage, .vac { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .tile.tall { grid-row: span 1; }
  .team { grid-template-columns: 1fr 1fr; }
  .book { grid-template-columns: 1fr; }
  .book-media { height: 260px; }
}
@media (max-width: 640px) {
  .section-head.split { flex-direction: column; align-items: start; }
  .sos-inner { font-size: 0.8rem; gap: 6px 10px; padding-block: 6px; }
  .header .btn-sm { padding: 0 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .symptoms { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: auto 1fr; }
  .verdict .btn { grid-column: 1 / -1; }
  .team { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .next { left: 4%; bottom: 4%; }
  .trust { gap: 22px; }
}
