/* =============================================================
   theresa.es — LAS PÁGINAS DE SECTORES (Rubén, 2026-10-25, documento 22 «Página web»).

   Van sobre `portada.css` (la portada aprobada: su tipografía, sus tarjetas, sus baldosas,
   `.pt-rv` y `.pt-vivo`) y SOLO con los colores de `paleta.css`. Cada sector cuenta sus bloques
   en el orden que escribió Rubén, y cada bloque entra con un efecto DISTINTO del anterior:
   nada se repite al bajar y nada se mueve solo sin parar. Los efectos ligados al scroll leen
   `--p` (de 0 a 1, lo pone `js/sectores.js`); los que pasan una vez, `.pt-vivo` / `.pt-rv`.

   Prefijo `sx-`. En el escritorio (≥1024px) la web va con `body { zoom: .75 }`: las medidas
   están escritas para ese lienzo (1 px = .75 reales) y `--vh` compensa el zoom en las alturas.
   ============================================================= */

@media (min-width: 1024px) { body { zoom: .75; } }
body { background: var(--c-surface); }

.sx { --vh: 1vh; }
@media (min-width: 1024px) { .sx { --vh: calc(1vh / .75); } }
.sx a { color: inherit; }

/* ── La barra del sector: el nombre, sus hermanos y «Empezar» ── */
.sx-barra { position: sticky; top: var(--hm-cab, 68px); z-index: 40; background: color-mix(in srgb, var(--c-surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--c-border); }
.sx-barra__in { max-width: 1520px; margin: 0 auto; padding: 0 60px; height: 72px; display: flex; align-items: center; gap: 36px; }
.sx-barra__nombre { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--c-text); margin-right: auto; white-space: nowrap; }
.sx-barra__links { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.sx-barra__links::-webkit-scrollbar { display: none; }
.sx-barra__links a { font-size: 16px; font-weight: 600; color: var(--c-text2); text-decoration: none; white-space: nowrap; transition: color .15s; }
.sx-barra__links a:hover { color: var(--c-azul-tx); }
.sx-barra__links a.is-on { color: var(--c-text); font-weight: 800; }
.sx-barra__cta { flex-shrink: 0; padding: 11px 22px; border-radius: 100px; background: var(--g-azul); color: var(--c-surface); font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: var(--sombra-azul); }

/* ── La frase y lo primero que se ve ─────────────────────────── */
.sx-hero { padding: 84px 0 0; }
.sx-frase { margin: 0 auto; max-width: 18ch; text-align: center; text-wrap: balance;
  font-size: clamp(60px, 5vw, 100px); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--c-text); }
.sx-sub { margin: 30px auto 0; max-width: 58ch; text-align: center; text-wrap: balance; font-size: 28px; line-height: 1.45; font-weight: 500; color: var(--c-text2); }
.sx-sub b { font-weight: 700; color: var(--c-text); }
.sx-hero__visual { margin-top: 72px; }

/* la etiqueta pequeña encima de un titular (como «MARKETING» en el catálogo) */
.sx-etq { display: block; margin: 0 0 22px; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text2); }
.sx-cab { max-width: 1120px; margin: 0 0 64px; }
.sx-cab--centro { margin-left: auto; margin-right: auto; text-align: center; }
.sx-cab--centro .pt-lead { margin-left: auto; margin-right: auto; }
.sx-dos { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: center; }
.sx-dos .sx-cab, .sx-dos .pt-cab { margin-bottom: 0; }
.sx-dos--rev > :first-child { order: 2; }
.sx-dos > *, .sx-con-video > *, .sx-reserva > *, .sx-fijo > * { min-width: 0; }

/* ══ EFECTO · el vídeo que se revela al llegar (`--p`) ════════ */
.sx-video { position: relative; overflow: hidden; max-width: 1240px; margin: 0 auto; aspect-ratio: 16 / 9; background: var(--c-surface2);
  box-shadow: var(--sombra-card); will-change: transform, border-radius;
  transform: scale(calc(.88 + .12 * var(--p, 1))); border-radius: calc(80px - 40px * var(--p, 1)); }
.sx-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-video--alta { aspect-ratio: 4 / 5; }
.sx-video__pie { position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 100px;
  background: var(--c-surface); color: var(--c-text); font-size: 16px; font-weight: 700; box-shadow: var(--sombra-card); }
