/* 004 · La película — kit compartido por las tres variantes.
   El celular mide 393 × 852 puntos (como un iPhone) y se escala entero con
   --k: adentro todo se mide en puntos, así las coreografías no dependen del
   tamaño de la pantalla. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ivory); color: var(--obsidiana); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ── La sección (clara, como pide el ritmo alternado) ─────────────────── */
.seccion { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px) clamp(56px, 7vw, 96px); }
.cabeza { max-width: 1280px; margin: 0 auto clamp(28px, 3.6vw, 44px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px 64px; align-items: end; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-600); }
.cabeza h2 { margin-top: 14px; font-size: var(--statement); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.cabeza p { font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.55; color: #36415A; text-wrap: pretty; }
.pie-pelicula { max-width: 1280px; margin: 18px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.nota { font-size: 13px; line-height: 1.5; color: #5E6883; }

/* ── El cuadro de la película ─────────────────────────────────────────── */
.pelicula { position: relative; max-width: 1280px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #020409; color: var(--ivory); isolation: isolate; box-shadow: 0 50px 100px -50px rgba(11,18,32,.6), 0 0 0 1px rgba(11,18,32,.1); user-select: none; -webkit-user-select: none; outline: none; cursor: pointer; }
.pelicula:focus-visible { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--copper); }
.escena { position: absolute; inset: 0; overflow: hidden; perspective: 1900px; perspective-origin: 50% 42%; }
.camara { position: absolute; inset: 0; transform-style: preserve-3d; }

/* Luz, piedra, viñeta y grano: la escenografía. */
.piedra { position: absolute; left: -30%; right: -30%; top: 52%; height: 120%; background: var(--marmol) center / 62% auto repeat, #05070b; transform: rotateX(74deg); transform-origin: 50% 0; opacity: .9; }
.piedra::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #020409 0%, rgba(2,4,9,.35) 18%, rgba(2,4,9,.2) 40%, #020409 85%); }
.luz { position: absolute; inset: -25%; pointer-events: none; background: radial-gradient(30% 34% at var(--lx, 62%) var(--ly, 50%), rgba(227,138,50,.5), rgba(201,106,27,.14) 45%, transparent 72%); mix-blend-mode: screen; opacity: 0; }
.luz.fria { background: radial-gradient(30% 34% at var(--lx, 62%) var(--ly, 50%), rgba(48,109,163,.4), rgba(11,45,77,.14) 45%, transparent 72%); }
.vineta { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 95% at 50% 42%, transparent 52%, rgba(0,0,0,.6)); z-index: 6; }
.grano { position: absolute; inset: -50%; pointer-events: none; z-index: 7; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── El celular ───────────────────────────────────────────────────────── */
.cel { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 417px; height: 876px; margin: -438px 0 0 -208.5px; transform-style: preserve-3d; will-change: transform; }
.cel-cuerpo { width: 417px; height: 876px; transform: scale(var(--k, .6)); transform-origin: 50% 50%; transform-style: preserve-3d; }
.cel-marco { position: relative; width: 417px; height: 876px; padding: 12px; border-radius: 66px; background: linear-gradient(145deg, #2E3A4E 0%, #111827 22%, #070B12 55%, #1A2332 100%); box-shadow: inset 0 0 0 1.5px rgba(247,243,234,.2), inset 0 0 0 6px #04070C, 0 90px 120px -60px rgba(0,0,0,.95), 0 40px 70px -40px rgba(0,0,0,.8); }
.cel-marco::before { content: ""; position: absolute; left: -3px; top: 180px; width: 4px; height: 64px; border-radius: 3px 0 0 3px; background: #1E2837; box-shadow: 0 90px 0 #1E2837, 0 -64px 0 -8px #1E2837; }
.cel-marco::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, transparent 38%, rgba(245,168,90,.55) 48%, transparent 58%); mix-blend-mode: screen; opacity: var(--brillo, 0); }
.cel-isla { position: absolute; z-index: 20; top: 24px; left: 50%; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; }
.cel-pantalla { position: relative; width: 393px; height: 852px; border-radius: 54px; overflow: hidden; background: #000; isolation: isolate; }
.cel-pantalla::after { content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.07), transparent 38%); }
.capa { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.capa.negro { background: #000; visibility: visible; z-index: 25; }

/* Barra de estado y barra de inicio (van dentro de cada capa). */
.estado { position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 16px 32px 0 48px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; color: var(--c, #fff); }
.estado .iconos { display: flex; gap: 6px; align-items: center; }
.estado svg { height: 12px; width: auto; fill: currentColor; }
.inicio { position: absolute; z-index: 10; bottom: 8px; left: 50%; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: var(--c, #fff); opacity: .9; }

/* El dedo: un círculo que toca. */
.dedo { position: absolute; z-index: 28; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,.28) 60%, rgba(255,255,255,.12)); box-shadow: 0 0 0 1.5px rgba(255,255,255,.7), 0 6px 18px rgba(0,0,0,.25); opacity: 0; pointer-events: none; }
.dedo.oscuro { background: radial-gradient(circle, rgba(11,18,32,.35), rgba(11,18,32,.18) 60%, rgba(11,18,32,.06)); box-shadow: 0 0 0 1.5px rgba(11,18,32,.45), 0 6px 18px rgba(0,0,0,.18); }

/* ── Pantalla bloqueada ───────────────────────────────────────────────── */
.bloqueo { background: radial-gradient(85% 50% at 78% 18%, rgba(201,106,27,.62), transparent 62%), radial-gradient(90% 55% at 12% 88%, rgba(48,109,163,.4), transparent 62%), linear-gradient(180deg, #0E1726 0%, #04070C 100%); color: #fff; }
.bloqueo::before { content: ""; position: absolute; inset: 0; background: var(--marmol) 30% 50% / 260% auto; opacity: .22; mix-blend-mode: screen; }
.bloqueo .candado { position: absolute; top: 64px; left: 50%; margin-left: -9px; width: 18px; }
.bloqueo .fecha { position: absolute; top: 100px; width: 100%; text-align: center; font-size: 20px; font-weight: 500; color: rgba(255,255,255,.88); }
.bloqueo .hora { position: absolute; top: 122px; width: 100%; text-align: center; font-size: 108px; font-weight: 600; letter-spacing: -.045em; line-height: 1; color: rgba(255,255,255,.96); font-variant-numeric: tabular-nums; }
.bloqueo .botones { position: absolute; bottom: 44px; left: 46px; right: 46px; display: flex; justify-content: space-between; }
.bloqueo .botones span { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.bloqueo .botones svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; }
.notis { position: absolute; left: 12px; right: 12px; top: 300px; height: 440px; }

/* Una notificación de la app de Cero. */
.noti { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 40px 1fr auto; gap: 1px 11px; align-items: center; padding: 13px 15px 14px 13px; border-radius: 26px; background: rgba(46, 52, 64, .78); color: #fff; box-shadow: 0 14px 34px -16px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06); opacity: 0; }
.noti.clara { background: rgba(250, 248, 243, .94); color: var(--obsidiana); box-shadow: 0 18px 44px -18px rgba(0,0,0,.55), inset 0 0 0 1px rgba(11,18,32,.06); }
.noti .app { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--obsidiana); color: var(--ivory); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); align-self: start; }
.noti .app svg { width: 27px; height: 27px; }
.noti b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.noti time { font-size: 13px; color: rgba(255,255,255,.58); align-self: start; padding-top: 1px; }
.noti.clara time { color: #5E6883; }
.noti p { grid-column: 2 / 4; font-size: 15px; line-height: 1.32; color: rgba(255,255,255,.9); }
.noti.clara p { color: #36415A; }

/* ── Chat (así le llega el link al cliente) ───────────────────────────── */
.chat { background: #EDE6DC; color: var(--obsidiana); --c: var(--obsidiana); }
.chat::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(11,18,32,.06) 1.2px, transparent 1.3px); background-size: 18px 18px; }
.chat .cab { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 112px; padding: 56px 16px 0 10px; display: flex; align-items: center; gap: 10px; background: rgba(247,243,234,.97); border-bottom: 1px solid #DED7C8; }
.chat .cab > svg { flex: none; width: 24px; height: 24px; color: #0F6A45; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--obsidiana); color: var(--ivory); display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.chat .cab div { display: grid; gap: 1px; }
.chat .cab b { font-size: 16.5px; font-weight: 600; }
.chat .cab small { font-size: 13px; color: #5E6883; }
.chat .mensajes { position: absolute; z-index: 2; top: 112px; left: 0; right: 0; bottom: 92px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.burbuja { position: relative; max-width: 82%; padding: 8px 12px 6px; border-radius: 18px; border-top-left-radius: 6px; background: #fff; font-size: 16px; line-height: 1.36; box-shadow: 0 1px 1.5px rgba(11,18,32,.12); }
.burbuja.mia { align-self: flex-end; border-radius: 18px; border-top-right-radius: 6px; background: #DCF3D0; }
.burbuja time { display: block; margin-top: 2px; text-align: right; font-size: 11.5px; color: #6B7488; font-variant-numeric: tabular-nums; }
.previa { display: grid; margin: -3px -7px 7px; border-radius: 12px; overflow: hidden; background: #F3EFE7; }
.previa .imagen { position: relative; height: 132px; display: grid; place-items: center; background: var(--marmol) 60% 40% / 300% auto, var(--obsidiana); color: var(--ivory); }
.previa .imagen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,.25), rgba(11,18,32,.65)); }
.previa .imagen span { position: relative; z-index: 1; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.previa b { padding: 9px 11px 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.previa small { padding: 2px 11px 10px; font-size: 12.5px; color: #5E6883; }
.previa u { text-decoration: none; color: #0F6A45; }
.chat .escribir { position: absolute; z-index: 5; bottom: 0; left: 0; right: 0; height: 92px; padding: 10px 12px 36px; display: flex; align-items: center; gap: 10px; background: rgba(247,243,234,.97); border-top: 1px solid #DED7C8; }
.chat .escribir span { flex: 1; height: 38px; border-radius: 20px; background: #fff; border: 1px solid #DED7C8; padding: 0 14px; display: flex; align-items: center; font-size: 15px; color: #8C93A6; }
.chat .escribir i { width: 38px; height: 38px; border-radius: 50%; background: #0F6A45; }

.burbuja .doc { display: flex; align-items: center; gap: 11px; margin: -1px -5px 5px; padding: 10px 12px 10px 10px; border-radius: 12px; background: #F3EFE7; }
.burbuja .doc i { flex: none; display: grid; place-items: center; width: 38px; height: 46px; border-radius: 5px; background: #B3261E; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.burbuja .doc span { display: grid; gap: 2px; }
.burbuja .doc b { font-size: 14.5px; font-weight: 600; }
.burbuja .doc small { font-size: 12.5px; color: #5E6883; }

/* ── El link del presupuesto (réplica de /p con marca neutra) ─────────── */
.web { background: var(--paper); color: var(--obsidiana); --c: var(--ivory); }
.web .navegador { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 100px; padding: 54px 14px 0; background: var(--obsidiana); display: flex; align-items: center; }
.web .navegador span { flex: 1; height: 34px; border-radius: 11px; background: rgba(247,243,234,.1); color: rgba(247,243,234,.75); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.web .navegador svg { width: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.web .marca { position: absolute; z-index: 5; top: 100px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 22px 16px; background: var(--obsidiana); color: var(--ivory); font-size: 12.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.web .marca span:last-child { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; color: var(--obsidiana-200); }
.web .cuerpo { position: absolute; top: 148px; left: 0; right: 0; display: grid; gap: 12px; padding: 20px 18px 40px; }
.web .k { font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #5E6883; }
.web .t { margin-top: -6px; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.web .items { display: grid; gap: 9px; }
.web .item { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 11px; align-items: start; padding: 13px 14px; border: 1px solid #DED7C8; border-radius: 15px; background: #fff; }
.web .item[data-on="0"] { background: var(--ivory); }
.web .casilla { display: grid; place-items: center; width: 23px; height: 23px; margin-top: 1px; border-radius: 7px; border: 1.8px solid #5E6883; background: transparent; color: var(--paper); }
.web .item[data-on="1"] .casilla { background: var(--obsidiana); border-color: var(--obsidiana); }
.web .casilla svg { width: 15px; height: 15px; }
.web .item[data-on="0"] .casilla svg { opacity: 0; }
.web .item strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.web .item small { display: block; margin-top: 1px; font-size: 13.5px; line-height: 1.35; color: #5E6883; }
.web .precio { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.web .item[data-on="0"] .precio { color: #8C93A6; text-decoration: line-through; }
.web .fijo { display: flex; justify-content: space-between; padding: 2px 14px; font-size: 14px; color: #5E6883; font-variant-numeric: tabular-nums; }
.web .cifra { display: flex; justify-content: space-between; align-items: baseline; padding: 17px 18px; border-radius: 16px; background: var(--obsidiana); color: var(--ivory); }
.web .cifra span { font-size: 14px; color: var(--obsidiana-200); }
.web .cifra strong { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.web .accion { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; border-radius: 14px; background: #0F6A45; color: var(--paper); font-size: 16px; font-weight: 600; }
.web .accion svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.web .nota-web { font-size: 13.5px; line-height: 1.45; color: #36415A; }

/* Comparativo */
.web .opcion { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid #DED7C8; border-radius: 16px; background: #fff; }
.web .opcion[data-abierta="1"] { border-color: var(--obsidiana); box-shadow: 0 0 0 1px var(--obsidiana); }
.web .opcion .cab { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #5E6883; }
.web .opcion strong { font-size: 18px; font-weight: 600; }
.web .opcion .monto { font-size: 21px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Seguimiento */
.web .estado-obra { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: var(--copper-50); color: var(--copper-700); font-size: 14px; font-weight: 600; }
.web .estado-obra i { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.web .pasos { display: grid; padding: 16px; border: 1px solid #DED7C8; border-radius: 16px; background: #fff; }
.web .pasos li { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; min-height: 46px; font-size: 16px; color: #5E6883; }
.web .pasos li + li::before { content: ""; position: absolute; left: 11.5px; bottom: 50%; height: 100%; width: 1.5px; margin-bottom: 12px; background: #DED7C8; }
.web .pasos .punto { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.8px solid #8C93A6; background: #fff; color: #fff; }
.web .pasos .punto svg { width: 13px; height: 13px; opacity: 0; }
.web .pasos li[data-e="hecho"] { color: var(--obsidiana); }
.web .pasos li[data-e="hecho"] .punto { background: #1F8A5B; border-color: #1F8A5B; }
.web .pasos li[data-e="hecho"] .punto svg { opacity: 1; }
.web .pasos li[data-e="actual"] { color: var(--obsidiana); font-weight: 600; }
.web .pasos li[data-e="actual"] .punto { border: 7px solid var(--copper); }
.web .pasos .f { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: #5E6883; }
.web .piezas { display: grid; gap: 7px; padding: 14px 16px; border: 1px solid #DED7C8; border-radius: 16px; background: #fff; }
.web .piezas li { display: flex; justify-content: space-between; font-size: 14.5px; }
.web .piezas li span:last-child { font-size: 13px; color: #5E6883; }

/* ── El PDF de cinco páginas ─────────────────────────────────────────── */
.pdf { background: #3A3F48; color: #fff; --c: #fff; }
.pdf .barra-pdf { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 104px; padding: 56px 18px 0; display: flex; justify-content: space-between; align-items: center; background: #262A31; font-size: 15px; }
.pdf .barra-pdf b { font-weight: 600; }
.pdf .barra-pdf span { color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.pdf .hoja-lugar { position: absolute; top: 132px; left: 22px; width: 349px; height: 494px; }
.pdf .hoja { position: absolute; inset: 0; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); padding: 22px 20px; display: grid; align-content: start; gap: 8px; transform-origin: 30% 38%; }
.hoja .logo-h { width: 70px; height: 12px; background: #1E2B3F; }
.hoja .linea { height: 5px; border-radius: 2px; background: #C9CDD5; }
.hoja .linea.c { width: 55%; } .hoja .linea.m { width: 78%; }
.hoja .tabla { display: grid; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #C9CDD5; }
.hoja .fila { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.hoja .fila i { height: 4px; border-radius: 2px; background: #D9DCE2; }
.hoja .fila i:last-child { background: #9AA1AE; }
.hoja .chica { font-size: 6.5px; line-height: 1.25; color: #6B7280; }
.pdf .miniaturas { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 8px; }
.pdf .miniaturas i { width: 34px; height: 46px; background: #fff; opacity: .5; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pdf .miniaturas i.on { opacity: 1; outline: 2px solid var(--copper-300); outline-offset: 2px; }

/* ── Cero AI ─────────────────────────────────────────────────────────── */
.ia { background: var(--paper); color: var(--obsidiana); --c: var(--obsidiana); }
.ia .cab-app { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 112px; padding: 58px 20px 0; display: flex; align-items: center; gap: 11px; background: rgba(252,251,248,.96); border-bottom: 1px solid #E7E1D4; }
.ia .cab-app .marca-ia { width: 34px; height: 34px; border-radius: 10px; background: var(--obsidiana); color: var(--ivory); display: grid; place-items: center; }
.ia .cab-app .marca-ia svg { width: 22px; height: 22px; }
.ia .cab-app b { font-size: 17px; font-weight: 600; }
.ia .cab-app small { display: block; font-size: 12.5px; color: #5E6883; }
.ia .hilo { position: absolute; top: 112px; left: 0; right: 0; bottom: 96px; padding: 16px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.ia .pregunta { align-self: flex-end; max-width: 84%; padding: 11px 15px; border-radius: 20px; border-bottom-right-radius: 6px; background: var(--obsidiana); color: var(--ivory); font-size: 16px; line-height: 1.38; }
.ia .respuesta { display: grid; gap: 10px; padding: 14px; border-radius: 20px; border-bottom-left-radius: 6px; background: #fff; border: 1px solid #E7E1D4; font-size: 15px; line-height: 1.45; color: #36415A; }
.ia .respuesta b { color: var(--obsidiana); }
.ia .pensando { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid #E7E1D4; }
.ia .pensando i { width: 7px; height: 7px; border-radius: 50%; background: #8C93A6; }
.ia .escribir-ia { position: absolute; z-index: 5; bottom: 0; left: 0; right: 0; height: 96px; padding: 12px 14px 38px; background: rgba(252,251,248,.96); border-top: 1px solid #E7E1D4; }
.ia .escribir-ia span { display: flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 22px; background: #fff; border: 1px solid #DED7C8; font-size: 15.5px; color: #8C93A6; }
.ia .escribir-ia span.lleno { color: var(--obsidiana); }
.grafico { display: grid; gap: 6px; }
.grafico .titulo-g { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5E6883; }
.grafico .barras { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 9px; align-items: end; height: 150px; padding-top: 8px; border-bottom: 1px solid #DED7C8; }
.grafico .barras div { display: grid; align-content: end; justify-items: center; height: 100%; gap: 4px; }
.grafico .barras i { width: 100%; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--obsidiana-500); transform-origin: 50% 100%; }
.grafico .barras div:first-child i { background: var(--copper); }
.grafico .barras em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--obsidiana); font-variant-numeric: tabular-nums; }
.grafico .ejes { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 9px; }
.grafico .ejes span { font-size: 10.5px; line-height: 1.2; text-align: center; color: #5E6883; }

/* ── Trazabilidad: la historia de una orden ──────────────────────────── */
.historia { display: grid; gap: 0; }
.historia li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 14px; }
.historia li::before { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 1.5px; background: #DED7C8; }
.historia li:last-child::before { display: none; }
.historia .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--obsidiana); color: var(--ivory); display: grid; place-items: center; }
.historia .ic svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.historia li.cobre .ic { background: var(--copper); }
.historia b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--obsidiana); }
.historia small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: #5E6883; }
.historia time { font-family: var(--font-mono); font-size: 12px; color: #5E6883; }

/* ── Piezas que flotan fuera del celular ─────────────────────────────── */
.flota { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; transform-style: preserve-3d; opacity: 0; visibility: hidden; will-change: transform, opacity; }
/* Centrada en (x, y) y escalada como el celular: scale(k) translate(-50%). */
.flota > .escala { position: absolute; left: 0; top: 0; transform: scale(var(--k, .6)) translate(-50%, -50%); transform-origin: 0 0; }
.sombra { position: absolute; left: var(--x, 50%); top: var(--y, 80%); width: calc(560px * var(--k, .6)); height: calc(120px * var(--k, .6)); margin: calc(-60px * var(--k, .6)) 0 0 calc(-280px * var(--k, .6)); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.85), rgba(0,0,0,.4) 55%, transparent); filter: blur(6px); opacity: 0; }
.tarjeta { width: 360px; padding: 18px; border-radius: 24px; background: rgba(252,251,248,.97); color: var(--obsidiana); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.tarjeta.oscura { background: rgba(18,29,45,.94); color: var(--ivory); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(247,243,234,.1); }
.tarjeta .k { font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #5E6883; }
.tarjeta.oscura .k { color: var(--obsidiana-300); }

.tarjeta .tt { margin-top: 8px; font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.tarjeta .dd { margin-top: 6px; font-size: 14.5px; line-height: 1.4; color: #5E6883; }
.tarjeta.oscura .dd { color: var(--obsidiana-200); }

/* ── Los subtítulos ───────────────────────────────────────────────────── */
.subs { position: absolute; z-index: 9; left: 6.5%; top: 0; bottom: 0; width: 38%; pointer-events: none; }
.sub { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; opacity: 0; }
.sub .k { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-300); }
.sub h3 { margin-top: 14px; font-size: clamp(26px, 3.25vw, 50px); font-weight: 600; line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.sub h3 em { font-style: normal; color: var(--copper-300); }
.sub p { margin-top: 16px; max-width: 34ch; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.5; color: var(--obsidiana-200); text-wrap: pretty; }

/* ── El reproductor: segmentos tipo historia, pausa y capítulos ───────── */
.hud { position: absolute; z-index: 12; top: 18px; left: 22px; right: 22px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.seg { display: grid; gap: 8px; padding: 6px 0; text-align: left; cursor: pointer; }
.seg .barra { height: 3px; border-radius: 3px; background: rgba(247,243,234,.2); overflow: hidden; }
.seg .barra i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--ivory); }
.seg span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,243,234,.45); transition: color .25s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg:hover span, .seg.actual span { color: var(--ivory); }
.mandos { position: absolute; z-index: 12; left: 22px; bottom: 34px; display: flex; align-items: center; gap: 12px; }
/* La barra de avance de toda la película: abajo de todo, un tramo por capítulo, del largo del capítulo. */
.progreso { position: absolute; z-index: 12; left: 22px; right: 22px; bottom: 6px; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: pan-y; outline: none; user-select: none; -webkit-user-select: none; }
.progreso .pista { display: flex; gap: 3px; width: 100%; height: 4px; }
.progreso .tramo { flex: 1 1 0; min-width: 0; border-radius: 2px; background: rgba(247,243,234,.22); overflow: hidden; }
.progreso .tramo i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--ivory); }
.progreso .perilla { position: absolute; top: 50%; left: var(--x, 0); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 3px rgba(201,106,27,.45), 0 2px 6px rgba(0,0,0,.4); pointer-events: none; transition: transform .15s var(--ease); }
.progreso:hover .perilla, .progreso[data-arrastrando] .perilla { transform: scale(1.3); }
.progreso:focus-visible .pista { outline: 2px solid var(--copper-300); outline-offset: 6px; border-radius: 4px; }
.mandos button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(247,243,234,.12); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(247,243,234,.16); transition: background .2s var(--ease); }
.mandos button:hover { background: rgba(247,243,234,.22); }
.mandos svg { width: 16px; height: 16px; fill: currentColor; }
.mandos .cap-actual { font-size: 12.5px; font-weight: 600; color: rgba(247,243,234,.7); }
/* Retroceder (un ícono de trazo) y la velocidad (texto): del mismo tamaño que la pausa. */
.mandos .atras svg { fill: none; width: 18px; height: 18px; }
.mandos .vel { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pelicula .icono-pausa { display: block; } .pelicula .icono-play { display: none; }
.pelicula.pausada .icono-pausa { display: none; } .pelicula.pausada .icono-play { display: block; }
.velo { position: absolute; z-index: 11; inset: 0; display: grid; place-items: center; background: rgba(2,4,9,.35); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.velo button { pointer-events: none; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 26px 0 20px; border-radius: 999px; background: var(--ivory); color: var(--obsidiana); font-size: 16px; font-weight: 600; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.velo svg { width: 20px; height: 20px; fill: currentColor; }
/* El velo deja pasar los toques: los capítulos y la pausa siguen andando debajo. */
.pelicula.esperando .velo, .pelicula.termino .velo { opacity: 1; }
.pelicula.esperando .velo button, .pelicula.termino .velo button { pointer-events: auto; }

/* Tiendas */
.tiendas { display: flex; flex-wrap: wrap; gap: 10px; }
.tienda { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border-radius: 12px; background: var(--obsidiana); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(247,243,234,.16); text-align: left; }
.tienda svg { width: 22px; height: 22px; fill: currentColor; }
.tienda span { display: grid; line-height: 1.1; }
.tienda small { font-size: 10.5px; color: var(--obsidiana-200); }
.tienda b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

/* ── Celular: la película se para, como una historia ─────────────────── */
@media (max-width: 760px) {
  .cabeza { grid-template-columns: 1fr; }
  .pelicula { aspect-ratio: 9 / 16; max-height: 86svh; border-radius: 22px; }
  .subs { left: 20px; right: 20px; top: auto; bottom: 74px; width: auto; height: 34%; }
  .sub { top: auto; bottom: 0; translate: none; }
  .sub h3 { font-size: clamp(24px, 7.2vw, 32px); }
  .sub p { margin-top: 10px; font-size: 14.5px; }
  .hud { top: 12px; left: 14px; right: 14px; gap: 5px; }
  .seg { padding: 4px 0; } .seg span { display: none; }
  .mandos { left: 14px; bottom: 34px; gap: 8px; }
  .progreso { left: 14px; right: 14px; bottom: 4px; height: 28px; }
  .mandos button { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .seg span, .velo { transition: none; }
}

/* El botón de la App Store (en producción, el oficial de Apple). */
.app-store { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 18px 0 14px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); pointer-events: auto; }
.app-store svg { width: 26px; height: 26px; fill: currentColor; margin-top: -3px; }
.app-store span { display: grid; line-height: 1.05; text-align: left; }
.app-store small { font-size: 11px; letter-spacing: .01em; }
.app-store b { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.app-store.claro { background: #0B1220; }
