.v2-chat .av { background: none; }
.v2.tour-piece.sprite { will-change: auto; }
.popup.v2-chat { background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.v2-av.c { border: 0; }
.v2-chip.dol { background: none; border: 0; padding: 0; color: #f06; font: 800 64px "DM Sans", sans-serif; }
.v2-cal .mail rect, .v2-cal .mail path { stroke-width: 2.4px; vector-effect: non-scaling-stroke; }
.v2-cal .mail { position: absolute; right: 6px; bottom: 4px; width: 38px; height: 42px; opacity: 0; transform: scale(.3); transition: opacity .2s, transform .35s cubic-bezier(.3,1.6,.5,1); } .v2-cal .mail.show { opacity: 1; transform: scale(1); } .v2-cal .mail svg { width: 100%; height: 100%; display: block; } .v2-cal .mail i { position: absolute; right: -6px; top: -7px; width: 15px; height: 15px; border-radius: 50%; background: #f06; color: #fff; border: 2px solid #000; font: 700 9px/11px "DM Sans", sans-serif; text-align: center; font-style: normal; transform: scale(0); transition: transform .25s; } .v2-cal .mail.on i { transform: scale(1); }
.v2-ph .pcoin{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;background:#ffd23f;border:2.5px solid #000;font:700 18px/29px "DM Sans",sans-serif;text-align:center;box-sizing:border-box;transform:scale(0);transition:transform .3s}.v2-ph.coinOn .pcoin{transform:scale(1)}
.v2-ico svg { display: block; overflow: visible; } .v2-ico svg rect, .v2-ico svg path { fill: #fff; stroke: #000; stroke-width: 3.500; stroke-linecap: round; stroke-linejoin: round; } .v2-ico svg .pk { stroke: #f06; fill: none; } .v2-ico svg .pkf { fill: #f06; stroke: #000; }
.v2-net{z-index:0}.v2-bub,.v2-file,.v2-ficha{z-index:1}.v2-ph{z-index:2}.v2-url{z-index:1}.v2-cloud{z-index:2}
.v2-half .v2-cloud > svg path{stroke-width:2}.v2-half .v2-net path{stroke-width:2.5}.v2-half .v2-net .dash{stroke-dasharray:2 8;--p:10}.v2-half .v2-bub{border-width:2px}.v2-half .v2-file svg path{stroke-width:2.5}.v2-half .v2-url{border-width:2px}.popup.v2-chat{z-index:3}
.v2-chip { background: #fff; border: 4px solid #000; border-radius: 999px; padding: 6px 20px; font-size: 22px; font-weight: 700; color: #111; }
.v2-chip.pink { background: #f06; color: #fff; } .v2-chip.ok { background: #e6f8ec; }
.v2-tickb { width: 56px; height: 56px; border-radius: 50%; background: #2e9e5b; border: 4px solid #000; color: #fff; font: 700 34px/48px "DM Sans", sans-serif; text-align: center; box-sizing: border-box; }
.v2-stripe { line-height: 0; }
.v2-env { width: 100px; height: 72px; } .v2-env i { position: absolute; right: -10px; top: -12px; width: 30px; height: 30px; border-radius: 50%; background: #f06; color: #fff; border: 3px solid #000; font: 700 17px/24px "DM Sans", sans-serif; text-align: center; font-style: normal; transform: scale(0); transition: transform .4s cubic-bezier(.34,1.56,.64,1); } .v2-env.on i { transform: scale(1); }
.v2-pp { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.v2-pp .av2 { width: 84px; height: 84px; border-radius: 50%; background: #f1f1ef; border: 5px solid #000; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.v2-pp .av2 { overflow: hidden; } .v2-pp .av2 .face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; } .v2-pp .av2 svg { width: 46px; height: 46px; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; }
.v2-pp .lb { background: #f06; color: #fff; border-radius: 999px; padding: 4px 16px; font-size: 20px; font-weight: 700; }
.v2-gratis { background: #f06; color: #fff; border: 5px solid #000; border-radius: 22px; padding: 12px 44px; font: 800 58px "DM Sans", sans-serif; }
.v2-chain .cut { opacity: 0; transition: opacity .3s; } .v2-chain.broken .cut { opacity: 1; } .v2-chain { transition: transform .5s; }
.v2-bars { display: flex; gap: 8px; } .v2-bars i { width: 70px; height: 22px; border-radius: 11px; background: #f06; border: 4px solid #000; box-sizing: border-box; }
.v2-ph .v2msg.sm { font-size: 22px; }

.v2-av { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 5px solid #000; box-sizing: border-box; } .v2-av.c { background: #d97757; } .v2-av.c img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; } .v2-av.n { background: #fff; } .v2-av.n svg { width: 52px; height: 32px; } .v2-av.n svg path { fill: #000; }


/* ===== VÍDEO 2 ===== */
.v2 { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: "DM Sans", sans-serif; }
.v2-bulb { }
.popup.v2-chat { display: flex; align-items: center; gap: 10px; padding: 14px 22px; width: auto; height: auto; gap: 18px; font-size: 22px; font-weight: 700; box-sizing: border-box; }
.v2-chat .av { width: 44px; height: 44px; border-radius: 50%; background: #d97757; display: block; flex: none; } .v2-chat .av img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block; } .v2-chat .nm { color: #d97757; }
.v2-chat .slot { margin-left: 22px; opacity: 0; transform: scale(.3); transition: opacity .3s, transform .45s cubic-bezier(.34,1.56,.64,1); display: flex; }
.v2-chat.slotOn .slot { opacity: 1; transform: scale(1); }
.v2-cloud { width: 260px; height: 165px; }
.v2-cloud svg { display: block; }
.v2-cloud .duo-av { position: absolute; left: 50%; top: 56%; width: 62px; height: 62px; margin: -31px 0 0 -31px; }
.v2-cloud > svg path { transform: scale(.7); transform-box: fill-box; transform-origin: center; vector-effect: non-scaling-stroke; fill: #fff; stroke: #ff0066; stroke-width: 4; stroke-linejoin: round; transition: fill .4s; } .v2-cloud.tint > svg path { fill: #ff80b3; }
.v2-cloud .duo-av { background: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 1; transform: none; } .v2-cloud .duo-av svg { width: 36px; height: 22px; }
.tour-phone.v2-ph { gap: 14px; }
.v2-ph .av, .v2-ph .tg { width: 70px; height: 70px; border-radius: 50%; background: #f1f1ef; display: flex; align-items: center; justify-content: center; }
.v2-ph .av .face { display: none; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } .v2-ph .av.in .face { display: block; } .v2-ph .av.in svg { display: none; } .v2-ph .nm { display: none; font: 700 24px/1 "DM Sans", sans-serif; color: #2a2a2a; margin-top: -2px; } .v2-ph .av.in + .nm { display: block; } .v2-ph .av.in + .nm + .ln { display: none; } .v2-ph .av { overflow: hidden; } .v2-ph .av.in { width: 78px; height: 78px; margin: -4px 0; } .v2-ph .av svg { width: 40px; height: 40px; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; }
.v2-ph .tg { background: #2aabee; } .v2-ph .tg svg { width: 38px; height: 38px; }
.v2-ph .ln { display: block; width: 92px; height: 9px; border-radius: 5px; background: #e6e6e3; } .v2-ph .ln.s { width: 60px; }
.v2-ph .v2msg { position: absolute; left: 14px; right: 14px; bottom: 40px; height: 42px; border-radius: 16px; background: #f06; color: #fff; font: 700 28px/42px "DM Sans", sans-serif; text-align: center; transform: scale(0); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.v2-ph .v2msg.on { transform: scale(1); } .v2-ph .v2msg.red { background: #e0245e; }
.v2-url { background: #fff; border: 4px solid #000; border-radius: 999px; padding: 8px 24px; font-size: 23px; font-weight: 700; color: #f06; position: absolute; }
.v2-url .b { position: absolute; left: 0; right: 0; top: 8px; text-align: center; opacity: 0; } .v2-url .a, .v2-url .b { transition: opacity .5s; } .v2-url.alt .a { opacity: 0; } .v2-url.alt .b { opacity: 1; }
.v2-net { pointer-events: none; } .v2-net svg { display: block; overflow: visible; }
.v2-net path { fill: none; stroke: #f06; stroke-width: 5; stroke-linecap: round; }
.v2-net .dash { --p: 17; stroke-dasharray: 3 14; animation: v2dd calc(var(--p) / var(--spd, 17) * 1s) linear infinite; } /* periodo = un patrón exacto de la raya: el bucle no salta */
.v2-net .zap { stroke-width: 8; stroke-dasharray: 18 12; animation: v2d .5s linear infinite; }
.v2-net .dash.fadein { animation: v2dd calc(var(--p) / var(--spd, 17) * 1s) linear infinite, v2fi .3s ease-out both; } @keyframes v2fi { from { opacity: 0; } to { opacity: 1; } }
@keyframes v2dd { from { stroke-dashoffset: 0px; } to { stroke-dashoffset: calc(var(--p) * -1px); } }
@keyframes v2d { to { stroke-dashoffset: -34; } }
.v2-bub { width: 66px; height: 46px; background: #fff; border: 4px solid #000; border-radius: 18px 18px 18px 4px; display: flex; gap: 5px; align-items: center; justify-content: center; }
.v2-bub.r { background: #ffe3ef; border-radius: 18px 18px 4px 18px; } .v2-bub i { width: 9px; height: 9px; border-radius: 50%; background: #000; }
.v2-ficha svg { display: block; overflow: visible; } .v2-ficha .g { fill: none; stroke: #000; stroke-width: 3; stroke-linecap: round; } .v2-ficha .m { fill: none; stroke: #000; stroke-width: 3.500; stroke-linecap: round; }
.v2-ficha .m.w { stroke: #f06; stroke-width: 4; } .v2-ficha #ttO1, .v2-ficha #ttX2, .v2-ficha #ttW { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s ease-in-out; }
.v2-ficha.o1 #ttO1, .v2-ficha.x2 #ttX2, .v2-ficha.win #ttW { stroke-dashoffset: 0; }
.v2-db { width: 110px; height: 110px; } .v2-db svg { position: absolute; left: 0; top: 0; } .v2-db .st { fill: none; stroke: #000; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v2-db .tick { position: absolute; right: -34px; top: 4px; width: 42px; height: 42px; border-radius: 50%; background: #2e9e5b; border: 4px solid #000; color: #fff; font: 700 26px/34px "DM Sans", sans-serif; text-align: center; transform: scale(0); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.v2-db.done .tick { transform: scale(1); } .v2-db .tick { transition: transform .4s cubic-bezier(.34,1.56,.64,1), background-color .6s; } .v2-db.done2 .tick { background: #45d17c; }
.v2-card { background: #fff; border: 2px solid #000; border-radius: 16px; padding: 4px 14px; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.15; } .v2-card span { font-weight: 500; font-size: 13px; }
.v2-sym { width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 5px solid #f06; color: #f06; font: 700 46px/62px "DM Sans", sans-serif; text-align: center; box-sizing: border-box; } .v2-sym.red { background: #e0245e; }
.v2-hey { background: #fff; border: 4px solid #000; border-radius: 22px 22px 22px 4px; padding: 12px 20px; display: flex; gap: 10px; align-items: center; font-size: 26px; font-weight: 700; }
.v2-hey svg { width: 34px; height: 34px; fill: #ffd23f; stroke: #000; stroke-width: 1.6; stroke-linejoin: round; }
.v2-coin { width: 68px; height: 68px; border-radius: 50%; background: #ffd23f; border: 5px solid #000; font: 700 36px/58px "DM Sans", sans-serif; text-align: center; box-sizing: border-box; }
.v2-lab { background: #f06; color: #fff; border-radius: 999px; padding: 9px 24px; font-size: 22px; font-weight: 700; }
.v2-n8n svg { display: block; }
.v2-sheet { width: 190px; background: #fff; border: 5px solid #000; border-radius: 12px; padding: 12px 14px; box-sizing: border-box; }
.v2-sheet .r { height: 14px; background: #e6e6e3; border-radius: 5px; margin: 9px 0; }
.v2-sheet .new { display: flex; justify-content: space-between; background: #ffe3ef; border-radius: 6px; padding: 5px 8px; font: 700 17px "DM Sans", sans-serif; height: auto; transform: scaleY(0); transition: transform .4s cubic-bezier(.34,1.56,.64,1); transform-origin: top; }
.v2-sheet.on .new { transform: scaleY(1); } .v2-sheet .new span { color: #2e9e5b; }
.tour-screen.v2-cal { background: #fff; }
.v2-cal .h { height: 14px; background: #f06; } .v2-cal .g { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; padding: 5px; height: 86px; box-sizing: border-box; }
.v2-cal .g i { background: #e6e6e3; border-radius: 2px; transition: background .3s; } .v2-cal .g i.r { background: #f06; }
.v2-cal.flash .g i.r { animation: v2f .5s 3; } @keyframes v2f { 50% { background: #ffd23f; } }

@property --pk { syntax: '<number>'; inherits: true; initial-value: 0; }
/* Conector de Neblla: --pk (1 = toda la pastilla rosa Neblla, 0 = sus colores normales) lo anima el tour; entra con un solo movimiento continuo. */
.tour-claude .tc-conn { transform: none; background: color-mix(in srgb, #f06 calc(var(--pk) * 100%), #f6f5f2); border-color: color-mix(in srgb, #f06 calc(var(--pk) * 100%), #e2e2e2); color: color-mix(in srgb, #fff calc(var(--pk) * 100%), #1a1a1a); }
.tour-claude .tc-conn svg { stroke: color-mix(in srgb, #fff calc(var(--pk) * 100%), #2a2a2a); }
.tour-claude .tc-conn .sw { background: color-mix(in srgb, #ff8cb8 calc(var(--pk) * 100%), #ccc); }
/* Logo de Neblla en la cabecera: la versión clara (fondo negro, montaña blanca, barras rosas); el oficial nunca lleva fondo rosa (Tie). */
.tc-head .duo-av--nb { background: #000; }
.tc-head .duo-av--nb svg path { fill: #fff; }
/* Al montar el estado de una escena (sin animar): los logos de la cabecera no se reanimen. */
.tour-claude.still, .tour-claude.still *, .tour-claude.still *::after, .tour-claude.still *::before, .tour-phone.still, .tour-phone.still *, .tour-phone.still *::after, .tour-nope.still, .tour-nope.still * { transition: none !important; }
/* Móvil del amigo: sin la rayita de arriba y con la barra de navegación de Android (≡ ○ ◁) (Tie). */
/* Cabecera de Claude: «Claude + Neblla» en una sola fila; Claude en marrón, Neblla en rosa (Tie). */
.tc-head .tc-names { color: #d97757; white-space: nowrap; }
.tc-head .plus { white-space: nowrap; display: inline-flex; gap: 6px; align-items: baseline; }
.tc-head .plus i { font-style: normal; color: #bbb; font-weight: 500; }
.tc-head .plus b { color: #f06; font-weight: 700; }
.tour-phone.friend::before { top: 7px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; } /* cámara frontal */
.tour-phone.friend .board { position: relative; top: -18px; }
.tour-phone .navbar { display: none; }
.tour-phone.friend .navbar { position: absolute; left: 0; right: 0; bottom: 6px; height: 18px; display: flex; justify-content: space-around; align-items: center; padding: 0 14px; }
.tour-phone .navbar svg { width: 14px; height: 14px; fill: none; stroke: #000; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tour-phone.friend .toast { bottom: 44px !important; }
/* /animacion/new — «▶ Ver cómo funciona» sobre la home (plan home-animacion).
   Todo lo de aquí usa el lenguaje de la home: blanco, tinta #2a2a2a, rosa #f06, lila #7c5cff, DM Sans,
   píldoras, .popup (#f8f8f6, borde #ccc) y trazo negro grueso como el portátil. */

/* ---------- botón «▶ Ver cómo funciona» (estado idle) ---------- */
/* #tour es la franja de abajo (no tapa los clics de la home: solo sus botones los reciben). */
#tour { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; pointer-events: none; }
#play-row { margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#play[disabled] { opacity: 0; }
#play:focus-visible, #start-btn:focus-visible, #home-hint:focus-visible, #bar button:focus-visible { outline: 3px solid #f06; outline-offset: 2px; }
@media (max-aspect-ratio: 20/23) { #play-row { margin-bottom: 16px; } }

/* El botón «Avisar» (borde de la página) no se pone encima de la animación ni de sus controles. */
body:not([data-tour="idle"]) .nbf-tab { display: none !important; }

/* ---------- reproduciendo: la fila de abajo de la home deja sitio a subtítulo y controles ---------- */
body:not([data-tour="idle"]) #topbar,
body:not([data-tour="idle"]) #play-row,
body:not([data-tour="idle"]) a[data-nbl-link] { display: none !important; } /* la animación va limpia: sin logo ni Galería */

#player[hidden], #note[hidden], #sub[hidden], #bar [hidden] { display: none !important; }
#player {
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 8px 16px 18px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 18px);
}
#sub {
  margin: 0; max-width: 820px; min-height: 2.7em; display: flex; align-items: center; justify-content: center;
  font-family: "DM Sans", sans-serif; font-size: 20px; font-weight: 500; line-height: 1.35; color: #2a2a2a; text-align: center;
  text-wrap: balance;
}
#note { margin: -4px 0 0; font-family: "DM Sans", sans-serif; font-size: 13px; color: #777; text-align: center; }
#bar { display: flex; align-items: center; justify-content: center; gap: 10px; }
#bar button {
  min-width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 0;
  background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .15s, background .15s;
}
#bar button:hover { background: #f06; }
#bar button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#bar button .i-play { fill: currentColor; stroke: none; }
#pause .i-play, #tour[data-state="paused"] #pause .i-pause { display: none; }
#tour[data-state="paused"] #pause .i-play { display: block; }
#bar button[disabled] { opacity: .25; cursor: default; background: #000; }
#bar #subsbtn[aria-pressed="false"] { background: #fff; color: #000; box-shadow: inset 0 0 0 2px #000; }
#bar .pill { padding: 0 22px; }
#voz { height: 44px; max-width: 190px; padding: 0 30px 0 14px; border-radius: 999px; border: 2px solid #000; background: #fff; color: #000;
  font: 600 14px "DM Sans", sans-serif; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
#voz:focus-visible { outline: 3px solid #f06; outline-offset: 2px; }
@media (max-aspect-ratio: 20/23) { #voz { max-width: 120px; } }
#bar .cta { background: #f06; box-shadow: 0 6px 18px rgba(255,0,102,.35); font-size: 16px; padding: 0 28px; }
#bar .cta:hover { filter: brightness(1.06); background: #f06; }
@media (max-aspect-ratio: 20/23) {
  #sub { font-size: 17px; min-height: 4.1em; }
  #bar { gap: 8px; }
}

/* ---------- piezas nuevas de las escenas (dentro del #stage de la home) ---------- */
.tour-piece { opacity: 0; }

/* La página de Claude: un .popup de la home partido en dos, la conversación y el Artefacto. */
.popup.tour-claude { --cw: 320px; box-sizing: border-box; width: 780px; height: 450px; padding: 0; white-space: normal; display: grid; grid-template-rows: 52px minmax(0, 1fr); overflow: hidden; font-family: "DM Sans", sans-serif; color: #2a2a2a; }
.tc-head { overflow: hidden; transition: opacity .5s; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid #e2e2e2; font-size: 17px; font-weight: 700; }
.tc-head .duo-av { width: 32px; height: 32px; transition: transform .9s cubic-bezier(.65,0,.35,1), opacity .4s; }
.tc-head .duo-av svg { width: 18px; height: 18px; }
.tc-head .duo-av .tc-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block; }
.tc-msg.c::before { content: ''; display: inline-block; width: 16px; height: 16px; margin-inline-end: 6px; vertical-align: -3px; background: url(/img/claude_logo.webp) center / contain no-repeat; }
.tc-head .duo-av--nb svg { width: 22px; height: 14px; }
.tc-head .duo-av--nb { opacity: 0; transform: scale(.3); margin-inline-start: -42px; transition: transform .9s cubic-bezier(.65,0,.35,1), opacity .4s, margin .5s; }
.tour-claude.neblla .tc-head .duo-av--nb { margin-inline-start: 0; }
.tour-claude.neblla .tc-head .duo-av--nb { opacity: 1; transform: none; }
.tour-claude.merged .tc-head .duo-av--ai { transform: translateX(13px); }
.tour-claude.merged .tc-head .duo-av--nb { transform: translateX(-13px); opacity: .92; }
.tc-head .plus { color: #bbb; font-weight: 500; opacity: 0; transition: opacity .4s; }
.tour-claude.neblla .tc-head .plus { opacity: 1; }
.tc-head .tc-names { transition: transform .9s cubic-bezier(.65,0,.35,1); }
.tc-body { display: grid; grid-template-columns: var(--cw) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; }
.tc-chat { overflow: hidden; display: flex; flex-direction: column; min-height: 0; padding: 14px; gap: 10px; }
.tc-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.tc-msg { max-width: 88%; padding: 9px 13px; font-size: 15px; line-height: 1.35; border-radius: 14px; animation: tc-in .35s ease-out; }
.tc-msg.u { align-self: flex-end; background: #fff; border: 1px solid #d6d6d6; border-bottom-right-radius: 4px; }
.tc-msg.c { align-self: flex-start; background: #efeaff; border-bottom-left-radius: 4px; }
.tc-msg.c b { color: #f06; text-decoration: underline; text-underline-offset: 2px; } /* el enlace al juego es un enlace: sin fondo, rosa y subrayado (Tie, 2026-11-05) */
.tc-msg .tour-wa { height: 40px; font-size: 15px; padding: 0 16px; margin-top: 8px; }
.tc-msg .tour-wa svg { width: 18px; height: 18px; }
@keyframes tc-in { from { opacity: 0; transform: translateY(8px); } }
.tc-input { flex: none; }
.tc-input.popup-input-frame { width: auto; font-size: 15px; min-height: 0; height: 44px; box-sizing: border-box; }
.tour-claude.tall .tc-input.popup-input-frame { height: 50px; }
.tc-art { position: relative; overflow: hidden; min-width: 0; min-height: 0; border-left: 1px solid #e2e2e2; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity .5s; }
.tour-claude.art .tc-art { opacity: 1; }
.tc-art .tc-tag { position: absolute; top: 12px; left: 16px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #999; }
.tc-art .board { width: 290px; height: 290px; margin-top: 18px; transition: filter .5s; }
.tour-claude.locked .tc-art .board { filter: grayscale(1) opacity(.4); }
.tc-art .lock { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: #fff; border: 2px solid #111;
  display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform .45s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.tour-claude.locked .tc-art .lock { transform: scale(1); }
.tc-art .lock svg { width: 44px; height: 44px; fill: none; stroke: #111; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Móvil vertical: la conversación encima y el Artefacto debajo. */
.popup.tour-claude.tall { width: 470px; height: 660px; }
.tour-claude.tall .tc-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 260px minmax(0, 1fr); }
.tour-claude.tall .tc-art { border-left: 0; border-top: 1px solid #e2e2e2; }
.tour-claude.tall .tc-art .board { width: 300px; height: 300px; }
.tour-claude.tall .tc-msg, .tour-claude.tall .tc-input.popup-input-frame { font-size: 17px; }

/* Tablero de Hundir la flota con los colores de la home. */
.board { display: block; width: 236px; height: 236px; }
.board .lab { font: 600 10px "DM Sans", sans-serif; fill: #999; }
.board .cell { fill: #fff; stroke: #e2e2e2; stroke-width: 1; }
.board .ship { transition: fill .5s, transform .6s cubic-bezier(.34,1.56,.64,1); }
.board .ship { fill: #9a9a9a; }
.tc-art .board { overflow: visible; }
.board.out .ship.k3 { transform: translate(40px, -6px); }
.board.recolor .ship.k1 { fill: #f06; } .board.recolor .ship.k2 { fill: #7c5cff; } .board.recolor .ship.k3 { fill: #ffb703; }
.board .target, .board .hit { opacity: 0; transition: opacity .25s; }
.board.aim .target, .board.shot .hit { opacity: 1; }
.board.shot .target { opacity: 0; }

/* Lo que falta en el chat: tres avatares como los de la home, tachados en rosa. */
.popup.tour-nope { display: flex; gap: 18px; padding: 18px 22px; }
.popup.tour-nope.vert { flex-direction: column; padding: 22px 18px; }
.tour-nope .no { position: relative; width: 58px; height: 58px; border-radius: 50%; background: #f1f1ef; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s cubic-bezier(.34,1.56,.64,1); }
.tour-nope .no.on { opacity: 1; transform: scale(1); }
.tour-nope .no svg { width: 30px; height: 30px; fill: none; stroke: #2a2a2a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-nope .no::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #f06; transform: rotate(-35deg) scaleX(0); transition: transform .35s .25s ease-out; }
.tour-nope .no.on::after { transform: rotate(-35deg) scaleX(1); }

/* Pantalla del portátil de la home: el tablero en lugar de la bombilla. */
.tour-screen { position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0;
  /* lleva el cuadrado de 100×100 a la pantalla blanca de ordenador.png (homografía de sus cuatro esquinas, al 84 %) */
  transform: matrix3d(1.820565,0.687255,0,-0.001487,1.140098,2.544980,0,0.005022,0,0,1,0,252.16,62.04,0,1);
  opacity: 0; transition: opacity .4s; }
.tour-screen.on { opacity: 1; }
.tour-screen .board { width: 100px; height: 100px; }

/* Móvil dibujado como el portátil: trazo negro grueso. */
.tour-phone { width: 170px; height: 330px; border: 13px solid #000; border-radius: 34px; background: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.tour-phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 46px; height: 7px; margin-left: -23px; border-radius: 4px; background: #000; }
.tour-phone .board { width: 128px; height: 128px; }
.tour-phone .toast { font: 700 18px "DM Sans", sans-serif; color: #fff; background: #f06; border-radius: 999px; padding: 6px 14px; transform: scale(0); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.tour-phone .toast.on { transform: scale(1); }
.tour-phone .msg { position: absolute; left: 8px; right: 8px; bottom: 14px; padding: 9px 11px; border-radius: 14px 14px 14px 4px; background: #e9fbe5; border: 1.5px solid #b9e8ad;
  font: 500 13px/1.3 "DM Sans", sans-serif; color: #2a2a2a; transform: translateY(140%); transition: transform .5s cubic-bezier(.34,1.3,.64,1); }
.tour-phone .msg b { display: block; color: #f06; font-weight: 700; word-break: break-all; }
.tour-phone .msg.on { transform: translateY(0); }

/* Invitar: una píldora verde genérica (sin el logo de WhatsApp). */
.tour-wa { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; height: 54px; border-radius: 999px; background: #25d366; color: #fff;
  font: 700 19px "DM Sans", sans-serif; white-space: nowrap; box-shadow: 0 6px 18px rgba(37,211,102,.35); }
.tour-wa svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Escena 5: las dos filas del popup de la IA y Neblla se juntan hasta no saber dónde acaba una. */
.popup--duo .duo-row { transition: transform .9s cubic-bezier(.65,0,.35,1); }
/* Las dos filas bajan/suben a la misma línea y sus burbujas se tocan: una sola burbuja, mitad IA, mitad Neblla. */
.popup--duo .duo-bubble { transition: width .9s cubic-bezier(.65,0,.35,1), border-radius .9s; }
.popup--duo.merge .duo-row--ai { transform: translateY(33px); }
.popup--duo.merge .duo-row--nb { transform: translateY(-33px); }
.popup--duo.merge .duo-bubble { width: 74px; }
.popup--duo.merge .duo-row--ai .duo-bubble { border-radius: 18px 0 0 18px; border-right-width: 0; }
.popup--duo.merge .duo-row--nb .duo-bubble { border-radius: 0 18px 18px 0; border-left-width: 0; }
.popup--duo.merge .duo-spark { left: 44px; }

@media (prefers-reduced-motion: reduce) {
  .tc-art .lock, .tc-head .duo-av, .tour-nope .no, .tour-nope .no::after, .tour-phone .toast, .tour-phone .msg, .board .ship, .popup--duo .duo-row, .tour-screen { transition: none !important; }
}

/* Escena 2: la ventana de Claude nace con el tamaño exacto del chat de la home (.morph) y crece (.grow): el margen gris se expande. */
.popup.tour-claude.morph { width: var(--mw); height: var(--mh); padding: 22px 26px; grid-template-rows: 0 minmax(0, 1fr); --cw: var(--fw); }
.tour-claude.morph .tc-head { opacity: 0; border-bottom-color: transparent; }
.tour-claude.morph .tc-chat { padding: 0; gap: 0; }
.tour-claude.morph .tc-art { border-color: transparent; }
.tour-claude.morph .tc-input.popup-input-frame { height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; }
/* Tu primer mensaje empieza siendo el rectángulo blanco del chat de la home. */
.tc-msg.u { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.tc-msg.u.seed { max-width: none; padding: 12px 16px; border-radius: 8px; font-size: 14px; color: #555; white-space: nowrap; overflow: hidden; }
.tour-claude.grow .tc-msg.u { transition: width .9s cubic-bezier(.65,0,.35,1), padding .9s cubic-bezier(.65,0,.35,1), border-radius .9s, font-size .9s, color .9s; }
.tour-claude.tall.morph .tc-body { grid-template-rows: minmax(0, 1fr) 0; }
.popup.tour-claude.grow, .tour-claude.grow .tc-body, .tour-claude.grow .tc-chat, .tour-claude.grow .tc-input.popup-input-frame {
  transition: width .9s cubic-bezier(.65,0,.35,1), height .9s cubic-bezier(.65,0,.35,1), padding .9s cubic-bezier(.65,0,.35,1),
    grid-template-rows .9s cubic-bezier(.65,0,.35,1), grid-template-columns .9s cubic-bezier(.65,0,.35,1), font-size .9s, gap .9s, opacity .9s, border-width .9s; }
/* Escenas 4 y 5: sin Artefacto, la ventana se queda en la conversación. */
.popup.tour-claude.noart { width: 322px; }
/* La ventana hace de máscara: su contenido no cambia de tamaño, solo se recorta. */
.tour-claude.noart .tc-body { width: 778px; height: 396px; }
.popup.tour-claude.tall.noart { width: 470px; height: 314px; }
.tour-claude.tall.noart .tc-body { width: 468px; height: 606px; }
/* Última pantalla: solo Repetir, Empezar y Cerrar. */
#bar.final #prev, #bar.final #pause, #bar.final #next, #bar.final #voz, #bar.final #subsbtn { display: none !important; }

/* Escena 5: el botón verde en tu móvil; el móvil del amigo recibe la notificación y abre el juego. */
.tour-phone .wa-btn { position: absolute; left: 50%; bottom: 14px; width: 46px; height: 46px; padding: 0; justify-content: center; box-shadow: 0 4px 12px rgba(37,211,102,.35);
  transform: translateX(-50%) scale(0); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.tour-phone .wa-btn svg { width: 24px; height: 24px; }
.tour-phone.wa .wa-btn { transform: translateX(-50%) scale(1); }
.tour-phone.wa.press .wa-btn { transform: translateX(-50%) scale(.86); transition-duration: .12s; }
.tour-phone.friend .board { opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.tour-phone.friend.game .board { opacity: 1; transform: none; }
.tour-phone .notif { position: absolute; top: 18px; left: 7px; right: 7px; display: flex; gap: 7px; align-items: flex-start; padding: 8px 9px; border-radius: 12px;
  background: #fff; border: 1.5px solid #ddd; box-shadow: 0 6px 16px rgba(0,0,0,.14); font: 500 12px/1.3 "DM Sans", sans-serif; color: #2a2a2a;
  transform: translateY(-160%); transition: transform .5s cubic-bezier(.34,1.3,.64,1); }
.tour-phone .notif .ic { flex: none; width: 22px; height: 22px; border-radius: 6px; background: #25d366; display: grid; place-items: center; }
.tour-phone .notif .ic svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tour-phone .notif b { display: block; color: #f06; font-weight: 700; word-break: break-all; }
.tour-phone.notified .notif { transform: translateY(0); }
.tour-phone.notified.press .notif { transform: scale(.92); transition-duration: .12s; background: #f2f2f2; }
.tour-phone.game .notif { transform: translateY(-160%); }
/* El móvil del amigo: su «¡Tocado!» va arriba del tablero, donde no tapa nada. */
.tour-phone.friend .toast { position: absolute; bottom: 22px; }

/* Móvil en horizontal: la pantalla es baja. Los botones van en columna a la izquierda y el subtítulo es una línea fina abajo. */
@media (orientation: landscape) and (max-height: 500px) {
  #player { padding: 2px 16px 4px 72px; gap: 0; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 8px); }
  #sub { font-size: 14px; line-height: 1.25; min-height: 0; max-width: none; }
  #note { display: none !important; }
  #bar { position: fixed; left: max(10px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); flex-direction: column; gap: 8px; }
  #bar #voz { display: none; }
  #bar .pill { padding: 0 14px; font-size: 13px; }
  #bar .cta { padding: 0 16px; font-size: 14px; }
}

/* Guion v2 (2026-11-02): el enlace se ilumina, los iconos tachados se destachan y el conector en la cabecera de Claude */
.tc-msg.c b { transition: text-decoration-thickness .4s, text-underline-offset .4s; }
.tc-msg.c b.hl { text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tour-nope .no.ok::after { transform: rotate(-35deg) scaleX(0); transition: transform .35s ease-in; }
.tour-nope .no.ok { background: #ffe1ef; }
.tour-nope .no.ok svg { stroke: #f06; }
.tour-nope .no { transition: opacity .3s, transform .45s cubic-bezier(.34,1.56,.64,1), background .4s; }
.tour-nope .no svg { transition: stroke .4s; }
.tc-conn { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border-radius: 999px; background: #f6f5f2; border: 1px solid #e2e2e2; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .45s cubic-bezier(.34,1.56,.64,1); }
.tour-claude.conn .tc-conn { opacity: 1; transform: none; }
.tc-conn svg { width: 18px; height: 18px; fill: none; stroke: #2a2a2a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-conn .sw { position: relative; width: 32px; height: 18px; border-radius: 9px; background: #ccc; transition: background .3s; }
.tc-conn .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s; }
.tour-claude.conn-on .tc-conn .sw { background: #f06; }
.tour-claude.conn-on .tc-conn .sw::after { transform: translateX(14px); }
[dir="rtl"] .tour-claude.conn-on .tc-conn .sw::after { transform: translateX(-14px); }
/* con el conector a la vista, «+ Neblla» sobra (lo dice el conector) y deja sitio en la cabecera estrecha */
.tour-claude.conn .tc-head .plus { display: none; }
.tour-claude.noart .tc-head { gap: 8px; padding: 0 12px; box-sizing: border-box; width: 320px; }
.tour-claude.tall.noart .tc-head { width: 468px; }
@media (prefers-reduced-motion: reduce) { .tc-conn, .tc-conn .sw, .tc-conn .sw::after, .tour-nope .no svg { transition: none !important; } }

/* ---------- la invitación al entrar (Tie, 2026-11-02): modal en el ordenador, mini modal abajo en el móvil ---------- */
  opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .3s, transform .35s cubic-bezier(.34,1.4,.64,1), width .45s cubic-bezier(.65,0,.35,1), height .45s cubic-bezier(.65,0,.35,1), border-radius .45s, padding .45s; }
/* móvil: una tarjetita abajo con los dos botones */
/* «Ver cómo funciona»: crece a pantalla completa y se desvanece sobre la animación */