.sx-video__pie i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-rose); animation: pt-late 2.4s ease-in-out infinite; }
/* lo que va al lado de un vídeo alto: el texto apilado en su columna */
.sx-con-video { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.sx-con-video .sx-video { max-width: 520px; margin: 0; transform: none; border-radius: 40px; }
.sx-con-video--rev .sx-video { order: -1; }

/* ══ EFECTO · las herramientas que se juntan en una (fijo, `--p`) ═ */
.sx-junta { position: relative; height: calc(var(--vh) * 240); }
.sx-junta__fijo { position: sticky; top: var(--hm-cab, 68px); height: calc(var(--vh) * 100 - var(--hm-cab, 68px)); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.sx-junta__campo { position: relative; aspect-ratio: 1; max-height: calc(var(--vh) * 78); margin: 0 auto; width: 100%; max-width: 720px; }
.sx-junta__chip { position: absolute; left: 50%; top: 50%; margin: 0; padding: 14px 20px; border-radius: 100px; background: var(--c-surface); border: 1px solid var(--c-border);
  box-shadow: var(--sombra-card); font-size: 17px; font-weight: 700; color: var(--c-text); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px;
  transform: translate(calc(-50% + var(--dx, 0px) * (1 - var(--p, 0))), calc(-50% + var(--dy, 0px) * (1 - var(--p, 0)))) scale(calc(1 - .65 * var(--p, 0)));
  opacity: calc(1.15 - var(--p, 0) * 1.3); }
.sx-junta__chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-rivet); flex-shrink: 0; }
.sx-junta__chip i.a { background: var(--c-azul); } .sx-junta__chip i.m { background: var(--c-menta); } .sx-junta__chip i.r { background: var(--c-rose); }
.sx-junta__una { position: absolute; left: 50%; top: 50%; width: min(78%, 520px); transform: translate(-50%, -50%) scale(calc(.6 + .4 * var(--p, 0))); opacity: calc((var(--p, 0) - .45) * 2.2);
  padding: 40px 44px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sx-junta__una .pt-orbe { width: 110px; height: 110px; }
.sx-junta__una b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--c-text); }
.sx-junta__una span { display: block; font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--c-text2); }
.sx-junta__cuenta { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text2); }

/* ══ EFECTO · el anillo que se llena (`--p`) ══════════════════ */
.sx-anillo { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.sx-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sx-anillo circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.sx-anillo circle:first-child { stroke: var(--c-surface2); }
.sx-anillo circle:last-child { stroke: var(--c-menta); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v, 30) * var(--p, 1)); }
.sx-anillo__v { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.sx-anillo__v b { display: block; font-size: 72px; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--c-text); font-variant-numeric: tabular-nums; }
.sx-anillo__v span { display: block; margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--c-text2); max-width: 12ch; line-height: 1.3; }
.sx-cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.sx-cifra { padding: 44px 40px; text-align: center; }
.sx-cifra b { display: block; font-size: 68px; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--c-text); font-variant-numeric: tabular-nums; }
.sx-cifra span { display: block; margin-top: 12px; font-size: 19px; line-height: 1.4; font-weight: 500; color: var(--c-text2); }

