/* Yaya — una marca, dos caras de la misma moneda: la soberanía.
   Un solo verde, oscuro y profundo como la esfera de un reloj. El metal dice de qué cara se trata:
   plata en yaya.tech (soberanía digital), oro en yaya.cash (soberanía financiera). El metal es acento, nunca fondo.
   Syne para titulares; Atkinson Hyperlegible Next para leer. La historia la cuenta el marcianito, no el texto. */
@font-face { font-family: "Syne"; src: url("/assets/y/fonts/syne-var-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/y/fonts/atkinson-next-var-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --verde: #06281C; --verde-claro: #0F4A35; --verde-hondo: #031710;
  --acero: #E8EDE9; --acero-2: #9FB2A8; --linea: rgba(232,237,233,.16);
  --display: "Syne", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[data-site="tech"] { --ac: #D3DBD6; --metal: linear-gradient(135deg, #F7F9F8, #A9B5AF 45%, #EEF2F0 60%, #77857E); --btn-fg: #06281C; }
html[data-site="cash"] { --ac: #E2B13C; --metal: linear-gradient(135deg, #F8E3A4, #C9962A 45%, #F3D783 60%, #94690F); --btn-fg: #1F1603; }
.m-plata { --fm: #D3DBD6; --fmetal: conic-gradient(from 210deg, #F7F9F8, #7D8A84, #EEF2F0, #909C96, #F7F9F8, #77857E, #F7F9F8); }
.m-oro   { --fm: #E2B13C; --fmetal: conic-gradient(from 210deg, #F8E3A4, #9A7119, #F3D783, #B5851F, #F8E3A4, #94690F, #F8E3A4); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-lang="es"] [lang="en"], html[data-lang="en"] [lang="es"] { display: none !important; }
body { margin: 0; font: 400 18px/1.5 var(--text); background: var(--verde); color: var(--acero); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--acero); color: var(--verde); padding: 10px 14px; z-index: 99; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.band { padding: clamp(72px, 11vw, 150px) 0; }

h1, h2, h3, .dsp { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 5.7vw, 86px); line-height: .96; }
h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1; max-width: 16ch; }
h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.1; letter-spacing: -0.02em; }
.sub { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.35; color: var(--acero-2); max-width: 34ch; margin-top: 26px; }
.head { margin-bottom: clamp(40px, 6vw, 80px); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 30px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 17px/1.2 var(--display); text-decoration: none; background: var(--metal); color: var(--btn-fg); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.quiet { background: none; color: var(--acero); padding-inline: 2px; border-radius: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: var(--ac); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 38px; }

/* ── cabecera ── */
.top { padding: 20px 0; position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 25px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; }
.faces { display: inline-flex; padding: 3px; border: 1px solid var(--linea); border-radius: 999px; }
.faces a, .faces span { font: 700 14px/1 var(--display); padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--acero-2); }
.faces .here { background: var(--metal); color: var(--btn-fg); }
.faces a:hover { color: var(--acero); }
.top .sp { margin-left: auto; }
.sw { display: inline-flex; gap: 2px; }
.sw button { font: 700 13px/1 var(--display); background: none; border: 0; color: var(--acero-2); padding: 8px 6px; cursor: pointer; }
.sw button[aria-pressed="true"] { color: var(--acero); }
.top .btn { min-height: 40px; padding: 8px 20px; font-size: 15px; }
@media (max-width: 560px) { .top .btn { display: none; } }

/* ── portada ── */
.hero { padding: clamp(28px, 5vw, 70px) 0 clamp(70px, 9vw, 130px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero .price { margin-top: 22px; font-size: 16px; color: var(--acero-2); }
.hero .price b { color: var(--ac); font: 700 1em var(--display); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .mint { order: -1; justify-self: start; } }

/* la moneda: esfera verde con bisel de metal; al girarla aparece la otra cara */
.mint { justify-self: center; text-align: center; }
.coin { width: clamp(210px, 31vw, 400px); aspect-ratio: 1; perspective: 1400px; margin-inline: auto; }
.coin-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); transition: transform .35s ease-out; animation: land 1.6s .3s cubic-bezier(.3,.7,.2,1) backwards; }
.coin.flip { --flip: 180deg; }
.coin.turning .coin-in { transition: transform 1s cubic-bezier(.3,.7,.2,1); }
@keyframes land { from { transform: rotateY(-540deg); } to { transform: rotateY(0); } }
.face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: block; padding: 3.2%;
  background: var(--fmetal); color: var(--fm); box-shadow: 0 30px 60px -20px rgba(0,0,0,.65); }
.face.back { transform: rotateY(180deg); }
.face .dial { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.05) 0deg, rgba(255,255,255,0) 10deg, rgba(255,255,255,.05) 20deg),
              radial-gradient(circle at 50% 45%, #17694B, #0B3B2A 55%, #041C13);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 0 40px rgba(0,0,0,.45); }
.face svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.face img { position: absolute; left: 50%; top: 53%; width: 50%; transform: translate(-50%, -50%); }
.turn { margin-top: 30px; font: 700 14px/1.2 var(--display); background: none; border: 0; color: var(--acero-2); cursor: pointer; padding: 8px 4px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.turn:hover { color: var(--acero); }
.mint .go { display: none; margin-top: 4px; font-size: 16px; }
.mint.flipped .go { display: block; }

/* ── la historia: el escenario se queda, el texto pasa ── */
.story { background: var(--verde-hondo); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); }
.stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.stage svg { width: min(100%, 78vh); height: auto; overflow: visible; }
.beats li { min-height: 100vh; display: flex; align-items: center; }
.beats .dsp { font-size: clamp(28px, 3.5vw, 50px); line-height: 1.04; max-width: 15ch; }
.beats li.big .dsp { font-size: clamp(44px, 6.4vw, 96px); color: var(--ac); }
@media (max-width: 820px) {
  .story .wrap { grid-template-columns: 1fr; gap: 0; }
  .stage { height: 52vh; background: var(--verde-hondo); z-index: 2; }
  .stage svg { width: min(100%, 48vh); }
  .beats li { min-height: 62vh; align-items: flex-start; padding-top: 8vh; }
}
.stage g, .stage circle, .stage text, .stage path { transition: opacity .7s ease, transform .9s cubic-bezier(.3,.7,.2,1); }
.stage .flow line { stroke: var(--ac); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; animation: flow 1.4s linear infinite; }
html[data-site="cash"] .stage .flow line { stroke-width: 6; stroke-dasharray: .1 17; animation-duration: 2s; }
@keyframes flow { to { stroke-dashoffset: -22; } }
html[data-site="cash"] .stage .flow line { --d: -34.2; }
html[data-site="cash"] .stage .flow line { animation-name: flowc; }
@keyframes flowc { to { stroke-dashoffset: -34.2; } }
.stage .node rect { fill: var(--verde); stroke: var(--acero-2); stroke-width: 1.5; }
.stage .nkey, .stage .ckeys { stroke: var(--ac); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.stage .tower circle { fill: #0B3B2A; stroke: var(--ac); stroke-width: 2; }
.stage .q { font: 800 120px var(--display); fill: var(--ac); }
.stage .alien { transform-origin: 0 0; }
.stage .nkey { transform-box: fill-box; transform-origin: center; }
.stage .ring { fill: none; stroke: var(--ac); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.stage .q { transform-box: fill-box; transform-origin: 50% 100%; }
/* escena 0: todavía no aterriza */
.stage[data-scene="0"] .spokes, .stage[data-scene="0"] .mesh, .stage[data-scene="0"] .tower, .stage[data-scene="0"] .nkey, .stage[data-scene="0"] .q { opacity: 0; }
.stage[data-scene="0"] .nodes { opacity: .3; }
.stage[data-scene="0"] .alien { transform: translate(0, -520px) scale(.6); opacity: 0; }
.stage[data-scene="0"] .nkey, .stage[data-scene="1"] .nkey, .stage[data-scene="2"] .nkey, .stage[data-scene="3"] .nkey { transform: scale(0); }
.stage .node:nth-child(2) .nkey { transition-delay: .08s; } .stage .node:nth-child(3) .nkey { transition-delay: .16s; }
.stage .node:nth-child(4) .nkey { transition-delay: .24s; } .stage .node:nth-child(5) .nkey { transition-delay: .32s; }
.stage .node:nth-child(6) .nkey { transition-delay: .4s; } .stage .node:nth-child(7) .nkey { transition-delay: .48s; }
.stage .node:nth-child(8) .nkey { transition-delay: .56s; }
.stage[data-scene="3"] .bob { animation: hmm 1.5s ease-in-out infinite; }
.stage[data-scene="3"] .q { animation: boing 1.1s ease-in-out infinite; }
.stage[data-scene="5"] .ring { animation: ping 1.7s ease-out infinite; }
@keyframes hmm { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes boing { 0%, 100% { transform: scale(1) rotate(-6deg); } 50% { transform: scale(1.18) rotate(8deg); } }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.stage[data-scene="1"] .spokes, .stage[data-scene="1"] .mesh, .stage[data-scene="1"] .tower, .stage[data-scene="1"] .nkey, .stage[data-scene="1"] .q { opacity: 0; }
.stage[data-scene="1"] .nodes { opacity: .3; }
.stage[data-scene="1"] .alien { transform: translate(0, -24px) scale(1.2); }
.stage[data-scene="2"] .mesh, .stage[data-scene="2"] .nkey, .stage[data-scene="2"] .q, .stage[data-scene="2"] .saucer { opacity: 0; }
.stage[data-scene="2"] .alien { transform: translate(-232px, 232px) scale(.5); }
.stage[data-scene="3"] .mesh, .stage[data-scene="3"] .nkey, .stage[data-scene="3"] .saucer { opacity: 0; }
.stage[data-scene="3"] .spokes, .stage[data-scene="3"] .tower, .stage[data-scene="3"] .nodes { opacity: .18; }
.stage[data-scene="3"] .alien { transform: translate(-40px, 10px) scale(1.5); }
.stage[data-scene="4"] .spokes, .stage[data-scene="4"] .tower, .stage[data-scene="4"] .q, .stage[data-scene="4"] .saucer { opacity: 0; }
.stage[data-scene="4"] .alien { transform: scale(.95); }
.stage[data-scene="5"] .spokes, .stage[data-scene="5"] .tower, .stage[data-scene="5"] .q, .stage[data-scene="5"] .saucer { opacity: 0; }
.stage[data-scene="5"] .mesh { opacity: .3; }
.stage[data-scene="5"] .alien { transform: translate(128px, -62px) scale(.8); }
.stage .node.you rect, .stage .node.you .nkey { transition: fill .7s, stroke .7s; }
.stage[data-scene="5"] .node.you rect { fill: var(--ac); stroke: var(--ac); }
.stage[data-scene="5"] .node.you .nkey { stroke: var(--verde-hondo); }

/* ── el producto, dicho en pocas palabras ── */
.product .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.product .hello { width: clamp(120px, 14vw, 190px); height: auto; margin: 0 0 18px -14px; overflow: visible; }
.product h2 { font-size: clamp(38px, 5.6vw, 80px); max-width: 12ch; }
.facts { border-top: 1px solid var(--linea); }
.facts li { font: 700 clamp(22px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -0.02em; padding: 22px 0; border-bottom: 1px solid var(--linea); }
.facts li:first-child { color: var(--ac); }
@media (max-width: 820px) { .product .wrap { grid-template-columns: 1fr; } }

/* ── dolores ── */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); }
.pain { background: var(--verde); padding: clamp(26px, 3.4vw, 48px); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 22px; align-items: start; }
.pain svg { width: 56px; height: 56px; stroke: var(--ac); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; grid-row: span 2; }
.pain .dsp { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.04; }
.pain p + p { color: var(--acero-2); font-size: 18px; max-width: 34ch; }
.soon { margin-top: 26px; color: var(--acero-2); font-size: 16px; }
@media (max-width: 760px) { .pains { grid-template-columns: 1fr; } }

/* ── el camino ── */
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 48px); position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--linea); }
.stop { position: relative; padding-top: 58px; }
.stop::before { content: ""; position: absolute; left: 0; top: 0; width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--ac); background: var(--verde); }
.stop:first-child::before { background: var(--metal); border: 0; }
.stop .cost { font: 700 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -0.03em; color: var(--ac); margin: 14px 0 4px; }
.stop .when { font-size: 15px; color: var(--acero-2); margin-bottom: 14px; }
.stop p.say { color: var(--acero-2); font-size: 18px; max-width: 30ch; margin-top: 12px; }
@media (max-width: 820px) { .path { grid-template-columns: 1fr; } .path::before { left: 17px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; } .stop { padding: 0 0 0 62px; } }

/* ── nosotros ── */
.us { background: var(--verde-hondo); }
.us .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: end; }
.us .dsp.say { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.02; max-width: 14ch; }
.us .sub { max-width: 40ch; }
.plate { border-top: 1px solid var(--linea); }
.plate div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 17px; }
.plate dt { color: var(--acero-2); }
@media (max-width: 820px) { .us .wrap { grid-template-columns: 1fr; } }

