/* Optimisuper — página de presentación (estilo apple.com/os/ios) */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #fbfbfd;
  --soft: #f5f5f7;
  --navy: #0b1220;
  --blue: #1f59ff;
  --accent: #ff00da;
  --accent-strong: #cf00a2;
  --line: rgba(0, 0, 0, .1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; padding: 0; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* ---------- Barra superior ---------- */
.gnav { position: sticky; top: 0; z-index: 100; height: 52px; background: rgba(251, 251, 253, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.gnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gnav .brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.gnav .brand img { width: 26px; height: 26px; border-radius: 7px; }
.gnav .wrap > ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: #424245; }
.gnav .wrap > ul a { opacity: .85; transition: opacity .2s; }
.gnav .wrap > ul a:hover { opacity: 1; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 17px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; transition: filter .2s, transform .2s; }
.pill:hover { filter: brightness(1.12); }
.pill.big { padding: 13px 26px; font-size: 17px; }
.pill.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.pill.lime { background: var(--accent); color: #fff; }
.link-arrow { color: var(--blue); font-size: 19px; }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Tipografía de secciones ---------- */
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: #c400a8; margin: 0 0 8px; }
.dark .eyebrow { color: var(--accent); }
.h2 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin: 0; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; letter-spacing: -.012em; font-weight: 500; color: var(--muted); margin: 18px 0 0; }
.dark .lede { color: #a1a1a6; }
.grad { background: linear-gradient(95deg, #1f59ff 0%, #6a4dff 38%, #b21fe8 70%, #ff00da 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 0; background: radial-gradient(1200px 520px at 50% 0, #eaf2ff 0, rgba(234, 242, 255, 0) 70%), var(--bg); overflow: hidden; }
.hero .kicker { font-size: 21px; font-weight: 600; margin: 0 0 6px; }
.hero h1 { font-size: clamp(54px, 10vw, 118px); line-height: .98; letter-spacing: -.05em; font-weight: 750; margin: 0; }
.hero .sub { font-size: clamp(21px, 2.8vw, 30px); line-height: 1.22; letter-spacing: -.015em; font-weight: 500; color: var(--muted); margin: 20px auto 0; max-width: 760px; }
.hero .ctas { margin-top: 30px; display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-stage { margin-top: 56px; position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 3vw, 46px); height: calc(868px * var(--s-main) * .86); overflow: hidden; --s-main: .78; --s-side: .6; }
.hero-stage .side { align-self: flex-end; transform: translateY(8%); }
.hero-stage .main { transform: translateY(4%); }
.rise { animation: rise 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.rise.l { animation-delay: .25s; } .rise.r { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(120px); } }

/* ---------- Teléfono ---------- */
.pwrap { width: calc(414px * var(--s, 1)); height: calc(868px * var(--s, 1)); flex: none; }
.phone { position: relative; width: 414px; height: 868px; padding: 12px; border-radius: 66px; transform: scale(var(--s, 1)); transform-origin: 0 0; background: linear-gradient(150deg, #8d8d94 0, #2b2b30 22%, #1a1a1d 60%, #6a6a72 100%); box-shadow: 0 50px 90px -20px rgba(0, 0, 0, .45), 0 0 0 1.5px rgba(255, 255, 255, .22) inset; }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #3b3b40; }
.phone::before { left: -3px; top: 150px; height: 64px; box-shadow: 0 90px 0 #3b3b40; }
.phone::after { right: -3px; top: 220px; height: 100px; }
.scr { position: relative; width: 390px; height: 844px; border-radius: 54px; overflow: hidden; background: linear-gradient(180deg, #b9ddfb 0, #dcefff 38%, #eef7ff 100%); font-size: 15px; color: #081a3a; user-select: none; -webkit-user-select: none; isolation: isolate; }
.island { position: absolute; z-index: 90; top: 11px; left: 50%; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #000; }
.status { position: absolute; z-index: 80; top: 0; left: 0; right: 0; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0; font-weight: 650; font-size: 16px; pointer-events: none; }
.status svg { height: 12px; fill: currentColor; }
.status .r { display: flex; gap: 6px; align-items: center; }
.glass { background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 28px rgba(31, 87, 148, .14), inset 0 1px 0 #fff; }
.view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(.97); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s; }
.view.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.scroller { position: absolute; inset: 0; padding: 58px 12px 100px; transition: transform 1.1s cubic-bezier(.4, 0, .2, 1); }
.finger { position: absolute; z-index: 95; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .5); border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 22px rgba(8, 26, 58, .3), 0 0 0 1px rgba(8, 26, 58, .08); opacity: 0; transform: translate(190px, 820px); transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .35s, scale .15s, background .15s; pointer-events: none; }
.finger.on { opacity: 1; }
.finger.down { scale: .8; background: rgba(255, 255, 255, .85); }
.toast { position: absolute; z-index: 85; left: 50%; top: 112px; transform: translate(-50%, -24px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: rgba(8, 26, 58, .9); color: #fff; font-weight: 650; font-size: 14px; white-space: nowrap; transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Historia: teléfono fijo + capítulos ---------- */
.dark { background: var(--navy); color: #f5f5f7; }
.story { height: 720vh; position: relative; }
.story-sticky { position: sticky; top: 52px; height: calc(100vh - 52px); min-height: 600px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 6vw, 90px); width: min(1080px, 100% - 40px); margin: 0 auto; }
.story-copy { position: relative; height: 440px; }
.chap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.chap.on { opacity: 1; transform: none; pointer-events: auto; }
.chap h3 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin: 0; }
.chap p { font-size: clamp(18px, 2vw, 22px); line-height: 1.42; color: #a1a1a6; font-weight: 500; margin: 18px 0 0; max-width: 460px; }
.chap .num { font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.story-dots { position: absolute; left: 0; bottom: -24px; display: flex; gap: 8px; }
.story-dots i { width: 8px; height: 8px; border-radius: 99px; background: #3a3a3f; transition: width .4s, background .4s; }
.story-dots i.on { width: 30px; background: var(--accent); }
.story-phone { display: grid; place-items: center; }

/* ---------- Íconos con lupa ---------- */
.lens-sec { background: radial-gradient(900px 420px at 50% 0, #14264f 0, transparent 70%), #05070d; color: #f5f5f7; padding: 120px 0 130px; text-align: center; overflow: hidden; }
.lens-stage { position: relative; margin: 56px auto 0; width: min(920px, 100% - 24px); padding: 80px 10px 62px; border-radius: 44px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); cursor: none; touch-action: pan-y; }
.dock { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dock figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.dock img { width: min(120px, 15vw); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .45)); }
.dock figcaption { font-size: clamp(11px, 1.6vw, 15px); font-weight: 650; color: #d2d2d7; }
.lens { position: absolute; left: 0; top: 0; width: 220px; height: 220px; margin: 0; border-radius: 50%; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(circle at 35% 30%, #1d2c52, #070b15 75%); box-shadow: 0 0 0 5px rgba(255, 255, 255, .55), 0 0 0 9px rgba(255, 255, 255, .12), 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 40px rgba(124, 190, 255, .35); }
.lens.on { opacity: 1; }
.lens::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 32%), radial-gradient(circle at 70% 85%, rgba(199, 243, 107, .18), transparent 40%); }
.lens-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lens-in .dock img { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
.lens-cap { margin: 26px auto 0; min-height: 56px; max-width: 560px; }
.lens-cap b { display: block; font-size: 24px; letter-spacing: -.02em; }
.lens-cap span { color: #a1a1a6; font-size: 17px; }

/* ---------- Cierre ---------- */
.cta { padding: 140px 0; text-align: center; background: radial-gradient(800px 400px at 50% 100%, #1f59ff55 0, transparent 70%), var(--navy); color: #f5f5f7; }
.cta .h2 { max-width: 820px; margin: 0 auto; }
footer { padding: 28px 0 40px; background: var(--soft); color: #6e6e73; font-size: 12px; text-align: center; line-height: 1.6; }

/* ---------- Adaptación a pantallas chicas ---------- */
@media (max-width: 900px) {
  .gnav .wrap > ul { display: none; }
  .hero-stage .side { display: none; }
  .hero-stage { --s-main: .7; }
  .story { height: 760vh; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 22px; gap: 0; }
  .story-phone { order: -1; }
  .story-copy { height: 250px; margin-top: 4px; }
  .chap h3 { font-size: 30px; } .chap p { font-size: 16px; margin-top: 10px; } .chap .num { margin-bottom: 6px; font-size: 13px; }
  .story-dots { bottom: auto; top: -8px; left: auto; right: 0; }
  .merch-grid { grid-template-columns: 1fr; }
  .merch-phones { justify-content: center; }
  .tiles { grid-template-columns: 1fr; }
  .tile.t-a, .tile.t-b, .tile.t-c, .tile.t-d { grid-column: auto; }
  .plan-grid { grid-template-columns: 1fr; }
  .pay { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .lens-stage { cursor: default; }
}
@media (max-width: 560px) {
  .merch-phones .b { display: none; }
  .tile { padding: 28px 24px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise { animation: none; }
  .frame .line, .cam-frame .flash, .pay figure, .photo-demo .out { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Selector de idioma (igual al de OptimiMarket) ---------- */
.nav-right { display: flex; align-items: center; gap: 16px; }
.idioma { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 0 0 auto; }
.idioma .idioma-boton { display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 20px; padding: 0 7px; border: 1px solid rgba(64, 88, 115, .28); border-radius: 7px; background: rgba(255, 255, 255, .9); color: #405873; font: 800 10px/1 var(--font); letter-spacing: .02em; cursor: pointer; }
.idioma-boton span { font: inherit; }
.idioma-boton svg { width: 7px; height: 5px; flex: 0 0 7px; transition: transform .2s; }
.idioma-boton[aria-expanded="true"] svg { transform: rotate(180deg); }
.idioma-lista { position: absolute; right: 0; top: calc(100% + 10px); z-index: 300; min-width: 150px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(7, 26, 61, .28); }
.idioma-lista[hidden] { display: none; }
.idioma-lista li { display: flex; align-items: center; padding: 9px 12px; border-radius: 9px; color: #17233a; font: 700 14px/1.2 var(--font); white-space: nowrap; cursor: pointer; }
.idioma-lista li:hover, .idioma-lista li:focus-visible { background: #eaf2ff; outline: none; }
.idioma-lista li[aria-selected="true"] { color: #075eea; background: #e0ecff; }
.idioma-bandera, .idioma-bandera-chica { position: relative; display: block; flex: 0 0 auto; border-radius: 2px; overflow: hidden; box-shadow: 0 1.5px 3px rgba(11, 18, 32, .38); }
.idioma-bandera::after, .idioma-bandera-chica::after { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%); pointer-events: none; }
.idioma-bandera { width: 20px; height: 15px; }
.idioma-bandera-chica { width: 24px; height: 18px; margin-right: 10px; }
.idioma-bandera img, .idioma-bandera-chica img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (max-width: 560px) { .nav-right { gap: 10px; } .gnav .pill { padding: 8px 13px; } }

/* ---------- Chino: tipografía propia (sin separación entre letras negativa, interlínea más amplia) ---------- */
html[data-lang="zh"] body, html[data-lang="zh"] button { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif; }
html[data-lang="zh"] * { letter-spacing: 0 !important; }
html[data-lang="zh"] .hero h1 { line-height: 1.05; }
html[data-lang="zh"] .h2, html[data-lang="zh"] .chap h3, html[data-lang="zh"] .tile h3 { line-height: 1.2; font-weight: 700; }
html[data-lang="zh"] .hero .sub, html[data-lang="zh"] .lede, html[data-lang="zh"] .chap p, html[data-lang="zh"] .tile p, html[data-lang="zh"] .steps li, html[data-lang="zh"] .plan li { line-height: 1.6; }
html[data-lang="zh"] .eyebrow, html[data-lang="zh"] .tile .k, html[data-lang="zh"] .chap .num { text-transform: none; }
html[data-lang="zh"] .lens-cap { max-width: 640px; }
html[data-lang="zh"] .scr, html[data-lang="zh"] .scr * { line-break: strict; }
html[data-lang="zh"] .card h4, html[data-lang="zh"] .crow h4 { text-transform: none; }
html[data-lang="zh"] .tag, html[data-lang="zh"] .pb, html[data-lang="zh"] .seg span, html[data-lang="zh"] .hd-ic, html[data-lang="zh"] .svc { font-weight: 700; }
.card h4 { text-transform: uppercase; }
html[data-lang="en"] .card h4, html[data-lang="fr"] .card h4, html[data-lang="pt"] .card h4, html[data-lang="it"] .card h4 { text-transform: uppercase; }


/* ---------- Mosaico ---------- */
.bento { padding: 130px 0; background: var(--soft); }
.bento .head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; overflow: hidden; border-radius: 32px; background: #fff; padding: 36px 36px 0; min-height: 520px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.tile.t-a { grid-column: span 3; } .tile.t-b { grid-column: span 3; } .tile.t-c { grid-column: span 2; min-height: 460px; } .tile.t-d { grid-column: span 4; min-height: 460px; }
.tile h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.03em; margin: 0; font-weight: 700; }
.tile p { margin: 12px 0 0; font-size: 17px; line-height: 1.4; color: var(--muted); font-weight: 500; max-width: 420px; }
.tile .k { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #c400a8; margin: 0 0 10px; }
.tile.navy { background: var(--navy); color: #f5f5f7; } .tile.navy p { color: #a1a1a6; } .tile.navy .k { color: var(--lime); }
.tile .pbox { margin-top: auto; display: flex; justify-content: center; align-items: flex-start; height: 330px; overflow: hidden; padding-top: 28px; }
.tile .pbox .pwrap { margin-bottom: -300px; }
.lang-big { margin: auto 0; text-align: center; padding-bottom: 30px; }
.lang-big img { width: 84px; height: 56px; object-fit: cover; margin: 0 auto 14px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.lang-big .w { font-size: clamp(54px, 7vw, 84px); font-weight: 750; letter-spacing: -.045em; line-height: 1; transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.lang-big .w.out { opacity: 0; transform: translateY(18px); }
.lang-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.lang-dots img { width: 30px; height: 20px; object-fit: cover; border-radius: 4px; opacity: .35; transition: opacity .3s, transform .3s; margin: 0; box-shadow: none; }
.lang-dots img.on { opacity: 1; transform: scale(1.25); }
.photo-demo { margin: auto 0 30px; position: relative; height: 260px; display: grid; place-items: center; }
.cam-frame { position: relative; width: 190px; height: 250px; border-radius: 26px; background: #121a29; overflow: hidden; box-shadow: 0 24px 46px rgba(0, 0, 0, .3); }
.cam-frame .ph { position: absolute; inset: 22px 14px 40px; border-radius: 16px; background-color: #fff; }
.cam-frame .grid3 { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 33%, rgba(255, 255, 255, .22) 33% 33.4%, transparent 33.4% 66%, rgba(255, 255, 255, .22) 66% 66.4%, transparent 66.4%), linear-gradient(0deg, transparent 33%, rgba(255, 255, 255, .22) 33% 33.4%, transparent 33.4% 66%, rgba(255, 255, 255, .22) 66% 66.4%, transparent 66.4%); }
.cam-frame .shutter { position: absolute; left: 50%; bottom: 8px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 255, 255, .3); }
.cam-frame .flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 4.5s infinite; }
@keyframes flash { 0%, 60% { opacity: 0; } 62% { opacity: .95; } 72%, 100% { opacity: 0; } }
.photo-demo .out { position: absolute; right: -8px; bottom: 6px; width: 96px; height: 128px; border-radius: 16px; background-color: #fff; box-shadow: 0 16px 30px rgba(0, 0, 0, .28), 0 0 0 3px #fff; transform: rotate(7deg); animation: popout 4.5s infinite; }
@keyframes popout { 0%, 64% { opacity: 0; transform: translateY(30px) rotate(0) scale(.6); } 74%, 94% { opacity: 1; transform: rotate(7deg); } 100% { opacity: 0; } }
.pay { margin: auto 0 20px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
.pay figure { margin: 0; display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--muted); animation: bob 4s ease-in-out infinite; }
.pay figure:nth-child(2n) { animation-delay: -1s; } .pay figure:nth-child(3n) { animation-delay: -2s; }
.pay img { height: 70px; width: 100%; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .18)); }
@keyframes bob { 50% { transform: translateY(-9px); } }


/* =====================================================================================================
   Optimisuper — el celular (pantallas de la app real) e íconos animados del menú
   ===================================================================================================== */
.scr { background: #fff; color: #000; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif; }
.view { background: #fff; }
.glass { background: rgba(245, 245, 247, .74); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 10px 30px rgba(0, 0, 0, .12), inset 0 1px 0 #fff; }
.os-h1 { position: absolute; top: 76px; left: 18px; margin: 0; font-size: 31px; font-weight: 700; letter-spacing: -.02em; }
.os-h1.big { top: 76px; }

/* ---------- Íconos animados (copia de los de la app; las fases se sincronizan con --age) ---------- */
.ico { position: relative; display: block; width: var(--sz, 28px); height: var(--sz, 28px); flex: none; }
.ico > svg, .ico > img, .ico .lay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.ico svg { overflow: visible; }
.ico * { animation-delay: calc(var(--age, 0s) * -1); }
/* Escáner: marco que late + línea roja que barre con estela */
.esc-marco { animation: escMarco 1.6s ease-in-out infinite; }
.esc-barrido { animation: escBarrido 1.6s linear infinite; }
@keyframes escMarco { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes escBarrido { from { transform: translateY(0); } to { transform: translateY(31px); } }
/* Carrito: rebote, rayas de velocidad, tres productos que saltan y dos ruedas que giran */
.car-bote { position: absolute; inset: 0; animation: carBote .7s ease-in-out infinite; }
@keyframes carBote { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--sz, 28px) * -.0234)); } }
.car-prod { position: absolute; border-radius: calc(var(--sz, 28px) * .03); animation: carProd .7s linear infinite; animation-delay: calc(var(--age, 0s) * -1 + var(--d, 0s) - .7s); }
@keyframes carProd { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.5, 1, .89, 1); } 50% { transform: translateY(calc(var(--sz, 28px) * -.0469)); animation-timing-function: cubic-bezier(.11, 0, .5, 0); } 100% { transform: translateY(0); } }
.car-rueda { position: absolute; width: 17.2%; height: 17.2%; animation: giro .7s linear infinite; }
.car-raya { position: absolute; border-radius: 99px; background: #378ADD; opacity: 0; animation: carRaya .9s cubic-bezier(.5, 1, .89, 1) infinite; animation-delay: calc(var(--age, 0s) * -1 + var(--d, 0s) - .9s); }
@keyframes carRaya { 0% { opacity: 0; transform: translateX(calc(var(--sz, 28px) * .094)); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateX(calc(var(--sz, 28px) * -.0625)); } }
@keyframes giro { to { transform: rotate(360deg); } }
/* RADAR: círculos fijos, barrido que gira (4 s) y blancos rojos que se encienden al pasar el barrido */
.rad-giro { animation: giro 4s linear infinite; }
.rad-blanco { position: absolute; width: max(3px, calc(var(--sz, 28px) * .1)); height: max(3px, calc(var(--sz, 28px) * .1)); margin: calc(max(3px, var(--sz, 28px) * .1) / -2) 0 0 calc(max(3px, var(--sz, 28px) * .1) / -2); border-radius: 50%; background: #FF1744; box-shadow: 0 0 3px 1px #FF1744; opacity: 0; animation: radBlanco 4s linear infinite; animation-delay: calc(var(--age, 0s) * -1 + var(--u, 0s) - 4s); }
@keyframes radBlanco { 0% { opacity: 1; } 16.667% { opacity: .85; } 71.667% { opacity: 0; } 100% { opacity: 0; } }
/* Optimus: sale del carrito y se mete de nuevo, sin parar (1,4 s quieto, 0,7 sube, 0,45 espera, 1,3 baja) */
.gen-recorte { position: absolute; left: 0; top: 0; width: 100%; height: 65.4%; overflow: hidden; }
.gen-recorte img { position: absolute; left: 0; top: 0; width: 100%; height: auto; animation: genio 3.85s linear infinite; }
.gen-carrito { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .ico * { animation: none !important; } .rad-blanco { opacity: .9; } }

/* ---------- Barra de pestañas flotante (vidrio) ---------- */
.os-tabs { position: absolute; z-index: 40; left: 10px; right: 10px; bottom: 26px; height: 58px; border-radius: 29px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 12px; background: rgba(245, 245, 247, .62); transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.os-tabs.hide { transform: translateY(110px); opacity: 0; }
.os-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 58px; margin: 2px -5px; border-radius: 27px; color: #2B2B2F; font-size: 10.5px; font-weight: 500; transition: background .3s, color .3s; }
.os-tabs button .ti { display: flex; align-items: center; gap: 3px; height: 28px; font-size: 11px; font-weight: 700; }
.os-tabs button.active { background: rgba(10, 132, 255, .88); color: #fff; }
.os-tabs button.active .esc-barrido { }
.os-tabs button svg.house { width: 26px; height: 26px; }
.os-tabs button .cnt { font-size: 11px; font-weight: 700; display: inline-block; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.os-tabs button .cnt.bump { transform: scale(1.5); }
.os-tabs .yo { color: inherit; }
.os-tabs .yo .gen { position: relative; width: 46px; height: 46px; }
.os-tabs button.press { background: rgba(10, 132, 255, .18); }
.os-tabs button.active.press { background: rgba(10, 132, 255, .95); }

/* ---------- Inicio ---------- */
.os-prod { position: absolute; top: 118px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; }
.os-prod b { font-size: 21px; font-weight: 700; }
.os-prod .ic { display: flex; gap: 14px; }
.os-prod .ic div { display: grid; justify-items: center; gap: 1px; font-size: 11px; font-weight: 600; color: #8e8e93; width: 56px; transition: color .3s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.os-prod .ic div.on { color: #007AFF; }
.os-prod .ic div.press { transform: scale(1.12); }
.os-prod .ic img, .os-prod .ic svg { width: 40px; height: 40px; object-fit: contain; }
.os-sub { position: absolute; top: 184px; left: 18px; right: 16px; margin: 0; font-size: 14.5px; font-weight: 600; color: #8e8e93; }
.os-search { position: absolute; top: 214px; left: 16px; right: 16px; display: flex; gap: 8px; }
.os-search .box { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 14px; background: #efeff1; color: #8e8e93; font-size: 15px; white-space: nowrap; overflow: hidden; }
.os-search .box svg { width: 18px; flex: none; stroke: #8e8e93; fill: none; stroke-width: 2.2; }
.os-search .box .q { color: #000; font-weight: 500; }
.os-search .lote { display: flex; align-items: center; gap: 6px; width: 112px; height: 44px; padding: 0 10px; border-radius: 14px; background: #FFC400; font-weight: 700; font-size: 13px; line-height: 1.1; transition: transform .2s; }
.os-search .lote svg { width: 22px; flex: none; fill: none; stroke: #000; stroke-width: 1.8; stroke-linejoin: round; }
.os-search .lote.press { transform: scale(.94); }
.os-gridwrap { position: absolute; left: 0; right: 0; top: 266px; bottom: 0; overflow: hidden; }
.os-grid { position: absolute; top: 4px; left: 16px; right: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; transition: transform 1s cubic-bezier(.4, 0, .2, 1); }
.pcard { position: relative; height: 168px; border-radius: 18px; background: #e5f4df; padding: 8px 6px 6px; display: grid; grid-template-rows: auto auto auto 1fr; justify-items: center; text-align: center; }
.pcard .inf { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; }
.pcard .ph { width: 70px; height: 70px; border-radius: 12px; background-color: #fff; }
.pcard .nm { margin-top: 5px; font-size: 11px; line-height: 1.15; height: 25px; overflow: hidden; }
.pcard .pr { font-size: 15px; font-weight: 700; margin-top: 2px; }
.pcard .bt { display: flex; gap: 6px; align-self: end; }
.pcard .bt i { width: 41px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-style: normal; color: #fff; font-weight: 700; font-size: 14px; transition: transform .25s cubic-bezier(.3, 1.8, .5, 1), background .3s; }
.pcard .bt i svg { width: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pcard .bt .ok { background: #FF8A00; } .pcard .bt .lt { background: #FFC400; } .pcard .bt .lt svg { stroke: #000; }
.pcard .bt .q { background: #22A04B; } .pcard .bt .ct { background: #0A6CF0; }
.pcard .bt i.press { transform: scale(1.25); }
.pcard .bt .q.bump { transform: scale(1.3); }

/* ---------- Escáner ---------- */
.os-seg { position: absolute; top: 62px; left: 16px; right: 16px; height: 38px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 12px; background: #efeff1; font-size: 14px; font-weight: 600; color: #8e8e93; text-align: center; }
.os-seg span { display: grid; place-items: center; border-radius: 9px; transition: background .3s, color .3s, box-shadow .3s; }
.os-seg span.on { background: #fff; color: #000; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.os-cam { position: absolute; top: 112px; left: 16px; right: 16px; height: 200px; border-radius: 22px; background: radial-gradient(70% 70% at 50% 40%, #2b3b52 0, #0b0f18 85%); overflow: hidden; }
.os-cam .shelf { position: absolute; left: 50%; top: 40px; width: 200px; height: 116px; margin-left: -100px; border-radius: 12px; background: #fff; transform: rotate(-3deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); overflow: hidden; }
.os-cam .bars { position: absolute; left: 16px; right: 16px; top: 14px; bottom: 30px; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 5px, #fff 5px 8px, #111 8px 11px, #fff 11px 12px, #111 12px 13px, #fff 13px 17px); }
.os-cam .num { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 600 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; color: #111; }
.os-cam .frame { position: absolute; left: 50%; top: 26px; width: 236px; height: 148px; margin-left: -118px; }
.os-cam .frame i { position: absolute; width: 28px; height: 28px; border: 3.5px solid #fff; transition: border-color .3s; }
.os-cam .frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.os-cam .frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.os-cam .frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.os-cam .frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.os-cam .frame.ok i { border-color: #30D158; }
.os-cam .frame .line { position: absolute; left: 8px; right: 8px; top: 8px; height: 2px; background: #ff3b4f; box-shadow: 0 0 14px 3px rgba(255, 59, 79, .8); animation: sweepCam 1.6s ease-in-out infinite alternate; }
.os-cam .frame.ok .line { animation: none; opacity: 0; }
@keyframes sweepCam { to { top: calc(100% - 10px); } }
.os-cam .hint { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.os-bar3 { position: absolute; top: 326px; left: 16px; right: 16px; height: 46px; display: grid; grid-template-columns: 1fr 56px 1fr; padding: 3px; border-radius: 14px; background: #efeff1; align-items: center; text-align: center; font-size: 15px; font-weight: 600; }
.os-bar3 .b { height: 100%; display: grid; place-items: center; border-radius: 11px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); transition: transform .2s; }
.os-bar3 .b.blue { color: #007AFF; } .os-bar3 .b.red { color: #FF3B30; }
.os-bar3 .b.press { transform: scale(.95); }
.os-bar3 .n { font-size: 20px; font-weight: 700; display: inline-block; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.os-bar3 .n.bump { transform: scale(1.4); }
.os-lote-t { position: absolute; top: 388px; left: 18px; margin: 0; font-size: 21px; font-weight: 700; }
.os-rows { position: absolute; top: 426px; left: 16px; right: 16px; display: grid; gap: 4px; }
.lrow { position: relative; display: grid; grid-template-columns: 56px 1fr 34px; gap: 12px; align-items: center; min-height: 64px; padding: 4px 4px 4px 4px; border-radius: 14px; transition: background .5s, transform .5s cubic-bezier(.2, .9, .2, 1), opacity .4s; }
.lrow .ph { width: 56px; height: 56px; border-radius: 12px; background-color: #f6f6f8; }
.lrow h4 { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.2; }
.lrow .p { color: #007AFF; font-weight: 700; font-size: 15.5px; }
.lrow .st { color: #FF9F0A; font-size: 13px; letter-spacing: 1px; }
.lrow .tr { width: 24px; height: 24px; fill: none; stroke: #007AFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lrow.nuevo { background: #e8f7ec; }
.lrow.entra { opacity: 0; transform: translateY(-14px); }
.os-ficha { position: absolute; z-index: 30; left: 16px; right: 16px; bottom: 100px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; border-radius: 22px; transform: translateY(160%); transition: transform .6s cubic-bezier(.2, .9, .2, 1); }
.os-ficha.open { transform: none; }
.os-ficha .ph { width: 64px; height: 64px; border-radius: 14px; background-color: #fff; }
.os-ficha h4 { margin: 2px 0 2px; font-size: 14.5px; line-height: 1.2; }
.os-ficha .p { color: #007AFF; font-weight: 700; font-size: 18px; }
.os-ficha .p s { color: #8e8e93; font-size: 12.5px; font-weight: 500; margin-right: 6px; }
.os-ficha .verde { grid-column: 1 / -1; padding: 8px 12px; border-radius: 12px; background: #22A04B; color: #fff; font-weight: 700; font-size: 13.5px; text-align: center; }

/* ---------- Carrito ---------- */
.os-cards { position: absolute; top: 180px; left: 16px; right: 16px; display: grid; gap: 10px; }
.ccard { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; min-height: 88px; padding: 10px 52px 10px 10px; border-radius: 16px; border: 1px solid #d1d1d6; background: #fff; transition: min-height .5s; }
.ccard .ph { width: 60px; height: 60px; border-radius: 12px; background-color: #f6f6f8; }
.ccard h4 { margin: 0; font-size: 13.5px; font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.ccard .sub { color: #8e8e93; font-size: 11.5px; margin-top: 2px; line-height: 1.2; }
.ccard .q { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: #22A04B; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.ccard .opt { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s, opacity .5s; }
.ccard.opt-on .opt { max-height: 60px; opacity: 1; }
.ccard.opt-on .sub { display: none; }
.ccard .opt .pr { display: flex; align-items: baseline; gap: 7px; margin-top: 3px; }
.ccard .opt s { color: #8e8e93; font-size: 12.5px; }
.ccard .opt b { color: #007AFF; font-size: 21px; letter-spacing: -.02em; }
.ccard .opt .inf { width: 20px; height: 20px; align-self: center; }
.ccard .opt .tienda { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: #8e8e93; }
.ccard .opt .tienda i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-style: normal; color: #fff; font-weight: 800; font-size: 10.5px; }
.ccard .opt .tienda span { color: #007AFF; }
.os-resumen { position: absolute; z-index: 20; top: 70px; right: 18px; padding: 6px 12px; border-radius: 99px; background: #22A04B; color: #fff; font-weight: 700; font-size: 12.5px; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .5s cubic-bezier(.2, .9, .2, 1); }
.os-resumen.on { opacity: 1; transform: none; }

/* ---------- Mapa (el RADAR) ---------- */
.os-map { position: absolute; inset: 0; }
.os-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); z-index: 3; }
.mk.casa { background: #fff; border-color: #0A6CF0; color: #0A6CF0; }
.mk.casa svg { width: 17px; fill: #0A6CF0; }
.glow { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; opacity: 0; transition: opacity .8s, transform .8s; transform: scale(.6); z-index: 2; pointer-events: none; }
.glow.g { background: radial-gradient(closest-side, rgba(57, 255, 20, .85), rgba(57, 255, 20, 0)); }
.glow.a { background: radial-gradient(closest-side, rgba(0, 180, 255, .85), rgba(0, 180, 255, 0)); }
.os-map.neon-g .glow.g, .os-map.neon-a .glow.a { opacity: 1; transform: scale(1); animation: neon 2.2s ease-in-out infinite; }
@keyframes neon { 50% { opacity: .55; transform: scale(1.12); } }
.fab { position: absolute; z-index: 10; right: 14px; display: grid; justify-items: center; gap: 3px; font-weight: 700; font-size: 13px; }
.fab i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .4s; }
.fab i svg { width: 28px; fill: #fff; }
.fab.g i { background: #39FF14; box-shadow: 0 0 22px 6px rgba(57, 255, 20, .55); }
.fab.a i { background: #00B4FF; box-shadow: 0 0 22px 6px rgba(0, 180, 255, .55); }
.fab i.press { transform: scale(.9); }
.fab.off i { box-shadow: none; filter: saturate(.55) brightness(1.05); }
.fab.inf i { width: 44px; height: 44px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.fab.inf i img { width: 26px; }
.os-sheet { position: absolute; z-index: 12; left: 8px; right: 8px; bottom: 96px; padding: 10px 18px 14px; border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: 0 -4px 24px rgba(0, 0, 0, .12); height: 70px; overflow: hidden; transition: height .7s cubic-bezier(.3, .8, .2, 1); }
.os-sheet.open { height: 330px; }
.os-sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #c7c7cc; margin: 0 auto 10px; }
.os-sheet h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #007AFF; }
.os-sheet .cl { display: grid; gap: 8px; }
.os-sheet .cl div { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.os-sheet .cl .lg { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 3px #fff; }
.os-sheet .cl small { display: block; font-size: 12px; font-weight: 500; color: #8e8e93; }
.os-sheet .cl .ring-g .lg { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #39FF14; }
.os-sheet .cl .ring-a .lg { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #00B4FF; }

/* ---------- Optimus (panel) ---------- */
.v-opt { z-index: 60; background: rgba(0, 0, 0, .28); }
.os-chat { position: absolute; left: 0; right: 0; bottom: 0; height: 560px; border-radius: 30px 30px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); transform: translateY(100%); transition: transform .65s cubic-bezier(.2, .9, .2, 1); display: flex; flex-direction: column; }
.v-opt.on .os-chat { transform: none; }
.os-chat .hd { display: flex; align-items: center; gap: 10px; padding: 18px 18px 10px; }
.os-chat .hd img { width: 44px; height: 44px; object-fit: contain; }
.os-chat .hd b { font-size: 21px; letter-spacing: -.02em; }
.os-chat .hd small { display: block; color: #8e8e93; font-size: 12px; font-weight: 500; }
.os-chat .hd .x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: #efeff1; display: grid; place-items: center; color: #8e8e93; font-weight: 700; }
.os-chat .msgs { flex: 1; padding: 8px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.3; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .4s, transform .5s cubic-bezier(.2, 1.2, .3, 1); }
.msg.on { opacity: 1; transform: none; }
.msg.yo { align-self: flex-end; background: #0A84FF; color: #fff; border-bottom-right-radius: 6px; }
.msg.op { align-self: flex-start; background: #efeff1; border-bottom-left-radius: 6px; }
.prop { align-self: flex-start; width: 86%; padding: 12px; border-radius: 18px; background: #f2f7ff; border: 1.5px solid #bcd6ff; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s cubic-bezier(.2, 1.2, .3, 1); }
.prop.on { opacity: 1; transform: none; }
.prop .l { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.prop .l .ph { width: 44px; height: 44px; border-radius: 10px; background-color: #fff; flex: none; }
.prop .l small { display: block; color: #8e8e93; font-weight: 500; font-size: 12px; }
.prop .bt { display: flex; gap: 8px; margin-top: 10px; }
.prop .bt span { flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; font-weight: 700; font-size: 14.5px; background: #fff; color: #555; box-shadow: inset 0 0 0 1px #d5d5da; transition: transform .2s; }
.prop .bt span.ok { background: #0A84FF; color: #fff; box-shadow: none; }
.prop .bt span.press { transform: scale(.93); }
.os-chat .inp { display: flex; align-items: center; gap: 10px; padding: 10px 14px 30px; }
.os-chat .inp .tx { flex: 1; height: 44px; border-radius: 22px; background: #efeff1; display: flex; align-items: center; padding: 0 16px; color: #8e8e93; font-size: 15px; overflow: hidden; white-space: nowrap; }
.os-chat .inp .tx .t { color: #000; }
.os-chat .inp .mic { width: 44px; height: 44px; border-radius: 50%; background: #0A84FF; display: grid; place-items: center; transition: transform .2s, box-shadow .3s; }
.os-chat .inp .mic svg { width: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.os-chat .inp .mic.on { box-shadow: 0 0 0 8px rgba(10, 132, 255, .25); transform: scale(1.1); }
.os-chat .inp .mic.press { transform: scale(.9); }

/* ---------- Lupa: los íconos del menú, en grande ---------- */
.dock figure .dk { display: grid; place-items: center; width: min(124px, 15vw); aspect-ratio: 1; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(235, 238, 247, .92)); box-shadow: 0 18px 24px rgba(0, 0, 0, .35), inset 0 1px 0 #fff; color: #2B2B2F; }
.dock figure .dk .ico { --sz: min(64px, 8vw); }
.dock figure .dk.act { background: linear-gradient(160deg, #3d9bff, #0a6cf0); color: #fff; }
.lens-in .dock figure .dk { box-shadow: 0 8px 12px rgba(0, 0, 0, .3), inset 0 1px 0 #fff; }

/* ---------- Mosaico ---------- */
.bento .tiles { grid-template-columns: repeat(6, 1fr); }
.tile.t-c .pbox2 { margin: auto 0 20px; display: grid; gap: 10px; }
.pep { margin-top: auto; padding: 18px 0 26px; display: grid; gap: 10px; }
.pep .row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--soft); font-weight: 650; font-size: 15.5px; }
.pep .row b { margin-left: auto; font-size: 19px; color: var(--blue); }
.pep .row.win { background: linear-gradient(95deg, #e8efff, #ffe3fa); box-shadow: inset 0 0 0 2px #ff00da55; }
.pep .row.win b { color: #d100b0; }
.pep .row s { color: var(--muted); font-weight: 500; margin-left: auto; font-size: 14px; }
.priv { margin: auto 0 20px; display: grid; place-items: center; gap: 14px; text-align: center; padding-top: 10px; }
.priv .chip2 { display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 99px; background: var(--soft); font-weight: 650; font-size: 15px; }
.priv .chip2 i { width: 12px; height: 12px; border-radius: 50%; background: #30D158; box-shadow: 0 0 0 4px #30d15833; }

@keyframes genio { 0.00% { transform: translateY(0.00%); opacity: 1.000; } 1.04% { transform: translateY(0.00%); opacity: 1.000; } 2.08% { transform: translateY(0.00%); opacity: 1.000; } 3.12% { transform: translateY(0.00%); opacity: 1.000; } 4.17% { transform: translateY(0.00%); opacity: 1.000; } 5.21% { transform: translateY(0.00%); opacity: 1.000; } 6.25% { transform: translateY(0.00%); opacity: 1.000; } 7.29% { transform: translateY(0.00%); opacity: 1.000; } 8.33% { transform: translateY(0.00%); opacity: 1.000; } 9.38% { transform: translateY(0.00%); opacity: 1.000; } 10.42% { transform: translateY(0.00%); opacity: 1.000; } 11.46% { transform: translateY(0.00%); opacity: 1.000; } 12.50% { transform: translateY(0.00%); opacity: 1.000; } 13.54% { transform: translateY(0.00%); opacity: 1.000; } 14.58% { transform: translateY(0.00%); opacity: 1.000; } 15.62% { transform: translateY(0.00%); opacity: 1.000; } 16.67% { transform: translateY(0.00%); opacity: 1.000; } 17.71% { transform: translateY(0.00%); opacity: 1.000; } 18.75% { transform: translateY(0.00%); opacity: 1.000; } 19.79% { transform: translateY(0.00%); opacity: 1.000; } 20.83% { transform: translateY(0.00%); opacity: 1.000; } 21.88% { transform: translateY(0.00%); opacity: 1.000; } 22.92% { transform: translateY(0.00%); opacity: 1.000; } 23.96% { transform: translateY(0.00%); opacity: 1.000; } 25.00% { transform: translateY(0.00%); opacity: 1.000; } 26.04% { transform: translateY(0.00%); opacity: 1.000; } 27.08% { transform: translateY(0.00%); opacity: 1.000; } 28.12% { transform: translateY(0.00%); opacity: 1.000; } 29.17% { transform: translateY(0.00%); opacity: 1.000; } 30.21% { transform: translateY(0.00%); opacity: 1.000; } 31.25% { transform: translateY(0.00%); opacity: 1.000; } 32.29% { transform: translateY(0.00%); opacity: 1.000; } 33.33% { transform: translateY(0.00%); opacity: 1.000; } 34.38% { transform: translateY(0.00%); opacity: 1.000; } 35.42% { transform: translateY(0.00%); opacity: 1.000; } 36.46% { transform: translateY(0.00%); opacity: 1.000; } 37.50% { transform: translateY(0.06%); opacity: 0.994; } 38.54% { transform: translateY(0.40%); opacity: 0.961; } 39.58% { transform: translateY(1.30%); opacity: 0.873; } 40.62% { transform: translateY(3.02%); opacity: 0.706; } 41.67% { transform: translateY(5.81%); opacity: 0.433; } 42.71% { transform: translateY(9.96%); opacity: 0.196; } 43.75% { transform: translateY(15.71%); opacity: 0.184; } 44.79% { transform: translateY(23.34%); opacity: 0.168; } 45.83% { transform: translateY(32.81%); opacity: 0.148; } 46.88% { transform: translateY(40.99%); opacity: 0.111; } 47.92% { transform: translateY(47.23%); opacity: 0.071; } 48.96% { transform: translateY(51.79%); opacity: 0.043; } 50.00% { transform: translateY(54.93%); opacity: 0.023; } 51.04% { transform: translateY(56.91%); opacity: 0.011; } 52.08% { transform: translateY(58.01%); opacity: 0.004; } 53.12% { transform: translateY(58.48%); opacity: 0.001; } 54.17% { transform: translateY(58.59%); opacity: 0.000; } 55.21% { transform: translateY(58.59%); opacity: 0.000; } 56.25% { transform: translateY(58.59%); opacity: 0.000; } 57.29% { transform: translateY(58.59%); opacity: 0.000; } 58.33% { transform: translateY(58.59%); opacity: 0.000; } 59.38% { transform: translateY(58.59%); opacity: 0.000; } 60.42% { transform: translateY(58.59%); opacity: 0.000; } 61.46% { transform: translateY(58.59%); opacity: 0.000; } 62.50% { transform: translateY(58.59%); opacity: 0.000; } 63.54% { transform: translateY(58.59%); opacity: 0.000; } 64.58% { transform: translateY(58.59%); opacity: 0.000; } 65.62% { transform: translateY(58.59%); opacity: 0.000; } 66.67% { transform: translateY(58.57%); opacity: 0.000; } 67.71% { transform: translateY(58.31%); opacity: 0.002; } 68.75% { transform: translateY(57.79%); opacity: 0.005; } 69.79% { transform: translateY(57.00%); opacity: 0.010; } 70.83% { transform: translateY(55.95%); opacity: 0.017; } 71.88% { transform: translateY(54.65%); opacity: 0.025; } 72.92% { transform: translateY(53.11%); opacity: 0.034; } 73.96% { transform: translateY(51.34%); opacity: 0.046; } 75.00% { transform: translateY(49.37%); opacity: 0.058; } 76.04% { transform: translateY(47.22%); opacity: 0.072; } 77.08% { transform: translateY(44.89%); opacity: 0.086; } 78.12% { transform: translateY(42.42%); opacity: 0.102; } 79.17% { transform: translateY(39.82%); opacity: 0.118; } 80.21% { transform: translateY(37.13%); opacity: 0.135; } 81.25% { transform: translateY(34.36%); opacity: 0.144; } 82.29% { transform: translateY(31.54%); opacity: 0.150; } 83.33% { transform: translateY(28.71%); opacity: 0.156; } 84.38% { transform: translateY(25.87%); opacity: 0.162; } 85.42% { transform: translateY(23.07%); opacity: 0.168; } 86.46% { transform: translateY(20.33%); opacity: 0.174; } 87.50% { transform: translateY(17.68%); opacity: 0.180; } 88.54% { transform: translateY(15.13%); opacity: 0.185; } 89.58% { transform: translateY(12.71%); opacity: 0.190; } 90.62% { transform: translateY(10.46%); opacity: 0.195; } 91.67% { transform: translateY(8.37%); opacity: 0.200; } 92.71% { transform: translateY(6.49%); opacity: 0.367; } 93.75% { transform: translateY(4.81%); opacity: 0.530; } 94.79% { transform: translateY(3.37%); opacity: 0.671; } 95.83% { transform: translateY(2.17%); opacity: 0.788; } 96.88% { transform: translateY(1.23%); opacity: 0.880; } 97.92% { transform: translateY(0.55%); opacity: 0.946; } 98.96% { transform: translateY(0.14%); opacity: 0.987; } 100.00% { transform: translateY(0.00%); opacity: 1.000; } }

/* ajustes de la lupa y del mosaico */
.dock .ico img, .lens-in .dock .ico img { width: 100%; height: 100%; aspect-ratio: auto; filter: none; max-width: none; }
.dock .ico .gen-recorte img { height: auto; }
.dock figure .dk { color: #2B2B2F; }
.tile { min-height: 470px; }
.tile.t-a, .tile.t-b { grid-column: span 3; }
.tile .flow { margin: auto 0 34px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding-top: 24px; }
.tile .flow .step1, .tile .flow .step2 { padding: 16px 22px; border-radius: 20px; font-weight: 650; font-size: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.tile .flow .step2 { background: linear-gradient(95deg, #1f59ff, #ff00da); border: 0; color: #fff; }
.tile .flow .arrow { font-size: 26px; color: #a1a1a6; }
.pep { margin-top: auto; padding: 20px 0 30px; }
.pep .row { background: rgba(255, 255, 255, .08); color: #f5f5f7; }
.pep .row b { color: #fff; }
.pep .row s { color: #a1a1a6; }
.pep .row.win { background: linear-gradient(95deg, rgba(31, 89, 255, .55), rgba(255, 0, 218, .5)); box-shadow: none; }
.pep .row.win b { color: #fff; }
.os-tabs button.yo { background: none !important; }

.tile .mon { margin: auto 0 22px; display: grid; gap: 10px; padding-top: 22px; }
.tile .mon .row { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-radius: 16px; background: var(--soft); font-weight: 650; font-size: 15.5px; }
.tile .mon .row b { font-size: 19px; letter-spacing: -.02em; }
.tile .mon small { color: var(--muted); font-size: 13px; }
.tile .grp { margin: auto 0 40px; display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 20px; }
.tile .grp .av { display: flex; }
.tile .grp .av i { width: 52px; height: 52px; margin-left: -10px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 20px/1 var(--font); font-style: normal; box-shadow: 0 0 0 4px var(--navy); }
.tile .grp .av i:first-child { margin-left: 0; }
.tile .grp .x32 { font-size: 40px; font-weight: 750; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 10px; }
.tile .grp .x32 b { font-size: 24px; padding: 4px 12px; border-radius: 99px; background: linear-gradient(95deg, #1f59ff, #ff00da); }

/* ---------- Moneda de presentación ---------- */
.os-cur { position: absolute; z-index: 3; top: 178px; right: 16px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: #efeff1; color: #007AFF; font-size: 12.5px; font-weight: 700; transition: transform .2s, background .3s; }
.os-cur svg { width: 8px; height: 5px; }
.os-cur.press { transform: scale(.92); background: #dfe9ff; }
.os-sub { right: 90px; }

/* ---------- Mapa: un comercio de OptimiMarket, con su logo ---------- */
.mk.om { width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; background: #fff; border: 2.5px solid #ff00da; box-shadow: 0 0 0 3px rgba(255, 0, 218, .25), 0 4px 10px rgba(0, 0, 0, .3); z-index: 4; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.mk.om img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mk.om.press { transform: scale(1.18); }
.mk-label { position: absolute; z-index: 4; transform: translateX(-50%); padding: 2px 8px; border-radius: 99px; background: #fff; color: #1d1d1f; font: 800 10.5px/1.3 var(--font); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); white-space: nowrap; }
.glow.om { background: radial-gradient(closest-side, rgba(255, 0, 218, .5), rgba(255, 0, 218, 0)); opacity: 1; transform: none; animation: neon 2.6s ease-in-out infinite; z-index: 2; width: 110px; height: 110px; margin: -55px 0 0 -55px; }
.om-card { position: absolute; z-index: 13; left: 14px; right: 14px; bottom: 182px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: translateY(30px) scale(.96); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.2, 1.2, .3, 1), opacity .35s; }
.om-card.on { transform: none; opacity: 1; }
.om-card img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.om-card b { display: block; font-size: 15px; } .om-card small { color: #8e8e93; font-size: 12px; }
.om-card span { margin-left: auto; color: #007AFF; font-weight: 700; font-size: 13px; white-space: nowrap; }
.os-sheet.open { height: 392px; }
.os-sheet .cl .omrow .lg { background: #fff; padding: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ff00da; overflow: hidden; }
.os-sheet .cl .omrow .lg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- «Qué aportó cada comercio» (aparece al optimizar) ---------- */
.os-aporte { position: absolute; z-index: 70; inset: 0; background: rgba(0, 0, 0, 0); pointer-events: none; transition: background .5s; }
.os-aporte.open { background: rgba(0, 0, 0, .38); }
.os-aporte .sh { position: absolute; left: 0; right: 0; bottom: 0; height: 690px; padding: 14px 20px 26px; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); transform: translateY(104%); transition: transform .7s cubic-bezier(.2, .9, .2, 1); display: flex; flex-direction: column; }
.os-aporte.open .sh { transform: none; }
.os-aporte .grabber { width: 40px; height: 5px; border-radius: 3px; background: #d1d1d6; margin: 0 auto 14px; }
.os-aporte h2 { margin: 0 0 14px; font-size: 25px; letter-spacing: -.025em; }
.os-aporte .rep { display: flex; align-items: center; gap: 10px; color: #6b6b70; font-size: 16px; }
.os-aporte .rep .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 17px; font-weight: 600; box-shadow: inset 0 0 0 1.5px #c7c7cc; color: #3a3a3c; transition: background .3s, color .3s, transform .2s, box-shadow .3s; }
.os-aporte .rep .n.on { background: #0A84FF; color: #fff; box-shadow: none; }
.os-aporte .rep .n.press { transform: scale(.9); }
.os-aporte .tot { display: flex; justify-content: space-between; margin: 20px 0 10px; }
.os-aporte .tot small { display: block; color: #6b6b70; font-size: 15px; }
.os-aporte .tot b { display: block; font-size: 33px; letter-spacing: -.03em; line-height: 1.15; }
.os-aporte .tot b.g { color: #30C85A; }
.os-aporte .tot em { font-style: normal; color: #6b6b70; font-size: 14.5px; }
.os-aporte .tot .r { text-align: right; }
.os-aporte .lst { flex: 1; overflow: hidden; display: grid; gap: 10px; align-content: start; }
.apc { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px 10px 12px 8px; border-radius: 14px; }
.apc.gold { background: #fff6d8; }
.apc .l { text-align: center; color: #8e8e93; font-weight: 700; font-size: 19px; }
.apc .l svg { width: 30px; }
.apc .m b { display: block; font-size: 17px; letter-spacing: -.01em; }
.apc .m em { display: block; font-style: normal; font-weight: 800; color: #8a6a00; font-size: 14.5px; letter-spacing: .02em; }
.apc .bar { height: 7px; border-radius: 4px; background: #e5e5ea; margin: 6px 0 8px; overflow: hidden; }
.apc .bar i { display: block; height: 100%; background: #30C85A; border-radius: 4px; transition: width .6s; }
.apc .m strong { display: block; font-size: 15.5px; line-height: 1.25; }
.apc .m span { display: block; color: #6b6b70; font-size: 13px; line-height: 1.3; margin-top: 3px; }
.apc .m u { display: block; text-decoration: none; color: #1f9b45; font-weight: 700; font-size: 13px; line-height: 1.3; margin-top: 5px; }
.apc .r { text-align: right; align-self: center; }
.apc .r small { display: block; color: #6b6b70; font-size: 12px; }
.apc .r b { display: block; font-size: 19px; letter-spacing: -.02em; }
.apc .r s { display: block; text-decoration: none; color: #FF3B30; font-weight: 700; font-size: 14px; }
.os-aporte .cerrar { text-align: center; color: #0A84FF; font-size: 22px; font-weight: 500; padding-top: 12px; transition: transform .2s; }
.os-aporte .cerrar.press { transform: scale(.94); }

/* ---------- OptimiGroup ---------- */
.v-group { z-index: 56; }
.gp { position: absolute; inset: 0; padding: 64px 18px 110px; }
.gp-back { color: #007AFF; font-size: 16px; margin-bottom: 8px; }
.gp-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gp-t h2 { margin: 0; font-size: 27px; letter-spacing: -.025em; }
.gp-st { padding: 5px 11px; border-radius: 99px; background: #e6f4e0; color: #1f9b45; font-weight: 700; font-size: 12.5px; white-space: nowrap; transition: background .4s, color .4s; }
.gp-st.cerrado { background: #efeff1; color: #6b6b70; }
.gp h5 { margin: 14px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8e8e93; }
.gp-soc { display: grid; gap: 6px; }
.gp-soc > div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #f6f6f8; font-weight: 600; font-size: 15px; }
.gp-soc i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 14px/1 var(--font); font-style: normal; }
.gp-soc em { margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #ffe3f8; color: #b3008f; }
.gp-soc b { margin-left: auto; font-size: 13px; font-weight: 700; color: #8e8e93; transition: color .3s; }
.gp-soc b.ok { color: #1f9b45; }
.gp-items { display: grid; gap: 6px; }
.gi { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #e5e5ea; font-weight: 600; font-size: 14px; }
.gi .ph { width: 44px; height: 44px; border-radius: 10px; background-color: #f6f6f8; flex: none; }
.gi .qs { margin-left: auto; display: flex; gap: 5px; }
.gi .qs i { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px 3px 4px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; }
.gi .qs i b { font-size: 12px; }
.gi .qs .mA { background: #0A6CF0; } .gi .qs .mB { background: #22A04B; } .gi .qs .mC { background: #ff00da; }
.gi .qs .mas { background: linear-gradient(95deg, #1f59ff, #ff00da); padding: 3px 10px; opacity: 0; transform: scale(.4); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.gi .qs .mas.on { opacity: 1; transform: none; }
.gp-escala { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #eaf0ff, #ffe8fa); display: grid; gap: 3px; max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; transition: max-height .6s, opacity .5s, padding .5s; }
.gp-escala.on { max-height: 130px; opacity: 1; padding-top: 12px; padding-bottom: 12px; }
.gp-escala b { font-size: 14px; color: #8a0070; } .gp-escala span { font-size: 14px; font-weight: 600; } .gp-escala small { font-size: 12.5px; color: #6b6b70; }
.gp-ahorro { margin-top: 10px; align-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 99px; background: #1f9b45; color: #fff; font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s; }
.gp-ahorro.on { opacity: 1; transform: none; }
.gp-ahorro b { font-size: 17px; }
.gp-btn { position: absolute; left: 18px; right: 18px; bottom: 100px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #3b8bff, #0a46d6); color: #fff; font-weight: 800; font-size: 16px; transition: transform .2s, background .4s; }
.gp-btn.press { transform: scale(.96); }
.gp-btn.off { background: #d9d9de; color: #6b6b70; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .6s .5s, transform .6s .5s; }

/* ---------- Preferidos (se llega pidiéndoselo a Optimus) ---------- */
.os-favs { position: absolute; z-index: 2; left: 16px; right: 16px; top: 272px; display: none; gap: 2px; }
.v-home.fav .os-favs { display: grid; animation: favsIn .6s cubic-bezier(.2, .9, .2, 1); }
.v-home.fav .os-gridwrap { display: none; }
@keyframes favsIn { from { opacity: 0; transform: translateY(16px); } }

.chap p { max-width: 480px; }

/* Ruedas del carrito del menú: el svg (inline) quedaba más abajo que su caja y la rueda, al girar, describía un círculo invisible.
   Con display:block el dibujo coincide con la caja y gira exactamente sobre su centro. */
.car-rueda svg { display: block; width: 100%; height: 100%; }

/* ---------- Mosaico: los nombres de las funciones, con la tipografía y el degradé de los títulos ---------- */
.tile .k { margin: 0 0 8px; font-size: clamp(38px, 4.6vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -.045em; text-transform: none; color: transparent; background: linear-gradient(95deg, #1f59ff 0%, #6a4dff 38%, #b21fe8 70%, #ff00da 100%); -webkit-background-clip: text; background-clip: text; display: inline-block; align-self: flex-start; padding-bottom: 4px; }
.tile .k b { font-weight: 800; }
.tile .k small { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; letter-spacing: 0; -webkit-text-fill-color: var(--muted); color: var(--muted); }
.tile.navy .k small { -webkit-text-fill-color: #a1a1a6; color: #a1a1a6; }
.tile h3 { margin-top: 2px; }

/* Monedas */
.coins { margin: auto 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 22px; }
.coin { display: grid; justify-items: center; gap: 4px; text-align: center; }
.coin svg { width: min(86px, 100%); height: auto; filter: drop-shadow(0 10px 12px rgba(20, 40, 90, .28)); animation: coinFlip 5.6s ease-in-out infinite; }
.coin:nth-child(2) svg { animation-delay: -1.4s; } .coin:nth-child(3) svg { animation-delay: -2.8s; } .coin:nth-child(4) svg { animation-delay: -4.2s; }
@keyframes coinFlip { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
.coin b { font-size: 17px; letter-spacing: .02em; }
.coin span { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.coin-note { display: block; margin: 0 0 22px; text-align: center; color: var(--muted); font-size: 13px; }

/* Ilustraciones: amigos en la mesa y carrito con mercadería */
.art { margin: auto 0 22px; padding-top: 18px; }
.artbox { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.artbox svg { display: block; width: 100%; height: auto; }
.art-item { position: absolute; top: 58%; transform: translateX(-50%); background-image: url(img/category-icons-generic.png); background-size: 500% 200%; background-repeat: no-repeat; filter: drop-shadow(0 6px 6px rgba(80, 50, 10, .3)); animation: itemBob 3.4s ease-in-out infinite; }
.art-item:nth-of-type(2n) { animation-delay: -1.3s; }
.art-cabeza { animation: cabeza 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
@keyframes cabeza { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(2deg); } }
.art-globo { opacity: 0; animation: globo 3.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes globo { 0%, 8% { opacity: 0; } 14%, 40% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* ¡Con transform y no con margin! Animar el margen cambia el alto de la caja en cada cuadro y hace temblar todas las cajas de abajo. */
@keyframes itemBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.artbox.cart { max-width: 380px; aspect-ratio: 380 / 250; }
.artbox.cart svg { position: absolute; inset: 0; }
.artbox.cart .cart-it { transform: none; animation: itemJump 2.8s ease-in-out infinite; }
.artbox.cart .cart-it:nth-of-type(2) { animation-delay: -.5s; } .artbox.cart .cart-it:nth-of-type(3) { animation-delay: -1.1s; } .artbox.cart .cart-it:nth-of-type(4) { animation-delay: -1.7s; }
@keyframes itemJump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tile .art + .flow { margin-top: -6px; }

/* Privacidad: la imagen */
.priv { margin: auto 0 20px; display: grid; place-items: center; gap: 12px; padding-top: 6px; }
.priv-img { width: min(230px, 62%); height: auto; filter: drop-shadow(0 18px 18px rgba(150, 90, 0, .25)); animation: itemBob 4s ease-in-out infinite; }
.tile.navy .k, .tile.navy p.k { color: transparent; }

/* OptimiGroup: la foto de los amigos en la mesa */
.art.foto { margin: auto 0 4px; padding-top: 18px; }
.art.foto img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 36px rgba(0, 0, 0, .4); }

/* ---------- Optimus: caja ancha del mosaico ---------- */
.tile.t-wide { grid-column: span 6; flex-direction: row; align-items: center; gap: 44px; padding: 44px 52px; min-height: 440px; overflow: hidden; }
.tile.t-wide .opt-l { flex: 1; min-width: 0; }
.tile.t-wide .opt-l p:not(.k) { max-width: 560px; }
.cmds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; max-width: 640px; }
.cmds span { padding: 11px 17px; border-radius: 99px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); color: #f5f5f7; font-weight: 600; font-size: 15.5px; line-height: 1.25; animation: cmdLuz 10s ease-in-out infinite; animation-delay: calc(var(--n) * 2s - 10s); }
.cmds span:not(.mas)::before { content: "“"; color: #ff7ae8; margin-right: 2px; font-weight: 800; }
.cmds span:not(.mas)::after { content: "”"; color: #ff7ae8; margin-left: 2px; font-weight: 800; }
.cmds span.mas { color: #a1a1a6; border-style: dashed; }
@keyframes cmdLuz { 0%, 22%, 100% { border-color: rgba(255, 255, 255, .18); box-shadow: none; } 4%, 16% { border-color: #ff00da; box-shadow: 0 0 0 3px rgba(255, 0, 218, .22), 0 0 24px rgba(255, 0, 218, .35); } }
.tile.t-wide .opt-r { position: relative; flex: 0 0 340px; display: grid; place-items: center; }
.tile.t-wide .opt-r::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 0, 218, .38), rgba(31, 89, 255, .26) 60%, transparent); filter: blur(10px); }
.tile.t-wide .opt-r .ico { z-index: 1; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .45)); }
@media (max-width: 900px) { .tile.t-wide { flex-direction: column; align-items: flex-start; padding: 32px 26px; } .tile.t-wide .opt-r { flex-basis: auto; align-self: center; } .tile.t-wide .opt-r .ico { --sz: 240px !important; } }

/* Portada: los tres teléfonos se ven COMPLETOS (antes la parte de abajo quedaba cortada, al estilo de apple.com) */
.hero-stage { height: auto; overflow: visible; padding-bottom: 70px; }
.hero-stage .side, .hero-stage .main { transform: none; }