/* ══ EFECTO · la reserva por audio (una vez, `.pt-vivo`) ═══════ */
.sx-voz { padding: 40px 44px; display: flex; flex-direction: column; gap: 22px; }
.sx-voz__mic { display: flex; align-items: center; gap: 18px; }
.sx-voz__mic .pt-ico { border-radius: 50%; background: var(--g-rose); box-shadow: var(--sombra-rose); }
.js .pt-vivo.is-on .sx-voz__mic .pt-ico { animation: sx-late-una 1.4s ease-in-out .2s 2; }
@keyframes sx-late-una { 50% { transform: scale(1.1); } }
.sx-voz__mic b { display: block; font-size: 20px; font-weight: 700; color: var(--c-text); }
.sx-voz__mic span { display: block; margin-top: 3px; font-size: 16px; font-weight: 500; color: var(--c-text2); }
.sx-voz__dicho { margin: 0; font-size: 34px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--c-text); }
.sx-voz__dicho .pt-paso { display: inline-block; margin-right: .26em; }
.sx-mesa { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--c-menta-soft); }
.sx-mesa b { display: block; font-size: 19px; font-weight: 700; color: var(--c-text); }
.sx-mesa span { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--c-text2); }
.sx-plano { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sx-plano i { display: grid; place-items: center; aspect-ratio: 1.3; border-radius: 12px; border: 1.5px solid var(--c-border); font-style: normal; font-size: 15px; font-weight: 800; color: var(--c-text3); }
.sx-plano i.ocupada { background: var(--c-surface2); border-color: transparent; }
.sx-plano i.elegida { background: var(--c-azul); border-color: var(--c-azul); color: var(--c-surface); transition: background .4s ease 1.9s, color .4s ease 1.9s, border-color .4s ease 1.9s; }
.js .pt-vivo:not(.is-on) .sx-plano i.elegida { background: transparent; border-color: var(--c-border); color: var(--c-text3); }

/* ══ EFECTO · el escenario fijo: los pasos bajan, la pantalla cambia ═ */
.sx-fijo { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
.sx-fijo__paso { min-height: calc(var(--vh) * 62); display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .32; transition: opacity .5s ease; }
.sx-fijo__paso.is-on { opacity: 1; }
.sx-fijo__paso .sx-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-azul-soft); color: var(--c-azul-tx); font-size: 17px; font-weight: 800; margin-bottom: 22px; }
.sx-fijo__paso h3 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--c-text); text-wrap: balance; }
.sx-fijo__paso p { margin: 16px 0 0; max-width: 40ch; font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--c-text2); }
.sx-fijo__lado { position: sticky; top: calc(var(--hm-cab, 68px) + 60px); grid-column: 2; grid-row: 1 / -1; min-height: 640px; }
.sx-fijo__vista { position: absolute; inset: 0; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.sx-fijo__vista.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sx-fijo__vista > .pt-card { padding: 36px 40px; }
/* el mismo escenario con un móvil en el lado fijo */
.sx-fijo--movil .sx-fijo__lado { min-height: 820px; display: flex; justify-content: center; }
.sx-fijo--movil .sx-fijo__vista { position: absolute; inset: 0; }

/* ══ EFECTO · las tarjetas en abanico (una vez) ══════════════ */
.sx-abanico { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1240px; margin: 0 auto; align-items: stretch; }
.sx-abanico .pt-card { padding: 36px 36px 40px; display: flex; flex-direction: column; gap: 18px; transform-origin: 50% 110%; }
.js .pt-vivo .sx-abanico .pt-card { transform: translateY(60px) rotate(calc(var(--g, 0) * 2)); }
.js .pt-vivo.is-on .sx-abanico .pt-card { transform: translateY(0) rotate(var(--g, 0)); }
.sx-abanico__cifra { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--c-text); font-variant-numeric: tabular-nums; }
.sx-abanico__cifra small { font-size: 26px; font-weight: 700; margin-left: 4px; }
.sx-qr { width: 120px; height: 120px; color: var(--c-text); }
.sx-enlace { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--c-bg); font-size: 16px; font-weight: 600; color: var(--c-text2); overflow: hidden; }
.sx-enlace b { color: var(--c-text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══ EFECTO · la línea que se dibuja al bajar (`--p`) ═════════ */
.sx-linea { position: relative; max-width: 1240px; margin: 0 auto; }
.sx-linea > svg { position: absolute; left: 0; right: 0; top: 46px; width: 100%; height: 6px; overflow: visible; }
.sx-linea > svg path { fill: none; stroke: var(--c-border); stroke-width: 3; }
.sx-linea > svg path + path { stroke: var(--c-menta); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); stroke-linecap: round; }
.sx-linea__nodos { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 24px; }
.sx-linea__nodos li { list-style: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  opacity: clamp(.28, calc((var(--p, 1) - var(--at, 0)) * 9 + .28), 1); transform: translateY(calc(10px * clamp(0, calc(1 - (var(--p, 1) - var(--at, 0)) * 9), 1))); }
.sx-linea__nodos .pt-ico { width: 92px; height: 92px; border-radius: 28px; } .sx-linea__nodos .pt-ico svg { width: 44px; height: 44px; }
.sx-linea__nodos b { font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--c-text); max-width: 14ch; line-height: 1.2; }
.sx-linea__nodos span { font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--c-text2); max-width: 22ch; margin-top: -8px; }

/* ══ EFECTO · las tarjetas que se apilan al bajar (sticky) ════ */
.sx-pila { max-width: 1240px; margin: 0 auto; }
.sx-pila__c { position: sticky; top: calc(var(--hm-cab, 68px) + 50px + var(--i, 0) * 22px); margin-bottom: 28px; padding: 44px 48px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; min-height: 420px; }
.sx-pila__c:last-child { margin-bottom: 0; }
.sx-pila__c h3 { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--c-text); }
.sx-pila__c p { margin: 16px 0 0; font-size: 19px; line-height: 1.5; font-weight: 500; color: var(--c-text2); max-width: 36ch; }
.sx-pila__fin { height: calc(var(--vh) * 10); }

/* ══ EFECTO · las palabras que se encienden al bajar (`--p`) ══ */
.sx-palabras { margin: 0 auto; max-width: 1180px; text-align: center; font-size: clamp(36px, 3vw, 54px); line-height: 1.3; font-weight: 700; letter-spacing: -.025em; color: var(--c-text); }
.sx-pal { opacity: clamp(.14, calc(var(--p, 1) * (var(--n, 20) + 3) - var(--i, 0)), 1); transition: opacity .15s linear; }

/* ══ EFECTO · el trazo que se dibuja (una vez) ════════════════ */
.sx-trazo { position: relative; height: 170px; border-radius: 20px; background: var(--c-bg); }
.sx-trazo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sx-trazo path { fill: none; stroke: var(--c-text); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s cubic-bezier(.4,0,.3,1) .5s; }
.pt-vivo.is-on .sx-trazo path, html:not(.js) .sx-trazo path { stroke-dashoffset: 0; }
.sx-trazo__linea { position: absolute; left: 28px; right: 28px; bottom: 36px; border-top: 1.5px dashed var(--c-rivet); }
.sx-trazo__x { position: absolute; left: 28px; bottom: 12px; font-size: 13px; font-weight: 700; color: var(--c-text3); }

