/* Santa Helena del Valle IPS */

:root {
  --bg: #FBFCFD;
  --paper: #FFFFFF;
  --mist: #EFF4F7;
  --mist-2: #E1EAF0;
  --line: #CAD7E0;
  --ink: #0A2233;
  --muted: #4A6171;
  --navy: #0A2233;
  --navy-2: #0F2F47;
  --on-navy: #FFFFFF;
  --on-navy-muted: #B9CBD8;
  --blue: #0596C8;
  --blue-deep: #06709A;
  --gold: #FFE81A;
  --gold-press: #F2D900;
  --error: #B42318;

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  --step-head: clamp(2.25rem, 1.3rem + 3vw, 4.25rem);
  --step-display: clamp(2.3rem, 0.9rem + 4.6vw, 5.25rem);

  --m: clamp(20px, 5vw, 96px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 11vw, 176px);
  --radius: 30px;
  --radius-sm: 18px;
  --pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: var(--navy) var(--mist); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
p, h1, h2, h3, dl, dd, figure, ul, ol, fieldset { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; }
p { text-wrap: pretty; }
.plain { list-style: none; padding: 0; }
.h2 { font-size: var(--step-head); }
.h3-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.1; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: var(--pill);
  font: 600 var(--step-body)/1 var(--font-text); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 58px; padding: 0 32px; }
.btn--ink { background: var(--navy); color: var(--on-navy); }
.btn--accent { background: var(--gold); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 18px; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform 200ms var(--ease-out); }
.link-arrow--light { color: var(--on-navy); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: var(--navy-2); }
  .btn--accent:hover { background: var(--gold-press); }
  .btn--ghost:hover { background: var(--mist); }
  .link-arrow:hover::after { transform: translateX(5px); }
}

/* Sun mark from the logo, used as a quiet watermark */
.sun-mark { position: absolute; pointer-events: none; background: currentColor; -webkit-mask: url(img/sol.png) center / contain no-repeat; mask: url(img/sol.png) center / contain no-repeat; }

/* Photo slots */
.slot { position: relative; overflow: hidden; background: var(--mist-2); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot.is-empty img { display: none; }
.slot.is-empty::before { content: ""; position: absolute; inset: 22%; background: var(--paper); opacity: 0.8; -webkit-mask: url(img/sol.png) center / contain no-repeat; mask: url(img/sol.png) center / contain no-repeat; }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: var(--navy); color: var(--on-navy); }
.js .intro.is-on { display: grid; animation: intro-out 560ms var(--ease-in-out) 2100ms forwards; }
.intro__inner { display: grid; justify-items: center; gap: 28px; }
.intro__logo { width: min(78vw, 460px); height: auto; animation: intro-logo 700ms var(--ease-out) both, intro-pulse 1600ms ease-in-out 700ms infinite; }
@keyframes intro-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes intro-logo { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* Bar */
main { overflow-x: clip; }
.bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); height: 96px; padding: 0 var(--m); background: var(--mist); transition: background-color 300ms ease; }
.bar__brand img { height: 72px; width: auto; transform-origin: 0 50%; transition: transform 300ms var(--ease-out); }
.bar.is-scrolled { background: var(--paper); }
.bar.is-scrolled .bar__brand img { transform: scale(0.84); }
.bar__nav { display: flex; gap: clamp(18px, 2.4vw, 40px); margin-left: auto; }
.bar__nav a { white-space: nowrap; }
.bar__menu { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; margin-left: auto; border: 0; border-radius: var(--pill); background: transparent; color: var(--ink); font: 600 var(--step-body)/1 var(--font-text); cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.bar__menu:active { transform: scale(0.97); }
.bar__menu-icon { position: relative; width: 18px; height: 2px; background: currentColor; transition: background-color 200ms ease; }
.bar__menu-icon::before, .bar__menu-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform 240ms var(--ease-out); }
.bar__menu-icon::before { transform: translateY(-6px); }
.bar__menu-icon::after { transform: translateY(6px); }
.bar__menu[aria-expanded="true"] .bar__menu-icon { background: transparent; }
.bar__menu[aria-expanded="true"] .bar__menu-icon::before { transform: rotate(45deg); }
.bar__menu[aria-expanded="true"] .bar__menu-icon::after { transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .bar__menu:hover { background: var(--mist-2); } }
.bar__nav a { position: relative; font-weight: 500; text-decoration: none; padding: 8px 0; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover::after { transform: scaleX(1); } }

/* Hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; min-height: 0; padding: 72px var(--m) 0; margin-bottom: clamp(40px, 4vw, 64px); background: var(--mist); border-radius: 0 0 48px 48px; }
.hero__copy { grid-column: 1 / 8; position: relative; z-index: 2; padding-bottom: 72px; justify-self: start; width: fit-content; max-width: 100%; }
.hero__title { font-size: var(--step-display); line-height: 1.02; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line > span { display: inline-block; }
/* el párrafo toma el ancho del título (contain) y se justifica */
.hero__lead { margin-top: 32px; padding-left: 22px; border-left: 4px solid var(--gold); font-size: var(--step-lead); line-height: 1.55; color: var(--muted); contain: inline-size; text-align: justify; text-wrap: pretty; }
.hero__lead strong { display: block; margin-top: 6px; font-weight: 600; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 44px; }
.hero__guide { grid-column: 8 / 13; position: relative; z-index: 1; align-self: end; justify-self: end; }
.portal { position: relative; overflow: hidden; width: clamp(340px, 36vw, 540px); max-height: calc(100svh - 136px); aspect-ratio: 6 / 7; border-radius: 300px 300px 0 0; background: #fff; isolation: isolate; }
.portal__sun { color: #D9E6EF; width: 92%; aspect-ratio: 972 / 1208; left: 4%; top: 2%; animation: sun-spin 60s linear infinite; }
.portal__helenita { position: relative; width: 100%; height: 100%; }
@keyframes sun-spin { to { transform: rotate(360deg); } }
.hero__sun { color: var(--gold); opacity: 0.22; width: clamp(160px, 16vw, 260px); aspect-ratio: 972 / 1208; left: calc(var(--m) - 60px); bottom: -70px; z-index: 0; animation: sun-sway 14s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
@keyframes sun-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

.bubble { position: relative; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 16px 20px; font-size: var(--step-body); line-height: 1.45; box-shadow: 0 10px 30px rgb(10 34 51 / 0.08); /* taste-skill-ignore: speech bubble floats over the figure */ }
.bubble::after { content: ""; position: absolute; width: 18px; height: 18px; background: inherit; transform: rotate(45deg); }
.bubble--hero { position: absolute; z-index: 3; top: -56px; left: -2%; max-width: 260px; }
.bubble--hero::after { right: 26px; bottom: -8px; }
.bubble--hero p { min-height: 2.9em; }

/* Trust band */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 var(--m) clamp(40px, 4vw, 64px); }
.trust__item { display: grid; align-content: space-between; gap: 28px; min-height: clamp(180px, 16vw, 230px); padding: clamp(22px, 2.2vw, 32px); border-radius: var(--radius); background: var(--navy); color: var(--on-navy-muted); }
.trust__item:nth-child(2) { background: var(--gold); color: var(--ink); }
.trust__item:nth-child(2) .trust__num { color: var(--ink); }
.trust__item:nth-child(3) { background: var(--blue-deep); color: #E3F3FA; }
.trust__item:nth-child(4) { background: var(--mist); color: var(--muted); }
.trust__item:nth-child(4) .trust__num { color: var(--ink); }
.trust__num { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem); line-height: 1; color: var(--on-navy); font-variant-numeric: lining-nums tabular-nums; }
.trust__num--word { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); padding-top: 0.25em; }
.trust__item p:last-child { max-width: 22ch; }

/* Marquee */
.marquee { overflow: hidden; padding: clamp(8px, 1vw, 16px) 0 clamp(48px, 5vw, 80px); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee__list { display: flex; flex: none; list-style: none; padding: 0; }
.marquee__list li { display: flex; align-items: center; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); white-space: nowrap; color: var(--muted); }
.marquee__list li::after { content: ""; width: 14px; height: 17px; margin: 0 clamp(20px, 2.4vw, 36px); background: var(--gold); -webkit-mask: url(img/sol.png) center / contain no-repeat; mask: url(img/sol.png) center / contain no-repeat; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Booking */
.book { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; padding: var(--section) var(--m); background: var(--mist); }
.book__aside { grid-column: 1 / 5; position: sticky; top: 128px; }
.book__lead { margin-top: 24px; color: var(--muted); max-width: 40ch; }
.book__guide { position: relative; margin-top: 40px; display: grid; grid-template-columns: minmax(170px, 54%) minmax(0, 1fr); align-items: start; gap: 18px; }
.book__helenita { overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: #fff; }
.bubble--guide { margin-top: 22%; }
.bubble--guide::after { left: -8px; top: 22px; }
.bubble.is-new p { animation: bubble-in 360ms var(--ease-out); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }

.wizard { grid-column: 6 / 13; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 48px); }
.wizard__steps { display: flex; gap: 8px; list-style: none; padding: 0; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.wizard__steps li { flex: 1; transition: color 200ms ease; }
.wizard__steps li.is-current, .wizard__steps li.is-done { color: var(--ink); }
.wizard__bar { height: 4px; margin: 14px 0 36px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.wizard__bar span { display: block; height: 100%; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0.3333); transition: transform 420ms var(--ease-in-out); }

.panel { border: 0; padding: 0; min-width: 0; }
.panel[hidden], .field[hidden], .pqrs__attach[hidden] { display: none; }
.panel.is-entering { animation: panel-in 320ms var(--ease-out); }
.panel.is-entering.from-left { animation-name: panel-in-left; }
@keyframes panel-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes panel-in-left { from { opacity: 0; transform: translateX(-24px); } }
.panel__title { padding: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.15; margin-bottom: 28px; }
.panel__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.panel__error { margin-top: 16px; color: var(--error); font-weight: 600; font-size: var(--step-small); }
.panel__note { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.svc-hint { margin: -16px 0 20px; }
.svc-hint:empty { display: none; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; cursor: pointer; display: block; }
.choice input, .svc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__body { display: grid; gap: 4px; height: 100%; padding: 22px; border-radius: var(--radius-sm); background: var(--mist); color: var(--muted); font-size: var(--step-small); line-height: 1.45; transition: background-color 220ms ease, color 220ms ease, transform 160ms var(--ease-out); }
.choice__body strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: 1.5rem; line-height: 1.15; color: var(--ink); margin-bottom: 6px; transition: color 220ms ease; }
.choice input:checked + .choice__body { background: var(--navy); color: var(--on-navy-muted); }
.choice input:checked + .choice__body strong { color: var(--on-navy); }
.choice input:focus-visible + .choice__body, .svc-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice:active .choice__body, .svc-opt:active span { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .choice input:not(:checked) + .choice__body:hover, .svc-opt input:not(:checked) + span:hover { background: var(--mist-2); } }

.field { display: grid; gap: 8px; }
.field label { font-size: var(--step-small); font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  font: 400 var(--step-body)/1.4 var(--font-text); color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(5 150 200 / 0.18); /* taste-skill-ignore: focus ring */ }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.service-list.is-swapping { animation: bubble-in 300ms var(--ease-out); }
.svc-opt { position: relative; cursor: pointer; }
.svc-opt span { display: flex; align-items: center; min-height: 56px; height: 100%; padding: 12px 18px; border-radius: 12px; background: var(--mist); font-weight: 500; line-height: 1.35; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.svc-opt input:checked + span { background: var(--navy); color: var(--on-navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--wide { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-small); color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.check.is-invalid span { color: var(--error); }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.summary span { padding: 8px 14px; border-radius: var(--pill); background: var(--mist); font-size: var(--step-small); font-weight: 600; }

/* Services */
.services { padding: var(--section) var(--m); }
.services__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.services__head .h2 { grid-column: 1 / 7; }
.services__head p { grid-column: 8 / 13; color: var(--muted); }
.tabs { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(48px, 5vw, 80px); }
.tabs__list { grid-column: 1 / 5; display: grid; gap: 4px; align-content: start; }
.tab { text-align: left; padding: 14px 20px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 500 var(--step-body)/1.3 var(--font-text); cursor: pointer; transition: background-color 220ms ease, color 220ms ease; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--on-navy); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { background: var(--mist); color: var(--ink); } }
.tabs__panel { grid-column: 6 / 13; padding: clamp(28px, 3.4vw, 52px); border-radius: var(--radius); background: var(--mist); }
.tabs__panel.is-swapping > * { animation: bubble-in 360ms var(--ease-out) both; }
.tabs__panel.is-swapping > *:nth-child(2) { animation-delay: 50ms; }
.tabs__panel.is-swapping > *:nth-child(3) { animation-delay: 100ms; }
.tabs__panel.is-swapping > *:nth-child(4) { animation-delay: 150ms; }
.tabs__panel h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1.1; }
.tabs__panel > p { margin-top: 18px; color: var(--muted); max-width: 58ch; }
.tabs__items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin: 32px 0 36px; list-style: none; padding: 0; }
.tabs__items li { display: flex; gap: 12px; align-items: baseline; }
.tabs__items li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }

/* Community */
.community { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 56px; padding: var(--section) var(--m); background: var(--navy); color: var(--on-navy-muted); }
.community__sun { color: var(--navy-2); width: 560px; aspect-ratio: 972 / 1208; left: -120px; bottom: -160px; animation: sun-sway 16s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
.community__head { grid-column: 1 / 6; position: relative; }
.community__head .h2 { color: var(--on-navy); }
.community__head p { margin-top: 24px; }
.community__grid { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 44px var(--gap); position: relative; align-content: center; }
.community__grid h3 { color: var(--on-navy); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.community__grid h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }

/* Support */
.support { padding: var(--section) var(--m) 0; }
.support__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 36px; }
.support__grid article { padding: 32px; border-radius: var(--radius); background: var(--mist); }
.support__grid p { margin-top: 10px; color: var(--muted); }

/* Sites */
.sites { padding: var(--section) var(--m); }
.sites__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.sites__head .h2 { grid-column: 1 / 7; }
.sites__head p { grid-column: 8 / 13; color: var(--muted); }
.sites__body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(40px, 4vw, 64px); }
.sites__map { grid-column: 1 / 9; height: clamp(420px, 44vw, 620px); border-radius: var(--radius); overflow: hidden; background: var(--mist); z-index: 0; }
.sites__list { grid-column: 9 / 13; display: grid; gap: 12px; align-content: start; }
.site { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; width: 100%; padding: 12px; border: 0; border-radius: 18px; background: var(--mist); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: background-color 240ms ease, color 240ms ease, transform 160ms var(--ease-out); }
.site:active { transform: scale(0.98); }
.site[aria-pressed="true"] { background: var(--navy); color: var(--on-navy-muted); }
.site[aria-pressed="true"] strong { color: var(--on-navy); }
.site__photo { display: block; aspect-ratio: 4 / 3; border-radius: 12px; }
.site__text { display: grid; gap: 2px; font-size: var(--step-small); line-height: 1.4; }
.site__text strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: 1.45rem; line-height: 1.2; margin-bottom: 4px; }
@media (hover: hover) and (pointer: fine) { .site[aria-pressed="false"]:hover { background: var(--mist-2); } }
.sites__fallback { padding: 32px; color: var(--muted); }