/* ── el marcianito, vivo ── */
.mar .bob { animation: bob 3.4s ease-in-out infinite; }
.mar .tilt { transition: transform .25s ease-out; }
.mar .eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.8s infinite; }
.mar .arm { transform-origin: -104px 513px; animation: wave 1.2s ease-in-out infinite alternate; }
.mar .beam { animation: beam 2.6s ease-in-out infinite; }
.mar .lights circle { animation: chase 1.5s linear infinite; }
.mar .lights circle:nth-child(2) { animation-delay: .3s; } .mar .lights circle:nth-child(3) { animation-delay: .6s; }
.mar .lights circle:nth-child(4) { animation-delay: .9s; } .mar .lights circle:nth-child(5) { animation-delay: 1.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.06); } }
@keyframes wave { from { transform: rotate(-5deg); } to { transform: rotate(9deg); } }
@keyframes beam { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes chase { 0%, 100% { fill: #03140E; } 20% { fill: #fff; } }

/* ── reservar sin salir de la página ── */
.book { background: var(--verde-hondo); }
.book .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.book h2 { max-width: 13ch; }
.bk-state { color: var(--acero-2); margin-bottom: 20px; }
.bk-days { display: grid; gap: 22px; }
.bk-day { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.bk-day b { font: 700 16px/1.2 var(--display); color: var(--acero-2); }
.bk-times { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-times button { font: 700 17px/1 var(--display); min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--linea); background: none; color: var(--acero); cursor: pointer; }
.bk-times button:hover { border-color: var(--ac); }
.bk-times button[aria-pressed="true"] { background: var(--metal); color: var(--btn-fg); border-color: transparent; }
.bk-form { display: grid; gap: 12px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--linea); }
.bk-form[hidden], .bk-done[hidden], .bk-err[hidden] { display: none; }
.bk-when { font: 700 clamp(22px, 2.2vw, 28px)/1.1 var(--display); color: var(--ac); margin-bottom: 4px; }
.bk-form input:not([type="checkbox"]) { min-height: 52px; padding: 10px 16px; font: 400 18px var(--text); color: var(--acero); background: rgba(255,255,255,.05); border: 1px solid var(--linea); border-radius: 12px; }
.bk-form input::placeholder { color: var(--acero-2); }
.bk-ok { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 15px; color: var(--acero-2); line-height: 1.4; margin: 4px 0; }
.bk-ok input { width: 20px; height: 20px; margin: 0; accent-color: var(--ac); }
.bk-form .btn { justify-self: start; }
.bk-err { color: #FFB4A8; font-size: 16px; }
.bk-done { font: 700 clamp(26px, 3vw, 40px)/1.08 var(--display); letter-spacing: -0.02em; }
.bk-done small { display: block; font: 400 18px/1.5 var(--text); letter-spacing: 0; color: var(--acero-2); margin-top: 14px; }
.bk-alt { margin-top: 30px; font-size: 16px; color: var(--acero-2); }
@media (max-width: 820px) { .book .wrap { grid-template-columns: 1fr; } .bk-day { grid-template-columns: 1fr; gap: 8px; } }

/* ── la otra cara / cierre / pie ── */
.other .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.other .coin { width: clamp(150px, 20vw, 250px); }
.other .coin-in { animation: none; }
@media (max-width: 640px) { .other .wrap { grid-template-columns: 1fr; } }
.close { text-align: center; }
.close h2 { max-width: 14ch; margin-inline: auto; }
.close .actions { justify-content: center; }
.foot { background: var(--verde-hondo); color: var(--acero-2); padding: 46px 0 120px; font-size: 15px; line-height: 1.6; border-top: 1px solid var(--linea); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 56px; }
.foot p { margin-bottom: 8px; max-width: 70ch; }
.foot .brand { color: var(--acero); margin-bottom: 16px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--acero); }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coin-in { animation: none; transition: none; }
  .stage .flow line, .mar .bob, .mar .eyes, .mar .arm, .mar .beam, .mar .lights circle, .stage .bob, .stage .q, .stage .ring { animation: none !important; }
  .stage g, .stage circle, .stage text, .btn { transition: none; }
}
.yc-root { --yc-tint: #0B3B2A; --yc-tint-press: #06281C; }
.yc-root .yc-fab { background: #0B3B2A; border-radius: 50%; clip-path: none; box-shadow: 0 0 0 2px var(--ac), 0 14px 34px rgba(0,0,0,.55); }
.yc-root .yc-fab img { width: 44px; height: 44px; transform: translateY(2px); }

/* ── El agente confidencial en la portada (2026-11-28) ── */
.vivo-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.vivo-hero h1 { font-size: clamp(31px, 4.1vw, 62px); line-height: 1; }
.vivo-hero .wrap > * { min-width: 0; }
.sello { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 10px; font-size: 18px; color: var(--acero); }
.sello li { display: flex; gap: 12px; align-items: baseline; }
.sello li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ac); transform: translateY(-1px); }
.vivo-hero .price a { color: var(--acero); text-underline-offset: 5px; text-decoration-color: var(--ac); white-space: nowrap; }
.vivo { background: var(--verde-hondo); border: 1px solid var(--linea); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column;
        min-height: 560px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.vivo-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--linea); }
.vivo-top div { display: grid; line-height: 1.25; min-width: 0; }
.vivo-top b { font: 700 18px var(--display); letter-spacing: -.01em; }
.vivo-top small { font-size: 13.5px; color: var(--acero-2); }
.vivo-enclave::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5BE0A0; margin-right: 8px; }
.vivo-enclave.mal::before { background: #FF6B4A; }
.vivo-salir, .vivo-borrar { margin-left: auto; background: none; border: 0; padding: 6px 2px; color: var(--acero-2); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.vivo-borrar { margin: 0; padding: 0; font-size: inherit; }
.vivo-puerta { flex: 1; display: grid; justify-items: center; align-content: center; gap: 14px; padding: 30px 24px 34px; text-align: center; }
.vivo-puerta[hidden], .vivo-chat[hidden] { display: none; }
.vivo-qr { width: min(270px, 70vw); aspect-ratio: 1; background: #fff; border-radius: 18px; padding: 8px; display: grid; }
.vivo-qr svg { width: 100%; height: 100%; display: block; }
.vivo-paso { font: 700 20px var(--display); letter-spacing: -.01em; }
.vivo-codigo { font: 500 15px ui-monospace, "JetBrains Mono", Menlo, monospace; color: var(--acero-2); letter-spacing: .06em; }
.vivo-nota { font-size: 14.5px; color: var(--acero-2); max-width: 32ch; }
.vivo-err { color: #FF6B4A; font-size: 15px; }
.vivo-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.vivo-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; max-height: 62vh; min-height: 340px; }
.vivo-msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 16.5px; line-height: 1.45; }
.vivo-msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.vivo-msg.ag { align-self: flex-start; background: rgba(232,237,233,.08); border-bottom-left-radius: 6px; }
.vivo-msg.yo { align-self: flex-end; background: var(--ac); color: var(--btn-fg); border-bottom-right-radius: 6px; }
.vivo-msg.pensando { color: var(--acero-2); animation: vivo-late 1.4s ease-in-out infinite; }
.vivo-msg.falla { border: 1px solid #FF6B4A; }
@keyframes vivo-late { 50% { opacity: .5; } }
.vivo-prueba { margin-top: 8px; font-size: 13px; color: var(--acero-2); }
.vivo-prueba summary { cursor: pointer; }
.vivo-prueba pre { margin: 8px 0 0; font: 12px/1.5 ui-monospace, "JetBrains Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.vivo-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px 16px; border-top: 1px solid var(--linea); }
.vivo-form textarea { flex: 1; resize: none; min-height: 50px; max-height: 180px; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--linea);
                      background: rgba(232,237,233,.06); color: var(--acero); font: inherit; font-size: 16.5px; line-height: 1.4; }
.vivo-form textarea:focus { outline: 2px solid var(--ac); outline-offset: 1px; }
.vivo-form .btn { min-height: 50px; width: 50px; padding: 0; flex: none; }
.vivo-form .btn:disabled { opacity: .45; cursor: default; transform: none; }
.vivo-via { display: block; margin-top: 8px; font-size: 13px; color: var(--acero-2); }
.vivo-modo { display: inline-flex; align-self: flex-start; margin: 0 16px 10px; padding: 3px; border: 1px solid var(--linea); border-radius: 999px; }
.vivo-modo button { border: 0; background: none; color: var(--acero-2); font: 600 13.5px var(--display); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.vivo-modo button[aria-pressed="true"] { background: var(--ac); color: var(--btn-fg); }
.vivo-pie { padding: 0 20px 14px; font-size: 13.5px; color: var(--acero-2); }
@media (max-width: 860px) {
  .vivo-hero .wrap { grid-template-columns: 1fr; }
  .vivo { min-height: 0; }
  .vivo-qr, .vivo-puerta .vivo-codigo, .vivo-paso:not(.esperando) { display: none; }       /* en el teléfono no se escanea la propia pantalla: se entra con el botón */
  .vivo-puerta { padding: 34px 22px; }
  .vivo-log { max-height: 60vh; min-height: 300px; }
}
@media (min-width: 861px) { .vivo-wa { background: none; color: var(--acero); min-height: 0; padding: 4px 2px; border-radius: 0; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--ac); } }

/* ── Yaya Chat: la invitación en la portada (2026-11-28) ── */
.top .lnk { font: 700 15px/1 var(--display); text-decoration: none; color: var(--acero); padding: 8px 4px; border-bottom: 1px solid var(--ac); }
.prueba { background: var(--verde-hondo); }
.prueba .sub { max-width: 40ch; }
.prueba .feria { display: inline-block; margin-top: 26px; padding: 12px 18px; border: 1px solid var(--ac); border-radius: 16px; font-size: 18px; }
.prueba .feria[hidden] { display: none; }