/* ══ EFECTO · la nota que se escribe sola (una vez) ═══════════ */
.sx-dicta { padding: 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.sx-dicta__dicho { margin: 0; font-size: 24px; line-height: 1.4; font-weight: 600; color: var(--c-text); }
.sx-dicta__dicho .pt-paso { display: inline-block; margin-right: .25em; }
.sx-tapa { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 12px 18px; border-radius: 100px; background: var(--c-bg); font-size: 16px; font-weight: 700; color: var(--c-text); }
.sx-tapa s { color: var(--c-text3); font-weight: 600; }
.sx-tapa em { font-style: normal; padding: 4px 10px; border-radius: 100px; background: var(--c-azul); color: var(--c-surface); font-size: 14px; }
.sx-tapa span { font-weight: 600; color: var(--c-text2); }
.sx-nota dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.sx-nota dt { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text2); }
.sx-nota dd { margin: 4px 0 0; font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--c-text); }
.sx-nota__pie { margin: 0; padding-top: 18px; border-top: 1px solid var(--c-border); font-size: 15px; font-weight: 600; color: var(--c-text2); }

/* ══ EFECTO · el móvil que cobra (una vez) ════════════════════ */
.sx-fono { position: relative; width: 400px; max-width: 100%; margin: 0 auto; padding: 14px; border-radius: 60px; background: var(--c-text); box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--c-text) 55%, transparent); }
.sx-fono__pant { position: relative; border-radius: 46px; background: var(--c-bg); padding: 22px 18px 28px; min-height: 760px; overflow: hidden; }
.sx-fono__hora { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 17px; font-weight: 700; color: var(--c-text); }
.sx-fono__isla { width: 116px; height: 30px; border-radius: 100px; background: var(--c-text); }
.sx-fono .pt-card { border-radius: 26px; padding: 24px 20px; margin-top: 22px; border: 0; }
.sx-fono__local { font-size: 15px; font-weight: 600; color: var(--c-text2); text-align: center; }
.sx-fono__importe { margin: 12px 0 0; text-align: center; font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--c-text); font-variant-numeric: tabular-nums; }
.sx-fono__de { margin: 8px 0 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--c-text2); }
.sx-fono__medios { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 20px; }
.sx-fono__medios span { padding: 13px 6px; border-radius: 100px; border: 1px solid var(--c-border); text-align: center; font-size: 14px; font-weight: 700; color: var(--c-text); }
.sx-fono__medios span.is-el { background: var(--c-text); border-color: var(--c-text); color: var(--c-surface); }
.sx-fono__qr { display: grid; place-items: center; }
.sx-fono__qr svg { width: 180px; height: 180px; color: var(--c-text); }
.sx-fono__pagado { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--c-menta-soft); color: var(--c-menta-tx); font-size: 17px; font-weight: 700; }
.sx-fono__pagado .pt-tick { width: 28px; height: 28px; }

/* ══ EFECTO · la conversación (una vez) ═══════════════════════ */
.sx-charla { padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; }
.sx-charla .pt-burbuja { max-width: 86%; align-self: flex-start; }
.sx-charla .pt-burbuja--theresa { align-self: flex-end; }
.sx-charla__hora { align-self: center; font-size: 14px; font-weight: 700; color: var(--c-text3); }
.sx-charla__cab { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--c-border); }
.sx-charla__cab b { display: block; font-size: 19px; font-weight: 700; color: var(--c-text); }
.sx-charla__cab span { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--c-text2); }

/* ══ EFECTO · las citas que caen en la agenda (una vez) ═══════ */
.sx-agenda { padding: 36px 40px; }
.sx-ag { display: grid; grid-template-columns: 60px repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: 38px; column-gap: 10px; position: relative; }
.sx-ag__cab { grid-row: 1; display: flex; align-items: center; gap: 10px; padding-bottom: 8px; font-size: 16px; font-weight: 800; color: var(--c-text); }
.sx-ag__cab .pt-av { width: 32px; height: 32px; font-size: 12px; }
.sx-ag__h { grid-column: 1 / -1; align-self: start; padding-top: 4px; border-top: 1px solid var(--c-border); font-size: 13px; font-weight: 700; color: var(--c-text3); }
.sx-ag > .sx-cita { position: relative; z-index: 1; }
.sx-cita { margin: 3px 0; padding: 9px 12px; border-radius: 12px; overflow: hidden; background: var(--c-azul-soft); border-left: 4px solid var(--c-azul); font-size: 14px; line-height: 1.3; color: var(--c-azul-tx); }
.sx-cita b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-cita span { display: block; font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-cita--menta { background: var(--c-menta-soft); border-color: var(--c-menta); color: var(--c-menta-tx); }
.sx-cita--rosa { background: var(--c-rose-soft); border-color: var(--c-rose); color: var(--c-rose-tx); }
.sx-cita--nueva { background: var(--c-azul); border-color: var(--c-azul); color: var(--c-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-azul) 22%, transparent); }
.sx-cita--nueva span { opacity: .9; }
.sx-canales { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--c-border); }
.sx-canales .pt-chip svg { width: 16px; height: 16px; }