/* Google map */
.sites__map { position: relative; }
.sites__map iframe { display: block; width: 100%; height: 100%; border: 0; transition: opacity 300ms ease; }
.sites__map.is-loading iframe { opacity: 0.35; }
.map-go { position: absolute; left: 16px; bottom: 16px; }

/* About */
.about { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: var(--section) var(--m); background: var(--mist); }
.about__intro { grid-column: 1 / 6; }
.about__lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.55; color: var(--muted); }
.about__rows { grid-column: 7 / 13; display: grid; gap: 36px; }
.about__rows dt { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.15; }
.about__rows dd { margin-top: 8px; color: var(--muted); max-width: 58ch; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: var(--section) var(--m); }
.faq__head { grid-column: 1 / 5; }
.faq__foot { grid-column: 1 / -1; margin-top: clamp(48px, 5vw, 72px); text-align: center; }
.faq__foot > p { color: var(--muted); }
.faq__contact { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; }
.faq__contact li { display: grid; gap: 2px; }
.faq__contact span { font-size: var(--step-small); color: var(--muted); }
.faq__contact a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.faq__helenita { width: min(100%, 380px); aspect-ratio: 1; margin-top: 16px; }
.faq__list { grid-column: 6 / 13; display: grid; gap: 8px; align-content: start; }
.q { border-radius: 16px; background: var(--mist); transition: background-color 240ms ease; }
.q[open] { background: var(--mist-2); }
.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-size: var(--step-lead); font-weight: 500; line-height: 1.35; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; transition: transform 240ms var(--ease-out); }
.q[open] summary::after { transform: rotate(45deg); }
.q:not([open]) p { display: none; }
.q p { padding: 0 22px 22px; color: var(--muted); max-width: 62ch; animation: bubble-in 260ms var(--ease-out); }

