.scene {
  --bosque: var(--hn-action, #064632);
  --menta: var(--hn-tint, #b2f6d9);
  --tinta: var(--hn-ink, #18382b);
  --marfil: var(--hn-paper, #faf8f3);
  --linea: rgb(24 56 43 / 18%);
  --rapido: 160ms;
  --normal: 320ms;
  --lento: 600ms;
  --curva: cubic-bezier(.2,.7,.2,1);
  font: 400 1rem/1.5 Manrope, system-ui, sans-serif;
  color: var(--tinta);
  background: var(--marfil);
  text-align: start;
}
.scene :where(h1,h2,h3,p) { margin: 0; color: inherit; }
.scene :is(h1,h2) {
  font-family: inherit; font-weight: 800; letter-spacing: -.03em; text-wrap: initial;
}
.scene :focus-visible { outline: 3px solid var(--bosque); outline-offset: 3px; }
.scene:focus-visible { outline: 3px solid var(--menta); outline-offset: -4px; }

.scene .toque-stage-shell { position: relative; background: var(--bosque); color: var(--marfil); }
.scene .toque-stage {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center;
  gap: clamp(1rem,4vw,4rem); padding: clamp(1.2rem,5vw,4rem);
}
.scene .toque-caps { position: relative; display: grid; gap: 2rem; }
.scene .toque-cap { max-width: 26rem; }
.scene .toque-cap h2 { overflow-wrap: break-word; font-size: clamp(1.8rem,4vw,3.2rem); line-height: 1.05; }
.scene .toque-cap p { margin-top: 1rem; font-size: 1.05rem; color: rgb(250 248 243 / 86%); }
.scene .toque-set {
  --H: min(72vh,540px); --H: min(72svh,540px);
  position: relative; justify-self: center; align-self: center; width: min(100%,620px);
  height: var(--H); font-size: clamp(10px,calc(var(--H) / 38),15px);
}
.scene .toque-tag {
  position: absolute; left: 2%; top: 44%; width: 25%; aspect-ratio: 1.6; background: var(--menta);
  border-radius: 1em; display: grid; place-items: center; z-index: 3;
}
.scene .toque-tag svg { width: 44%; }
.scene .toque-rings { position: absolute; inset: 0; }
.scene .toque-ring {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1;
  margin: -75% 0 0 -75%; border: 2px solid var(--menta); border-radius: 50%; pointer-events: none;
  visibility: hidden;
}
.scene .toque-phone {
  position: absolute; top: 5%; inset-inline: 0; margin-inline: auto;
  width: calc(var(--H)*.45); height: calc(var(--H)*.9); background: var(--tinta);
  border-radius: 2.6em; padding: .45em; box-shadow: 0 2.5em 5em rgb(24 56 43 / 52%); z-index: 2;
}
.scene .toque-screen {
  position: relative; height: 100%; background: var(--marfil); color: var(--tinta);
  border-radius: 2.2em; overflow: hidden; padding: 2.6em 1em 1em;
  display: flex; flex-direction: column; gap: .55em;
}
.scene .toque-ident { text-align: center; margin-bottom: .5em; }
.scene .toque-av {
  width: 3.6em; height: 3.6em; border-radius: 50%; background: var(--bosque); color: var(--menta);
  display: grid; place-items: center; font-weight: 800; font-size: 1.2em; margin: 0 auto .5em;
}
.scene .toque-ident b { display: block; font-size: 1.25em; font-weight: 800; }
.scene .toque-ident small { opacity: .8; }
.scene .toque-blk {
  display: flex; justify-content: space-between; align-items: center; gap: .4em;
  padding: .8em 1em; border-radius: .8em; background: var(--marfil);
  box-shadow: inset 0 0 0 1px var(--linea); font-weight: 600; font-size: .95em;
}
.scene .toque-main { background: var(--bosque); color: var(--marfil); }
.scene .toque-price { position: relative; font-weight: 800; min-width: 2.4em; text-align: right; }
.scene .toque-p2 { position: absolute; inset: 0 0 auto auto; }
.scene .toque-toast {
  position: absolute; top: 1em; inset-inline: 0; margin-inline: auto; width: max-content;
  background: var(--menta); color: var(--bosque); padding: .4em .9em; border-radius: 999px;
  font-size: .8em; font-weight: 700; z-index: 3;
}
.scene .toque-form {
  position: absolute; inset: auto 0 0; background: var(--marfil); border-radius: 1.6em 1.6em 0 0;
  padding: 1.1em 1em 1.2em; box-shadow: 0 -1em 2em rgb(24 56 43 / 14%);
  z-index: 4; display: grid; gap: .7em;
}
.scene .toque-form b { font-size: 1.05em; }
.scene .toque-field { padding: .7em .8em; border-radius: .6em; box-shadow: inset 0 0 0 1px var(--linea); font-size: .9em; }
.scene .toque-consent { display: flex; gap: .6em; align-items: center; font-size: .8em; }
.scene .toque-box { width: 1.3em; height: 1.3em; border-radius: .3em; box-shadow: inset 0 0 0 2px var(--bosque); display: grid; place-items: center; flex: none; }
.scene .toque-box svg { width: 1em; }
.scene .toque-check { stroke: var(--bosque); stroke-width: 3; fill: none; stroke-dasharray: 24; }
.scene .toque-send { text-align: center; padding: .75em; border-radius: .7em; background: var(--bosque); color: var(--marfil); font-weight: 600; font-size: .9em; }
.scene .toque-tray {
  position: absolute; right: -2%; bottom: 0; width: 52%; background: var(--marfil); color: var(--tinta);
  border-radius: 1.2em; padding: 1em; box-shadow: 0 1.5em 3em rgb(24 56 43 / 46%); z-index: 5; font-size: .95em;
}
.scene .toque-tray h3 { font-family: inherit; letter-spacing: normal; line-height: 1.5; font-size: .8em; font-weight: 700; opacity: .8; margin-bottom: .6em; }
.scene .toque-row { display: flex; gap: .7em; align-items: center; }
.scene .toque-row .toque-av { width: 2.6em; height: 2.6em; margin: 0; font-size: 1em; flex: none; }
.scene .toque-row b, .scene .toque-row small { display: block; }
.scene .toque-row small { opacity: .85; line-height: 1.3; }
.scene .toque-new { margin-top: .7em; display: inline-block; background: var(--menta); color: var(--bosque); font-weight: 700; font-size: .75em; padding: .25em .7em; border-radius: 999px; }
.scene .toque-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Native reading order is the default. Pinning is enabled only after both libraries load. */
.scene .toque-stage-shell:not(.is-pinned) .toque-stage { padding-block: 4rem; }

.scene .toque-stage-shell:not(.is-pinned) .toque-p1 { text-decoration: line-through; font-size: .85em; margin-right: .25em; }
.scene .toque-stage-shell:not(.is-pinned) .toque-p2 { position: static; }
.scene .is-pinned { height: 100vh; height: 100svh; overflow: hidden; }
.scene .is-pinned .toque-stage { height: 100%; }
.scene .is-pinned .toque-caps { min-height: 12rem; gap: 0; }
.scene .is-pinned .toque-cap { grid-area: 1 / 1; align-self: start; }

@media (min-width: 821px) {
  .scene .is-pinned .toque-caps { height: 12rem; grid-template-rows: minmax(0,1fr); }
}
@media (max-width: 820px) {
  .scene .toque-stage { grid-template-columns: minmax(0,1fr); align-content: center; gap: 1rem; }
  .scene .is-pinned .toque-stage { grid-template-rows: auto 1fr; }
  .scene .is-pinned .toque-caps { min-height: 9.5rem; }
  .scene .toque-set { --H: min(50vh,400px); --H: min(50svh,400px); }
  .scene .toque-stage-shell:not(.is-pinned) .toque-set { margin-top: 1.5rem; }
}

.scene .toque-stage {
  position: relative;
  max-width: 85rem;
  margin-inline: auto;
  row-gap: clamp(.75rem, 2vh, 1.5rem);
}
.scene .toque-stage > * { min-width: 0; }
.scene .toque-contexto {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1rem;
  font-size: .875rem;
}
.scene .toque-contexto > span { font-weight: 700; }
.scene .toque-contexto b { color: var(--menta); padding-inline: .3em; }
.scene .toque-contexto a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  color: var(--menta);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.scene .toque-contexto a:focus-visible { outline-color: var(--menta); }
.scene .is-pinned .toque-stage {
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: calc(var(--reader-nav, 5.5rem) + .3rem);
}
.scene .toque-nido { display: flex; flex-direction: column; gap: .55em; }
.scene .toque-onda-interior {
  position: absolute; top: 38%; left: 0;
  width: 125%; aspect-ratio: 1; margin: -62.5% 0 0 -62.5%;
  border: .22em solid var(--bosque); border-radius: 50%;
  pointer-events: none; opacity: 0;
}
.scene .toque-stage-shell:not(.is-pinned) :is(.toque-form,.toque-tray,.toque-toast) { display: none; }
.scene .toque-stage-shell:not(.is-pinned) .toque-stage { align-items: center; }
.toque-qr {
  display: flex; align-items: center;
  width: min(100%, 17rem); min-height: 44px; margin-top: 1.5rem;
  color: var(--hn-action); border-radius: .35rem;
}
.toque-qr:focus-visible { outline: 3px solid var(--hn-action); outline-offset: 5px; }
.toque-qr-origen,.toque-qr-destino {
  flex: 0 1 auto; min-width: 0; display: grid; justify-items: center;
  gap: .35rem; text-align: center; font: 650 .85rem/1.35 Manrope,system-ui,sans-serif;
}
.toque-qr-origen img { width: 3rem; height: auto; border-radius: 50%; }
.toque-qr-destino img {
  width: min(6.75rem, 22vw); height: auto; background: white;
  image-rendering: pixelated;
}
.toque-qr-destino > span { text-decoration: underline; text-underline-offset: .2em; }
.toque-qr-trazo {
  display: block; flex: 1 1 6rem; width: 0; min-width: 1rem; overflow: visible;
  margin: 0 .35rem 1.2rem;
}
.toque-qr-guia { stroke: currentColor; stroke-opacity: .3; stroke-width: 1.3; }
.toque-qr-linea { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; }
.toque-qr-senal { fill: var(--hn-tint); stroke: currentColor; stroke-width: 2; }
@media (max-width: 820px) {
  .scene .is-pinned .toque-stage { grid-template-rows: auto auto minmax(0, 1fr); padding-bottom: 1rem; }
  .scene .is-pinned .toque-caps { min-height: 9rem; }
  .scene .toque-set { --H: min(45svh, 370px); }
}
@media (prefers-reduced-motion: reduce) {
  .scene .toque-onda-interior { display: none; }
}

.caminos-nido { gap: .65rem; }
.toque-enlaces { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; }
@media (max-width: 600px) {
  .scene .toque-contexto { align-items: flex-start; }
  .toque-enlaces { justify-content: flex-end; gap: .125rem .8rem; }
  .scene .toque-contexto a { display: inline-flex; align-items: center; min-height: 44px; }
}
.studio-home .hero-content h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.studio-home .hero-content .nido-propuesta {
  margin: .95rem 0 1.1rem;
  max-width: 46ch;
}
.studio-home .caminos-nido { margin-top: .35rem; gap: 0 .8rem; align-items: baseline; }
.studio-home .caminos-nido small { font-size: .875rem; line-height: 1.45; color: var(--studio-pale); }
.studio-home .caminos-nido a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--studio-pale);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.studio-home .caminos-nido a:hover { color: var(--hn-tint); }
.studio-home .hero-content .nido-slogan {
  margin: .4rem 0 0;
  font-size: .88rem;
  color: var(--studio-pale);
}
@media (max-width: 550px) {
  .studio-home .hero-content h1 { font-size: clamp(2.4rem, 9.6vw, 3.2rem); }
  .studio-home .caminos-nido { column-gap: 1rem; }
  .studio-home .caminos-nido a { font-size: .875rem; }
}

.edicion-estado {
  position: fixed;
  z-index: 100;
  inset-inline: 1rem;
  bottom: 1rem;
  margin: auto;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: .65rem 1rem;
  border-radius: .75rem;
  color: #faf8f3;
  background: #064632;
  pointer-events: none;
}