/* ══ EFECTO · el bono que se descuenta (una vez) ══════════════ */
.sx-bono { padding: 36px 40px; }
.sx-bono__puntos { display: flex; gap: 10px; margin-top: 22px; }
.sx-bono__puntos i { flex: 1; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--c-border); display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 800; color: var(--c-text3); transition: background .4s ease, border-color .4s ease, color .4s ease; transition-delay: var(--t, 0s); }
.pt-vivo.is-on .sx-bono__puntos i.hecha, html:not(.js) .sx-bono__puntos i.hecha { background: var(--c-menta); border-color: var(--c-menta); color: var(--c-surface); }
.pt-vivo.is-on .sx-bono__puntos i.hoy, html:not(.js) .sx-bono__puntos i.hoy { background: var(--c-azul); border-color: var(--c-azul); color: var(--c-surface); box-shadow: 0 0 0 5px var(--c-azul-soft); }
.sx-bono__pie { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 17px; font-weight: 600; color: var(--c-text2); }
.sx-bono__pie b { color: var(--c-text); font-weight: 800; }
.sx-correo { padding: 36px 40px; }
.sx-correo__de { display: flex; align-items: center; gap: 14px; }
.sx-correo__de b { display: block; font-size: 18px; font-weight: 700; color: var(--c-text); }
.sx-correo__de span { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--c-text2); }
.sx-correo h4 { margin: 24px 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--c-text); }
.sx-correo p { margin: 0 0 12px; font-size: 18px; line-height: 1.5; color: var(--c-text); }
.sx-correo__oferta { display: inline-block; margin: 6px 0 14px; padding: 12px 20px; border-radius: 14px; background: var(--c-rose-soft); color: var(--c-rose-tx); font-size: 20px; font-weight: 800; }

/* ══ EFECTO · el cobro y la factura, una sobre otra (`--p`) ═══ */
.js .sx-cobro-par .pt-vivo.is-on .pt-factura, html:not(.js) .sx-cobro-par .pt-factura { transform: rotate(1.6deg) translateY(calc(40px - 80px * var(--p, .5))); }

/* ══ EFECTO · tu web con el botón de reserva (una vez) ════════ */
.sx-web { overflow: hidden; border-radius: 28px; background: var(--c-surface); box-shadow: var(--sombra-card); border: 1px solid var(--c-border); }
.sx-web__barra { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--c-surface2); }
.sx-web__barra i { width: 11px; height: 11px; border-radius: 50%; background: var(--c-rivet); }
.sx-web__barra span { flex: 1; margin-left: 10px; padding: 7px 14px; border-radius: 100px; background: var(--c-surface); font-size: 14px; font-weight: 600; color: var(--c-text2); }
.sx-web__portada { position: relative; min-height: 300px; padding: 36px 40px; color: var(--c-surface); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--c-menta) 70%, transparent) 0%, transparent 44%), linear-gradient(140deg, color-mix(in srgb, var(--c-azul) 70%, var(--c-text)) 0%, var(--c-azul) 100%); }
.sx-web__portada b { font-size: 42px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.sx-web__portada span { font-size: 17px; font-weight: 600; opacity: .88; }
.sx-web__boton { position: absolute; right: 36px; bottom: 36px; padding: 16px 28px; border-radius: 100px; background: var(--c-surface); color: var(--c-text); font-size: 18px; font-weight: 800; box-shadow: var(--sombra-card); }
.sx-web__cuerpo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px 40px 30px; }
.sx-web__cuerpo i { height: 70px; border-radius: 12px; background: var(--c-surface2); }
.sx-reserva { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px; align-items: start; }
.sx-reserva__lado { display: flex; flex-direction: column; gap: 18px; }
.sx-reserva__lado .pt-card { padding: 28px 30px; }
.sx-google { display: flex; align-items: center; gap: 14px; }
.sx-google b { display: block; font-size: 18px; font-weight: 700; color: var(--c-text); }
.sx-google span { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--c-text2); }
.sx-fin { margin-left: auto; }
.sx-google__btn { margin-left: auto; padding: 10px 16px; border-radius: 100px; background: var(--c-azul); color: var(--c-surface); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ══ Las funciones en fila con baldosa (como el catálogo) ═════ */
.sx-fs { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 44px 48px; margin-top: 72px; }

/* ══ El precio de lo que cuesta aparte (de donde se cobra) ════ */
.sx-precio { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 72px auto 0; max-width: 1240px; padding: 40px 48px; }
.sx-precio b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--c-text); }
.sx-precio span { display: block; margin-top: 8px; font-size: 19px; font-weight: 500; color: var(--c-text2); }
.sx-precio .pt-btn { flex-shrink: 0; }