/* Partners */
.partners { padding: clamp(72px, 8vw, 120px) var(--m); background: var(--navy-2); color: var(--on-navy-muted); }
.partners .h3-title { color: var(--on-navy); }
.partners__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 112px); margin-top: 40px; }
.partners h3 { color: var(--on-navy); }
.partners p { margin: 12px 0 20px; max-width: 60ch; }

/* Footer */
.foot { position: relative; overflow: hidden; padding: 56px var(--m) 36px; background: var(--navy); color: var(--on-navy-muted); }
.foot__sun { color: var(--navy-2); width: 520px; aspect-ratio: 972 / 1208; right: -80px; top: -60px; }
.foot__top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.foot__logo { height: 84px; width: auto; }
.foot__up { color: var(--on-navy); font-weight: 600; }
.foot__slogan { position: relative; margin: clamp(56px, 8vw, 120px) 0; font-family: var(--font-display); font-size: clamp(2.6rem, 0.8rem + 6.8vw, 7.5rem); line-height: 1; color: var(--on-navy); max-width: 14ch; }
.foot__cols { position: relative; display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1.3fr; gap: var(--gap); }
.foot__cols h3 { color: var(--on-navy); font-size: var(--step-body); margin-bottom: 10px; }
.foot__cols p { font-size: var(--step-small); line-height: 1.8; }
.foot__cols a { color: var(--on-navy); }
.foot__links { position: relative; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; font-size: var(--step-small); }
.foot__links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.check a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.foot__legal { position: relative; margin-top: 20px; font-size: var(--step-small); }

