/* Sistema de vidrio común. Cada propuesta fija sus tokens en :root. Radios: 30 / 18 / pill. */
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--base); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; padding: 0; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line) transparent; scrollbar-width: thin; }

#gl { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100dvh; display: block; }
.no-gl body { background: var(--fallback); }
.no-gl #gl { display: none; }

h1, h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.06; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); font-weight: var(--h2-weight, var(--display-weight)); }
.lead { max-width: 46ch; margin-top: 16px; color: var(--soft); font-size: 1.125rem; line-height: 1.55; }
.small { max-width: 60ch; color: var(--soft); font-size: .875rem; }

/* z-index: gl 0, página 1, hud 20, barra 30, aviso 34, whatsapp 35, skip 40 */
main, .foot { position: relative; z-index: 1; }

.glass {
  position: relative;
  border-radius: 30px;
  background: var(--pane);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--shine), inset 0 0 24px var(--inner), 0 18px 48px var(--drop);
  backdrop-filter: blur(var(--blur)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .bar, .hud, .nudge { background: var(--solid) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

.js .glass.lift, .js .reveal { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(10px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
.js .glass.lift.in, .js .reveal.in { opacity: 1; transform: none; filter: none; }

.btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 30px; border-radius: 999px; background: var(--cta); color: var(--on-cta); font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 12px 30px var(--drop); transition: transform .4s var(--ease), box-shadow .4s var(--ease), filter .3s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 44px; padding: 0 22px; font-size: .9375rem; }
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: opacity .25s; }
.link:hover { opacity: .68; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 40; padding: 10px 16px; background: var(--solid); color: var(--ink); }
.skip:focus { top: 12px; }

.bar { position: fixed; top: 16px; left: 50%; z-index: 30; display: flex; align-items: center; gap: 24px; width: min(1180px, calc(100vw - 32px)); height: 64px; padding: 0 10px 0 22px; transform: translateX(-50%); border-radius: 999px; background: var(--pane); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--shine), 0 16px 40px var(--drop); backdrop-filter: blur(var(--blur)) saturate(170%); -webkit-backdrop-filter: blur(var(--blur)) saturate(170%); }
.logo { display: block; width: 84px; margin-right: auto; }
.logo img { height: auto; object-fit: contain; filter: var(--logo); }
.bar-links { display: flex; gap: 24px; font-size: .9375rem; }
.bar-links a { padding: 10px 0; text-decoration: none; opacity: .86; transition: opacity .25s; }
.bar-links a:hover { opacity: 1; }
.menu-btn { display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; }
.menu-btn svg { width: 24px; height: 24px; fill: currentColor; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.lang { display: flex; font-size: .8125rem; }
.lang button { min-width: 34px; min-height: 44px; color: var(--soft); }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }

.hud { position: fixed; left: 24px; bottom: 24px; z-index: 20; display: flex; align-items: baseline; gap: 10px; padding: 9px 18px; border-radius: 999px; background: var(--pane); border: 1px solid var(--edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: .875rem; pointer-events: none; }
.hud-name { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); min-width: 2.2ch; }
.hud-zone { color: var(--soft); }

.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 35; display: flex; align-items: center; height: 60px; padding: 0 16px; gap: 0; border-radius: 999px; background: #0E7A43; color: #fff; text-decoration: none; font-weight: 500; box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 14px 34px rgb(8 60 36 / .4); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.wa-float svg { flex: none; width: 28px; height: 28px; fill: currentColor; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .6s var(--ease), margin .6s var(--ease); }
.wa-float:hover { transform: translateY(-2px); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 180px; margin-left: 10px; }

.sec { position: relative; display: flex; align-items: center; min-height: 112dvh; padding: 110px clamp(20px, 6vw, 96px); }
.sec.right { justify-content: flex-end; }
.sec.center { justify-content: center; }
.pane { width: min(600px, 100%); padding: clamp(28px, 3.4vw, 52px); }
.pane.wide { width: min(1120px, 100%); }

.hero { position: relative; display: flex; min-height: 100dvh; padding: 120px clamp(20px, 6vw, 96px) 96px; }
.hero-copy { align-self: flex-end; max-width: 640px; }
.hero-sub { max-width: 44ch; margin-top: 22px; color: var(--soft); font-size: 1.1875rem; line-height: 1.55; }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 30px; }
.btn:not(.btn-way):not(.btn-map) { background: linear-gradient(155deg, rgb(255 255 255 / .94), rgb(255 255 255 / .68) 55%, rgb(214 240 235 / .78)); border: 1px solid rgb(255 255 255 / .75); box-shadow: inset 0 1px 0 #fff, inset 0 -10px 18px rgb(148 208 206 / .3), 0 14px 34px var(--drop); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
.btn-map { position: relative; gap: 10px; padding: 0 28px 0 22px; color: #fff; background: linear-gradient(155deg, rgb(46 190 160 / .62), rgb(11 122 102 / .74) 55%, rgb(6 84 74 / .86)); border: 1px solid rgb(190 245 230 / .5); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -10px 18px rgb(120 240 210 / .18), 0 14px 34px rgb(4 50 44 / .45); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); text-shadow: 0 1px 2px rgb(0 40 34 / .4); }
.btn-map svg { flex: none; width: 24px; height: 24px; fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .btn-map::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; animation: map-call 2.6s var(--ease) infinite; }
  @keyframes map-call { 0% { box-shadow: 0 0 0 0 rgb(46 214 172 / .55); } 70%, 100% { box-shadow: 0 0 0 16px rgb(46 214 172 / 0); } }
}
@media (prefers-reduced-transparency: reduce) {
  .btn:not(.btn-way):not(.btn-map) { background: #F3F7F8; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn-map { background: #0B7A66; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.btn-way { gap: 10px; padding: 0 26px 0 22px; background: var(--pane-strong); color: var(--ink); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--shine); }
.btn-way svg { flex: none; width: 22px; height: 22px; fill: currentColor; }

.neck-tool { margin-top: 26px; }
.neck-row { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 20px; }
.neck-fig { width: 100%; height: auto; }
.neck-curve { fill: none; stroke: var(--ink); stroke-width: 15; stroke-dasharray: 13 4; }
.neck-head { fill: var(--pane-strong); stroke: var(--ink); stroke-width: 1.5; }
.neck-force { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.neck-num { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(5rem, 9vw, 7.5rem); line-height: .95; letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; }
.neck-unit { font-size: 1.125rem; }
.neck-say { min-height: 3.2em; margin-top: 12px; color: var(--soft); }
.neck-label { display: block; margin: 12px 0 2px; font-size: .9375rem; }
.neck-label b { font-weight: 600; font-variant-numeric: tabular-nums; }
.neck-range { display: block; width: 100%; height: 44px; accent-color: var(--accent); background: none; cursor: grab; }
.neck-sensor { display: flex; }
.neck-sensor[hidden] { display: none; }
.neck-tool .small { margin-top: 8px; }

.pain-map { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); margin: 28px 0 20px; }
.body-stage { position: relative; height: 620px; overflow: hidden; border-radius: 18px; background: radial-gradient(ellipse at 50% 42%, var(--pane-strong), transparent 72%); }
#body-gl { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.no-body .body-stage { display: none; }
.body-tip { position: absolute; left: 0; right: 0; top: 14px; padding: 0 16px; text-align: center; color: var(--soft); font-size: .9375rem; pointer-events: none; }
.body-views { position: absolute; left: 50%; bottom: 12px; display: flex; transform: translateX(-50%); padding: 3px; border-radius: 999px; background: var(--pane-strong); border: 1px solid var(--edge); }
.body-view { min-width: 84px; min-height: 44px; border-radius: 999px; font-size: .9375rem; transition: background .25s; }
.body-view:hover { background: var(--pane); }
.body-empty { color: var(--soft); font-size: 1.125rem; line-height: 1.45; }
.body-side { display: grid; align-content: start; gap: 18px; min-width: 0; }
.body-marks { display: grid; gap: 12px; }
.body-marks:empty { display: none; }
.body-mark { padding: 12px 16px 6px; border-radius: 18px; background: var(--pane-strong); box-shadow: inset 0 1px 0 var(--shine); animation: swap .5s var(--ease); }
.body-mark-head { display: flex; align-items: center; gap: 12px; }
.body-mark-name { flex: 1; min-width: 0; }
.body-mark-head b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.body-range { display: block; width: 100%; height: 40px; accent-color: var(--accent); background: none; }
.body-pick { display: grid; gap: 6px; font-size: .9375rem; color: var(--soft); }
.body-select { min-height: 48px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--edge); background: var(--solid); color: var(--ink); font: inherit; font-size: 1rem; }
.body-note { min-height: 92px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--edge); background: var(--solid); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.45; resize: vertical; }
.body-why { display: grid; gap: 2px; }
.body-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.body-check input { flex: none; width: 22px; height: 22px; accent-color: var(--accent); }
.body-side .pain-facts { margin: 0; }
.body-side .act { margin-top: 0; }
.pain-list { display: grid; align-content: start; }
.pain-zone { min-height: 46px; padding: 6px 0; text-align: left; color: var(--soft); font-size: 1.1875rem; transition: color .3s, transform .5s var(--ease); }
.pain-zone:hover { color: var(--ink); }
.pain-zone[aria-selected="true"] { color: var(--ink); font-weight: 500; transform: translateX(10px); }
.pain-panel { align-self: start; padding: 22px; border-radius: 18px; background: var(--pane-strong); box-shadow: inset 0 1px 0 var(--shine); animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.pain-conds { font-size: 1.125rem; line-height: 1.45; }
.pain-facts { display: grid; gap: 10px; margin: 18px 0; }
.pain-facts dt { color: var(--soft); font-size: .8125rem; }
.pain-facts dd { margin: 0; }

.people { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.person { grid-column: span 6; padding: 26px; border-radius: 18px; background: var(--pane-strong); box-shadow: inset 0 1px 0 var(--shine); }
.person:first-child { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
.person:first-child .person-name, .person:first-child .person-role { grid-column: 1 / -1; }
.person-name { font-family: var(--display); font-weight: var(--h2-weight, var(--display-weight)); font-size: 1.875rem; letter-spacing: var(--display-track); line-height: 1.15; }
.person-role { color: var(--soft); }
.person-cv { display: grid; gap: 6px; margin-top: 14px; font-size: .9375rem; }
.person-fee { margin-top: 14px; }
.person-price { font-size: 1.25rem; font-variant-numeric: lining-nums tabular-nums; }
.person-extra { display: grid; gap: 4px; margin-top: 6px; color: var(--soft); font-size: .875rem; }

.voices-pane { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.voices-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; }
.rating { margin-top: 6px; color: var(--soft); }
.quote { min-height: 230px; margin: 24px 0 0; }
.quote-text { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.34; letter-spacing: -.01em; }
.quote-name { display: block; margin-top: 14px; font-style: normal; font-weight: 500; }
.quote-nav { display: flex; align-items: center; gap: 20px; margin: 8px 0 10px; }
.quote-count { color: var(--soft); font-size: .875rem; font-variant-numeric: tabular-nums; }

.visit-pane address { margin-top: 18px; font-size: 1.3125rem; line-height: 1.35; }
.status { margin-top: 14px; font-weight: 500; }
.status.is-open { color: var(--accent); }
.visit-img { aspect-ratio: 16 / 10; margin-top: 22px; overflow: hidden; border-radius: 18px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding: 28px clamp(20px, 6vw, 96px) 104px; color: var(--soft); font-size: .875rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 16px; }
.foot a:first-child { margin-left: 0; }

.nudge { position: fixed; left: 50%; bottom: 28px; z-index: 34; display: flex; align-items: center; gap: 18px; width: min(460px, calc(100vw - 112px)); padding: 12px 22px; border-radius: 18px; transform: translateX(-50%); background: var(--pane-strong); border: 1px solid var(--edge); box-shadow: 0 20px 50px var(--drop); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); animation: swap .8s var(--ease); font-size: .9375rem; }
.nudge[hidden] { display: none; }

/* Sesión: el vídeo llena la pantalla y se recoge en un marco de vidrio al bajar */
.stage-wrap { position: relative; z-index: 1; height: 210dvh; }
.stage { --p: 0; position: sticky; top: 0; height: 100dvh; overflow: hidden; display: flex; align-items: flex-end; }
.stage-frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(calc(var(--p) * 14dvh) calc(var(--p) * 16vw) calc(var(--p) * 14dvh) calc(var(--p) * 16vw) round calc(var(--p) * 30px)); }
.stage video, .stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--p) * .08)); }
.stage-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(6 16 22 / .72), rgb(6 16 22 / .12) 55%, rgb(6 16 22 / .34)); }
.stage .hero-copy { position: relative; z-index: 1; padding: 0 clamp(20px, 6vw, 96px) 96px; opacity: calc(1 - var(--p) * 2.4); transform: translateY(calc(var(--p) * -40px)); }
.stage h1, .stage .hero-sub { color: #F3F7F8; }
.stage .hero-sub { color: rgb(243 247 248 / .86); }

@media (max-width: 899px) { #gl { height: 100lvh; } }

@media (max-width: 1080px) {
  .menu-btn { display: flex; }
  .bar-links { position: absolute; top: calc(100% + 8px); right: 0; display: grid; gap: 0; width: min(300px, 100%); padding: 10px 22px; border-radius: 18px; background: var(--solid); border: 1px solid var(--edge); box-shadow: 0 18px 48px var(--drop); font-size: 1.0625rem; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s; }
  .bar-links.open { visibility: visible; opacity: 1; transform: none; }
  .bar-links a { display: flex; align-items: center; min-height: 48px; padding: 0; opacity: 1; }
}

@media (max-width: 860px) {
  .bar { top: 10px; height: 56px; gap: 4px; width: calc(100vw - 20px); padding: 0 7px 0 16px; }
  .logo { width: 68px; }
  .hero { padding: 96px 16px 104px; }
  body { line-height: 1.68; }
  .sec, .sec.right { justify-content: center; min-height: 0; margin-top: 78svh; padding: 0 12px; }
  .foot { margin-top: 60svh; }
  .pane { padding: 34px 24px; }
  .lead { margin-top: 18px; }
  .act { gap: 14px 24px; }
  .pain-map { gap: 26px; margin: 32px 0 26px; }
  .body-stage { height: 520px; margin: 0 -8px; }
  .pain-zone { min-height: 52px; }
  .pain-panel { padding: 24px; }
  .pain-facts { gap: 14px; margin: 22px 0; }
  .people { gap: 18px; margin-top: 34px; }
  .person-cv { gap: 10px; margin-top: 18px; }
  .person-fee { margin-top: 20px; }
  .neck-say { margin-top: 18px; }
  .neck-label { margin-top: 18px; }
  .neck-tool { margin-top: 30px; }
  .visit-pane address { margin-top: 22px; }
  .status { margin-top: 18px; }
  .pain-map, .voices-pane { grid-template-columns: 1fr; }
  .person, .person:first-child { grid-column: span 12; display: block; padding: 24px; }
  .voices-img { aspect-ratio: 5 / 4; }
  .quote { min-height: 320px; }
  .hud { display: none; }
  .glass { background: color-mix(in srgb, var(--solid) 74%, transparent); }
  .wa-float { right: 12px; bottom: 12px; height: 56px; padding: 0 14px; }
  .nudge { left: 12px; right: 80px; bottom: 74px; width: auto; transform: none; }
  .stage .hero-copy { padding: 0 16px 104px; }
  .stage-frame::after { background: linear-gradient(to top, rgb(6 16 22 / .86), rgb(6 16 22 / .62) 48%, rgb(6 16 22 / .22) 72%, rgb(6 16 22 / .34)); }
  .stage-frame { clip-path: inset(calc(var(--p) * 18dvh) calc(var(--p) * 5vw) calc(var(--p) * 18dvh) calc(var(--p) * 5vw) round calc(var(--p) * 30px)); }
}

@media (max-width: 400px) {
  .lang button { min-width: 28px; }
  .bar .btn-small { padding: 0 14px; font-size: .875rem; }
}
@media (max-width: 340px) { .bar .btn-small { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .glass.lift, .js .reveal { opacity: 1; transform: none; filter: none; }
}