/* ══ El cierre: los demás sectores y «Contrata a Theresa hoy» ═ */
.sx-mas { padding: 120px 0 0; }
.sx-mas__lista { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sx-mas__lista a { display: inline-flex; padding: 16px 28px; border-radius: 100px; background: var(--c-surface); border: 1px solid var(--c-border);
  font-size: 19px; font-weight: 700; color: var(--c-text); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.sx-mas__lista a:hover { border-color: var(--c-azul); color: var(--c-azul-tx); }
.sx-mas > .pt-wrap > span { display: block; margin-bottom: 18px; text-align: center; font-size: 18px; font-weight: 700; color: var(--c-text2); }
.sx-cierre { padding: 150px 0 110px; text-align: center; }
.sx-cierre .pt-orbe { margin: 0 auto 40px; width: 120px; height: 120px; }
.sx-cierre__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.sx-nota { display: flex; gap: 16px; align-items: flex-start; max-width: 1100px; margin: 0 auto; padding: 26px 32px; border-radius: 24px;
  background: var(--c-bg); font-size: 19px; line-height: 1.5; font-weight: 500; color: var(--c-text2); }
.sx-nota svg { flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; color: var(--c-azul); }

/* ══ La sala de un restaurante en 3D (la misma maqueta de la app) ═ */
.sx-sala3d { position: relative; height: 680px; border-radius: 44px; overflow: hidden; background: var(--c-bg); box-shadow: var(--sombra-card); }
.sx-sala3d__plano { position: absolute; left: 50%; top: 50%; width: min(86%, 980px); aspect-ratio: 1400 / 920; transform: translate(-50%, -50%);
  border-radius: 24px; background: var(--c-surface); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--c-text) 40%, transparent);
  transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.sx-sala3d.en-3d .sx-sala3d__plano { opacity: 0; transform: translate(-50%, -50%) perspective(900px) rotateX(55deg) scale(.9); }
.sx-p { position: absolute; left: calc(var(--x) * 100% / 1400); top: calc(var(--y) * 100% / 920); width: calc(var(--w) * 100% / 1400);
  height: calc(var(--h) * 100% / 920); border-radius: 6px; background: var(--c-surface2); }
.sx-p--mesa { display: flex; align-items: center; justify-content: center; background: var(--est-libre); color: var(--est-libre-tx, var(--c-text));
  font-size: 16px; font-weight: 800; border-radius: 10px; }
.sx-p--mesa[data-shape="round"] { border-radius: 50%; }
.sx-p--mesa.st-reservada { background: var(--est-viene); color: var(--c-surface); }
.sx-p--mesa.st-ocupada { background: var(--est-dentro); color: var(--c-surface); }
.sx-p--barra { background: color-mix(in srgb, var(--c-text) 18%, var(--c-surface)); }
.sx-p--cocina { background: color-mix(in srgb, var(--c-text) 10%, var(--c-surface)); }
.sx-p--planta { border-radius: 50%; background: var(--c-menta-soft); }
.sx-p--puerta, .sx-p--ventana { background: var(--c-azul-soft); }
.sx-sala3d .sf-3d { position: absolute; inset: 0; z-index: 2; }
.sx-sala3d .sf-3d canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.sx-sala3d .sf-3d canvas:active { cursor: grabbing; }
.sx-sala3d .sf-3d__ayuda { display: none; }
.sx-sala3d__leyenda, .sx-sala3d__ayuda, .sx-sala3d__llega, .sx-sala3d__mesa { position: absolute; z-index: 5; }
.sx-sala3d__llega[hidden], .sx-sala3d__mesa[hidden] { display: none; }
.sx-sala3d__leyenda { left: 28px; top: 26px; display: flex; gap: 8px; }
.sx-sala3d__leyenda span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 100px; background: var(--c-surface);
  font-size: 15px; font-weight: 700; box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--c-text) 40%, transparent); }
.sx-sala3d__leyenda i { width: 12px; height: 12px; border-radius: 50%; }
.sx-sala3d__leyenda .l { background: var(--est-libre); }
.sx-sala3d__leyenda .r { background: var(--est-viene); }
.sx-sala3d__leyenda .o { background: var(--est-dentro); }
.sx-sala3d__ayuda { left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 18px; border-radius: 100px; white-space: nowrap;
  background: color-mix(in srgb, var(--c-text) 78%, transparent); color: var(--c-surface); font-size: 15px; font-weight: 700; opacity: 0; transition: opacity .6s; }
.sx-sala3d.en-3d .sx-sala3d__ayuda { opacity: 1; }
.sx-sala3d__llega { right: 28px; top: 26px; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 20px;
  background: var(--c-surface); box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--c-text) 45%, transparent); font-size: 16px; }
.sx-sala3d__llega b { font-weight: 800; }
.sx-sala3d__llega span:last-child { color: var(--c-text2); font-weight: 600; }
.sx-sala3d__llega.is-viene { animation: sx-pop .6s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes sx-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.sx-sala3d__mesa { left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 4px; padding: 16px 22px;
  border-radius: 20px; background: var(--c-surface); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c-text) 55%, transparent); font-size: 17px; }
.sx-sala3d__mesa b { font-weight: 800; }
.sx-sala3d__mesa span { color: var(--c-text2); font-weight: 600; }
.sx-punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c-menta); margin-right: 6px; vertical-align: 1px; }