/* Guide button */
.guide-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 12px; text-decoration: none; opacity: 0; transform: translateY(14px) scale(0.95); pointer-events: none; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.guide-fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.guide-fab__face { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid var(--gold); box-shadow: 0 10px 28px rgb(10 34 51 / 0.22); /* taste-skill-ignore: floating action */ transition: transform 160ms var(--ease-out); }
.guide-fab__face img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 18%; transform: scale(1.5); transform-origin: 55% 28%; }
@media (hover: hover) and (pointer: fine) { .guide-fab:hover .guide-fab__face { transform: scale(1.06); } }
.guide-fab__tip { padding: 12px 16px; border-radius: 16px; background: var(--paper); color: var(--ink); font-size: var(--step-small); font-weight: 600; box-shadow: 0 10px 28px rgb(10 34 51 / 0.14); /* taste-skill-ignore: floating tip */ opacity: 0; transform: translateX(8px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.guide-fab.show-tip .guide-fab__tip { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .guide-fab:hover .guide-fab__tip { opacity: 1; transform: none; } }

/* Entrances (only when script runs) */
.js .hero .line > span { transform: translateY(105%); }
.js .hero.is-ready .line > span { animation: line-up 1000ms var(--ease-out) forwards; }
.js .hero.is-ready .line + .line > span { animation-delay: 120ms; }
.js .hero__lead, .js .hero__actions, .js .hero__guide { opacity: 0; }
.js .hero.is-ready .hero__lead { animation: fade-up 800ms var(--ease-out) 380ms forwards; }
.js .hero.is-ready .hero__actions { animation: fade-up 800ms var(--ease-out) 480ms forwards; }
.js .hero.is-ready .hero__guide { animation: rise-in 1100ms var(--ease-out) 200ms forwards; }
@keyframes line-up { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }

.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
.js .rv-clip.in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .intro.is-on { display: none; }
  .js .hero .line > span, .js .hero.is-ready .line > span { transform: none; animation: none; }
  .js .hero__lead, .js .hero__actions, .js .hero__guide { opacity: 1; animation: none !important; }
  .js .rv { transform: none; transition: opacity 300ms ease; }
  .js .rv-clip { clip-path: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__list[aria-hidden] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; padding: 0 var(--m); row-gap: 8px; }
  .hero__sun, .community__sun { animation: none; }
  .portal__sun { animation: none; }
  .panel.is-entering, .tabs__panel.is-swapping > * { animation: none; }
}

/* Tablet */
@media (max-width: 1080px) {
  .bar__nav { gap: 18px; font-size: 0.95rem; }
  .hero { min-height: 0; padding-top: 72px; }
  .hero__copy { grid-column: 1 / 8; padding-bottom: 56px; }
  .hero__title { font-size: clamp(2.4rem, 1rem + 4.4vw, 3.6rem); }
  .hero__guide { grid-column: 8 / 13; }
  .portal { width: 100%; }
  .bubble--hero { top: -48px; left: -6%; max-width: 230px; font-size: var(--step-small); }
  .trust { grid-template-columns: 1fr 1fr; }
  .book__aside { grid-column: 1 / 13; position: static; margin-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); align-items: start; }
  .book__aside { grid-template-rows: auto 1fr; }
  .book__aside > .h2, .book__aside > .book__lead { grid-column: 1; }
  .book__guide { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .book__guide { grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); }
  .wizard { grid-column: 1 / 13; }
  .tabs__list { grid-column: 1 / 13; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px; margin-bottom: 20px; scrollbar-width: none; }
  .tab { white-space: nowrap; background: var(--mist); }
  .tabs__panel { grid-column: 1 / 13; }
  .community__head, .community__grid { grid-column: 1 / 13; }
  .sites__map { grid-column: 1 / 13; }
  .sites__list { grid-column: 1 / 13; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
  .site { grid-template-columns: 1fr; }
  .about__intro, .about__rows { grid-column: 1 / 13; }
  .about__rows { margin-top: 48px; }
  .faq__head, .faq__list { grid-column: 1 / 13; }
  .faq__list { margin-top: 40px; }
  .services__head .h2, .services__head p, .sites__head .h2, .sites__head p { grid-column: 1 / 13; }
  .services__head p, .sites__head p { margin-top: 16px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .book__aside { grid-template-columns: 1fr; }
  .book__guide { grid-column: 1; grid-row: auto; margin-top: 32px; grid-template-columns: 180px minmax(0, 340px); }
  .support__grid { grid-template-columns: 1fr; }
  .support__grid article { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 8px 28px; }
  .support__grid p { margin-top: 0; }
  .bar__menu { display: inline-flex; }
  .bar__nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--m) 20px; background: var(--paper); font-size: var(--step-lead); opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  .bar__nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .bar__nav a { padding: 14px 0; }
  .bar__nav a::after { display: none; }
  .bar__cta { margin-left: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero__copy { grid-column: 1; padding-bottom: 0; max-width: 640px; }
  .hero__title { font-size: clamp(2rem, 0.6rem + 7vw, 4.25rem); }
  .hero__guide { grid-column: 1; margin-top: 40px; display: grid; justify-items: center; justify-self: stretch; }
  .portal { width: min(100%, 420px); max-height: none; }
  .bubble--hero { position: relative; top: auto; left: auto; order: -1; justify-self: center; margin: 0 0 14px -120px; max-width: 280px; font-size: var(--step-body); }
  .bubble--hero::after { left: auto; right: 40px; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --gap: 14px; }
  .bar { height: 76px; gap: 12px; }
  .bar__brand img { height: 56px; }
  .bar__cta { min-height: 44px; padding: 0 18px; }
  .bar__menu { padding: 0 12px; }
  .bar__menu-label { display: none; }
  html { scroll-padding-top: 80px; }

  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 16px; }
  .hero__copy { grid-column: 1; padding-bottom: 8px; }
  .hero__lead { margin-top: 22px; padding-left: 16px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__guide { margin-top: 28px; }
  .portal { width: min(100%, 360px); }
  .bubble--hero { justify-self: start; margin: 0 0 14px; }
  .hero__title { font-size: min(8.6vw, 3rem); }
  .hero__sun { display: none; }

  .trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust__item { min-height: 150px; gap: 16px; }

  .book__aside { grid-template-columns: 1fr; }
  .book__guide { grid-column: 1; grid-row: auto; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; margin-top: 28px; }
  .bubble--guide { margin-top: 18%; padding: 14px 16px; font-size: var(--step-small); }
  .hero { border-radius: 0 0 32px 32px; }
  .choice-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .panel__nav { flex-wrap: wrap-reverse; }
  .panel__nav .btn { flex: 1 1 auto; }
  .tabs__items { grid-template-columns: 1fr; }
  .community__grid { grid-template-columns: 1fr; gap: 32px; }
  .support__grid article { grid-template-columns: 1fr; }
  .sites__map { height: 380px; }
  .sites__list { grid-template-columns: 1fr; }
  .site { grid-template-columns: 96px 1fr; }
  .partners__grid { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; gap: 28px; }
  .foot__logo { height: 64px; }
  .guide-fab { right: 14px; bottom: 14px; }
  .guide-fab__face { width: 66px; height: 66px; }
  .guide-fab__tip { display: none; }
}

/* Noticias */
.news { padding: var(--section) var(--m); padding-top: 0; }
.news__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px var(--gap); }
.news__head p { grid-column: 1; color: var(--muted); max-width: 52ch; }
.news__nav { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 10px; }
.news__btn { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--navy); color: var(--on-navy); cursor: pointer; transition: opacity 200ms ease, transform 160ms var(--ease-out); }
.news__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.news__btn:disabled { opacity: 0.25; cursor: default; }
.news__btn:not(:disabled):active { transform: scale(0.94); }
.news__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; overscroll-behavior-y: auto; scrollbar-width: none; padding-bottom: 4px; }
.news__track::-webkit-scrollbar { display: none; }
.post { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.post__cover { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.post__cover .sun-mark { -webkit-mask-image: url(img/sol-solido.png); mask-image: url(img/sol-solido.png); opacity: 0.9; width: 52%; aspect-ratio: 972 / 1208; right: 8%; top: 50%; transform: translateY(-50%) rotate(-8deg); }
.post__cover img { position: absolute; left: 50%; bottom: -38%; width: 92%; height: auto; transform: translateX(-50%); }
.post__cover--blue { background: var(--blue-deep); color: var(--gold); }
.post__cover--rose { background: #E9739B; color: #fff; }
.post__cover--navy { background: var(--navy); color: var(--blue); }
.post__cover--gold { background: var(--gold); color: var(--blue); }
.post__cover--mist { background: #D9E6EF; }
.post__cover--sky { background: #BFE3F2; }
.post__body { display: grid; align-content: start; gap: 12px; padding: 24px clamp(20px, 2vw, 28px) 28px; }
.post__body .link-arrow { margin-top: 4px; align-self: end; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--step-small); color: var(--muted); }
.post__tag { padding: 4px 12px; border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 600; }
.post h3 { font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem); line-height: 1.25; }
.post__body > p:not(.post__meta) { color: var(--muted); font-size: var(--step-small); line-height: 1.55; }

/* Sonidos del formulario */
.wizard { position: relative; }
.wizard__steps { padding-right: 44px; }
.sound-toggle { position: absolute; top: clamp(16px, 2.2vw, 30px); right: clamp(16px, 2.2vw, 30px); display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); cursor: pointer; }
.sound-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .spk { fill: currentColor; }
.sound-toggle .off, .sound-toggle[aria-pressed="false"] .on { display: none; }
.sound-toggle[aria-pressed="false"] .off { display: inline; }

/* PQRS */
.pqrs { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; padding: var(--section) var(--m); background: var(--mist); }
.pqrs__aside { grid-column: 1 / 5; position: sticky; top: 120px; }
.pqrs__aside > p { margin-top: 20px; color: var(--muted); }
.pqrs__aside .pqrs__note { font-size: var(--step-small); }
.pqrs__helenita { width: min(100%, 300px); aspect-ratio: 1; margin-top: 24px; }
.pqrs__form { grid-column: 6 / 13; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 48px); }
.pqrs__types { margin: 0 0 28px; padding: 0; border: 0; }
.pqrs__types legend { padding: 0; margin-bottom: 14px; font-size: var(--step-small); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: block; padding: 10px 18px; border-radius: 99px; background: var(--mist); font-weight: 500; transition: background-color 200ms ease, color 200ms ease; }
.pill input:checked + span { background: var(--navy); color: var(--on-navy); }
.pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.form-grid .pqrs__types { margin: 0; }
.pqrs__attach { padding: 16px 18px; border-radius: var(--radius-sm); background: #E3F3FA; font-size: var(--step-small); line-height: 1.5; }
.pqrs__actions { margin-top: 28px; }
.pqrs__done { margin-top: 24px; padding: 20px 22px; border-radius: var(--radius-sm); background: #E3F3FA; color: var(--ink); line-height: 1.5; }
.pqrs__done strong { display: block; margin-bottom: 6px; }
.pqrs__done .btn { margin-top: 14px; min-height: 44px; }
.pqrs__done a { overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  .news__track { grid-auto-columns: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 900px) {
  .pqrs__aside { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .pqrs__helenita { display: none; }
  .pqrs__form { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .news__head { grid-template-columns: 1fr; }
  .news__nav { grid-column: 1; grid-row: auto; }
  .news__btn { width: 46px; height: 46px; }
  .news__track { grid-auto-columns: 84%; margin-right: calc(-1 * var(--m)); padding-right: var(--m); scroll-padding-left: 0; }
  .pqrs__actions .btn { width: 100%; }
}

/* Encuadre de las fotos de las sedes (que se vea el letrero) */
.site__photo img[src*="san-juan"] { object-position: 50% 22%; }
.site__photo img[src*="valledupar"] { object-position: 50% 30%; }

/* Sede seleccionada: se agranda (foto grande + datos); las demás quedan compactas */
.site { transition: grid-template-columns 420ms var(--ease-out), background-color 240ms ease, color 240ms ease, transform 160ms var(--ease-out), padding 420ms var(--ease-out); }
.site[aria-pressed="false"] { grid-template-columns: 84px 1fr; }
.site[aria-pressed="false"] .site__text > span:nth-of-type(n+2) { display: none; }
.site[aria-pressed="false"] .site__text strong { font-size: 1.2rem; margin-bottom: 0; }
.site[aria-pressed="true"] { grid-template-columns: 1fr; gap: 16px; padding: 14px 14px 22px; }
.site[aria-pressed="true"] .site__photo { aspect-ratio: 16 / 10; border-radius: 12px; }
.site[aria-pressed="true"] .site__text { padding: 0 8px; font-size: var(--step-body); gap: 4px; animation: fade-up 420ms var(--ease-out) both; }
.site[aria-pressed="true"] .site__text strong { font-size: 1.7rem; }
@media (max-width: 1080px) {
  .sites__list { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .sites__list > li:has(.site[aria-pressed="true"]) { grid-column: 1 / -1; order: -1; }
  .sites__list .site { height: 100%; }
  .site[aria-pressed="true"] { grid-template-columns: minmax(0, 1.2fr) 1fr; align-items: center; padding: 14px; }
}
@media (max-width: 760px) {
  .sites__list { grid-template-columns: 1fr; }
  .sites__list > li:has(.site[aria-pressed="true"]) { grid-column: auto; order: 0; }
  .site[aria-pressed="false"] { grid-template-columns: 72px 1fr; }
  .site[aria-pressed="true"] { grid-template-columns: 1fr; padding: 12px 12px 18px; }
  .site[aria-pressed="true"] .site__text strong { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .site, .site[aria-pressed="true"] .site__text { transition: none; animation: none; } }

/* Botón flotante de Helenita: solo el círculo (enlace) responde al toque; el globo nunca */
.guide-fab, .guide-fab.is-on, .guide-fab__tip { pointer-events: none; }
.guide-fab__face { display: block; flex: none; }
.guide-fab.is-on .guide-fab__face { pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.guide-fab__face:active { transform: scale(0.95); }


/* Aviso "Haz clic para escucharme" (solo computador, mientras el navegador bloquee el audio) */
.voice-hint { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; margin-top: 10px; padding: 7px 14px 7px 10px; border: 0; border-radius: 99px; background: var(--gold); color: var(--ink); font: inherit; font-size: var(--step-small); font-weight: 600; cursor: pointer; animation: hint-in 400ms var(--ease-out) both; }
.voice-hint[hidden] { display: none; }
.voice-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.voice-hint .spk { fill: currentColor; }
@keyframes hint-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bubble--hero:has(.voice-hint:not([hidden])) p { min-height: 0; }

/* Nota bajo los "Consejos de Helenita" */
.post__body > p.post__note { margin-top: -4px; font-size: 0.8rem; line-height: 1.4; font-style: italic; opacity: 0.85; }

/* Aviso corto de cookies */
.cookie-note { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; background: var(--navy); color: var(--on-navy, #fff); border-radius: 16px; box-shadow: 0 12px 32px rgba(10, 34, 51, 0.28); font-size: var(--step-small); line-height: 1.45; }
.cookie-note[hidden] { display: none; }
.cookie-note p { flex: 1 1 260px; margin: 0; }
.cookie-note__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.cookie-note__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookie-note__ok { padding: 9px 18px; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* Datos del responsable cuando el paciente es menor de edad */
.form-grid [data-menor][hidden] { display: none; }
.minor-note { margin: 0; padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--mist); border-radius: 0 10px 10px 0; font-size: var(--step-small); }

/* Noticias reales: tarjeta clicable y ventana flotante */
.post[data-post] { cursor: pointer; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.post[data-post]:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 34, 51, 0.12); }
.post__open { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }
.post__open:hover::after { transform: translateX(4px); }
.post__cover--photo { background: var(--navy); }
.post__cover--shot { background: var(--mist); }
.post__cover--shot img { object-position: 50% 0; }
.post__cover--photo img { inset: 0; left: 0; bottom: auto; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: none; }

.post-modal { width: min(640px, calc(100vw - 24px), calc(100dvh - 150px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(10, 34, 51, 0.35); overflow: hidden; }
.post-modal::backdrop { background: rgba(10, 34, 51, 0.72); }
.post-modal[open] { animation: modal-in 260ms var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.post-modal__box { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.post-modal__head { position: relative; padding: 20px 64px 14px 24px; border-bottom: 1px solid var(--mist-2); }
.post-modal__title { margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); }
.post-modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); cursor: pointer; }
.post-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.post-modal__content { overflow-y: auto; overscroll-behavior: contain; }
.post-modal__text { display: grid; gap: 12px; padding: 20px 24px 28px; font-size: var(--step-small); line-height: 1.6; }
.post-modal__text p, .post-modal__text ul, .post-modal__text ol { margin: 0; }
.post-modal__text h4 { margin: 6px 0 0; font-size: 1.05rem; }
.post-modal__text ul { padding-left: 1.2em; display: grid; gap: 8px; }
.post-modal__text .btn { justify-self: start; margin-top: 8px; }
.post-modal__tags { color: var(--blue-deep); }
.post-modal__note { padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--mist); border-radius: 0 10px 10px 0; }
.steps-list { list-style: none; padding: 0; counter-reset: paso; display: grid; gap: 10px; }
.steps-list li { counter-increment: paso; position: relative; padding-left: 44px; min-height: 30px; }
.steps-list li::before { content: counter(paso); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-weight: 700; font-size: 0.9rem; }

.gallery { position: relative; background: var(--navy); }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { margin: 0; scroll-snap-align: center; aspect-ratio: 1; }
.gallery__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery__btn { position: absolute; top: calc(50% - 19px); display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(10, 34, 51, 0.25); transition: opacity 200ms ease; }
.gallery__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gallery__btn--prev { left: 12px; }
.gallery__btn--next { right: 12px; }
.gallery__btn:disabled { opacity: 0; pointer-events: none; }
.gallery__dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 14px; pointer-events: none; }
.gallery__dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.55); transition: width 200ms ease, background 200ms ease; }
.gallery__dots span.is-on { width: 22px; background: var(--gold); }
html.modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .post-modal { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .post-modal__box { max-height: 100dvh; height: 100dvh; }
  .gallery__btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .post-modal[open] { animation: none; } .gallery__track { scroll-behavior: auto; } .post[data-post] { transition: none; } }

/* Enlace a Instagram */
.ig-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.ig-icon { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.ig-icon .ig-dot { fill: currentColor; stroke: none; }
@media (min-width: 761px) and (max-width: 1080px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