/* ══ Tableta y móvil (sin zoom) ═══════════════════════════════ */
@media (max-width: 1023px) {
  .sx-barra__in { padding: 0 20px; height: 54px; gap: 18px; }
  .sx-barra__nombre { font-size: 18px; }
  .sx-barra__links { display: none; }
  .sx-barra__cta { padding: 8px 16px; font-size: 14px; }

  .sx-hero { padding-top: 40px; }
  .sx-frase { font-size: clamp(36px, 9.6vw, 56px); letter-spacing: -.04em; }
  .sx-sub { margin-top: 16px; font-size: 18px; }
  .sx-hero__visual { margin-top: 32px; }
  .sx-etq { font-size: 12px; margin-bottom: 14px; }
  .sx-cab { margin-bottom: 36px; }
  .sx-dos, .sx-con-video { grid-template-columns: 1fr; gap: 32px; }
  .sx-dos--rev > :first-child { order: 0; }
  .sx-con-video .sx-video { max-width: none; }

  .sx-video { border-radius: 24px; transform: none; }
  .sx-video--alta { aspect-ratio: 4 / 5; }
  .sx-video__pie { left: 14px; bottom: 14px; padding: 9px 13px; font-size: 13px; }

  .sx-junta { height: auto; }
  .sx-junta__fijo { position: static; height: auto; grid-template-columns: 1fr; gap: 28px; }
  .sx-junta__campo { aspect-ratio: auto; max-height: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .sx-junta__chip { position: static; transform: none; opacity: 1; font-size: 13px; padding: 9px 13px; box-shadow: none; }
  .sx-junta__una { position: static; transform: none; opacity: 1; width: 100%; margin-top: 20px; padding: 26px 22px; }
  .sx-junta__una .pt-orbe { width: 72px; height: 72px; }
  .sx-junta__una b { font-size: 24px; } .sx-junta__una span { font-size: 15px; }

  .sx-anillo { width: 220px; height: 220px; }
  .sx-anillo__v b { font-size: 52px; } .sx-anillo__v span { font-size: 14px; }
  .sx-cifras { grid-template-columns: 1fr; gap: 14px; }
  .sx-cifra { padding: 26px 22px; } .sx-cifra b { font-size: 46px; } .sx-cifra span { font-size: 15px; }

  .sx-voz { padding: 22px 20px; gap: 16px; }
  .sx-voz__dicho { font-size: 22px; }
  .sx-voz__mic b { font-size: 16px; } .sx-voz__mic span { font-size: 13px; }
  .sx-mesa b { font-size: 16px; } .sx-mesa span { font-size: 13px; }
  .sx-plano i { font-size: 12px; border-radius: 8px; }

  .sx-fijo { display: block; }
  .sx-fijo__paso { min-height: 0; padding: 36px 0 18px; opacity: 1; }
  .sx-fijo__paso h3 { font-size: 27px; } .sx-fijo__paso p { font-size: 16px; }
  .sx-fijo__paso .sx-n { width: 36px; height: 36px; font-size: 14px; margin-bottom: 14px; }
  .sx-fijo__lado { position: static; min-height: 0; display: contents; }
  .sx-fijo__vista { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .sx-fijo__vista > .pt-card { padding: 22px 20px; }
  .sx-fijo--movil .sx-fijo__lado { min-height: 0; display: contents; }   /* su `flex` de arriba pesa más: dejaba los móviles en fila, fuera de la pantalla */
  .sx-fijo--movil .sx-fijo__vista { position: static; }

  .sx-abanico { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sx-abanico .pt-card { min-width: 0; }
  .sx-abanico .pt-b__p, .sx-abanico .pt-b__t { overflow-wrap: anywhere; }
  .js .pt-vivo .sx-abanico .pt-card, .js .pt-vivo.is-on .sx-abanico .pt-card { transform: none; }
  .sx-abanico .pt-card { padding: 22px 20px 24px; gap: 14px; }
  .sx-abanico__cifra { font-size: 40px; } .sx-abanico__cifra small { font-size: 20px; }
  .sx-qr { width: 96px; height: 96px; }

  .sx-linea > svg { display: none; }
  .sx-linea__nodos { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .sx-linea__nodos li { opacity: 1; transform: none; gap: 12px; }
  .sx-linea__nodos .pt-ico { width: 60px; height: 60px; border-radius: 18px; } .sx-linea__nodos .pt-ico svg { width: 28px; height: 28px; }
  .sx-linea__nodos b { font-size: 16px; } .sx-linea__nodos span { font-size: 13px; margin-top: -4px; }

  .sx-pila__c { position: static; grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; min-height: 0; margin-bottom: 16px; }
  .sx-pila__c h3 { font-size: 24px; } .sx-pila__c p { font-size: 15px; margin-top: 10px; }

  .sx-palabras { font-size: clamp(22px, 6vw, 30px); }

  .sx-trazo { height: 130px; }
  .sx-dicta { padding: 22px 20px; gap: 14px; }
  .sx-dicta__dicho { font-size: 18px; }
  .sx-tapa { font-size: 13px; padding: 9px 13px; flex-wrap: wrap; }
  .sx-nota dd { font-size: 16px; }

  .sx-fono { width: 320px; padding: 11px; border-radius: 46px; }
  .sx-fono__pant { border-radius: 36px; padding: 18px 12px 20px; min-height: 0; }
  .sx-fono__hora { font-size: 14px; } .sx-fono__isla { width: 90px; height: 24px; }
  .sx-fono .pt-card { padding: 20px 16px; margin-top: 16px; border-radius: 22px; }
  .sx-fono__importe { font-size: 48px; } .sx-fono__medios span { font-size: 12px; padding: 11px 4px; }
  .sx-fono__qr svg { width: 140px; height: 140px; }
  .sx-fono__pagado { font-size: 15px; }

  .sx-charla { padding: 22px 20px; gap: 10px; }
  .sx-charla__cab b { font-size: 16px; } .sx-charla__cab span { font-size: 13px; }

  .sx-agenda { padding: 20px 16px; }
  .sx-ag { grid-template-columns: 44px repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: 30px; column-gap: 6px; }
  .sx-ag__cab { font-size: 12px; gap: 6px; } .sx-ag__cab .pt-av { width: 24px; height: 24px; font-size: 10px; }
  .sx-ag__h { font-size: 11px; }
  .sx-cita { font-size: 11px; padding: 5px 7px; border-radius: 8px; }
  .sx-canales { gap: 6px; margin-top: 16px; padding-top: 16px; }

  .sx-bono { padding: 22px 20px; } .sx-bono__puntos { gap: 6px; } .sx-bono__puntos i { font-size: 11px; }
  .sx-bono__pie { font-size: 14px; }
  .sx-correo { padding: 22px 20px; } .sx-correo h4 { font-size: 20px; } .sx-correo p { font-size: 15px; }
  .sx-correo__oferta { font-size: 16px; }

  .js .sx-cobro-par .pt-vivo.is-on .pt-factura, html:not(.js) .sx-cobro-par .pt-factura { transform: none; }

  .sx-web__portada { min-height: 200px; padding: 22px; } .sx-web__portada b { font-size: 28px; } .sx-web__portada span { font-size: 14px; }
  .sx-web__boton { right: 18px; bottom: 18px; padding: 12px 20px; font-size: 15px; }
  .sx-web__cuerpo { padding: 14px 22px 20px; gap: 8px; } .sx-web__cuerpo i { height: 40px; }
  .sx-reserva { grid-template-columns: 1fr; gap: 14px; }
  .sx-reserva__lado .pt-card { padding: 20px 18px; }
  .sx-google b { font-size: 15px; } .sx-google span { font-size: 13px; }
  .sx-google { flex-wrap: wrap; } .sx-google .sx-fin { margin-left: 0; flex-basis: 100%; justify-content: center; }
  .sx-google .pt-chip { white-space: normal; }

  .sx-fs { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .sx-precio { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 40px; padding: 26px 22px; }
  .sx-precio b { font-size: 22px; } .sx-precio span { font-size: 15px; }

  .sx-mas { padding-top: 60px; }
  .sx-mas__lista a { padding: 12px 18px; font-size: 15px; }
  .sx-cierre { padding: 80px 0 60px; }
  .sx-cierre .pt-orbe { width: 84px; height: 84px; margin-bottom: 24px; }
  .sx-cierre__btns { margin-top: 24px; }
  .sx-nota { font-size: 15px; padding: 18px 20px; }

  .sx-sala3d { height: 440px; border-radius: 26px; }
  .sx-sala3d__plano { width: 92%; }
  .sx-p--mesa { font-size: 11px; }
  .sx-sala3d__leyenda { left: 12px; top: 12px; gap: 5px; }
  .sx-sala3d__leyenda span { padding: 6px 9px; font-size: 11px; gap: 5px; }
  .sx-sala3d__leyenda i { width: 9px; height: 9px; }
  .sx-sala3d__ayuda { display: none; }
  .sx-sala3d__mesa { font-size: 14px; padding: 12px 16px; }
  .sx-sala3d__llega { left: 12px; right: auto; top: auto; bottom: 12px; padding: 10px 14px; font-size: 13px; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 24px); }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .sx-fs, .sx-abanico, .sx-cifras { grid-template-columns: 1fr 1fr; }
  .sx-linea__nodos { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .sx-video, .sx-junta__chip, .sx-junta__una, .sx-anillo circle:last-child, .sx-linea__nodos li, .sx-pal, .sx-cobro-par .pt-factura { transition: none !important; }
  .sx { --p: 1; }
  .sx-video__pie i, .sx-voz__mic .pt-ico { animation: none !important; }
  .js .pt-vivo .sx-abanico .pt-card { transform: rotate(var(--g, 0)); }
  .sx-fijo__paso { opacity: 1; }
}
