/* ---- Portada: depósito interactivo, funciones destacadas, confianza, manifiesto y pie (portada-deposito.js, portada-extras.js) ---- */

/* ===== Depósito ===== */
@property --c { syntax: '<color>'; inherits: true; initial-value: #14c79a; }
.dp { position: relative; border-radius: 26px; padding: 18px; background: linear-gradient(180deg, #121733, #0b0e1a); border: 1px solid rgba(123, 140, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 60px 140px -50px rgba(43, 75, 255, 0.65); color: #e7eaf4; }
.dp-barra { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.dp-modos { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.dp-modos button { border: 0; background: transparent; color: #8d96ad; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 0.86rem; }
.dp-modos button:hover { background: transparent; color: #fff; }
.dp-modos button.activo { background: #5f74ff; color: #fff; box-shadow: 0 8px 20px -10px #5f74ff; }
.dp-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.dp-accion { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; font-weight: 700; font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; transition: transform 0.15s ease, background 0.2s ease; }
.dp-accion:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.dp-accion:active { transform: scale(0.96); }
.dp-principal { background: #2fe0b0; color: #062c22; border-color: transparent; }
.dp-principal:hover { background: #5ff0c8; color: #062c22; }
.dp.ocupado .dp-accion { opacity: 0.5; pointer-events: none; }

.dp-kpis { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; margin: 14px 0 6px; }
.dp-kpis > div { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); display: grid; gap: 2px; }
.dp-kpis small { font-family: var(--pt-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8d96ad; }
.dp-kpis b { font-family: var(--pt-titulo); font-size: 1.5rem; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.dp-medidor { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.dp-medidor span { display: block; height: 100%; border-radius: 3px; background: var(--c, linear-gradient(90deg, #5f74ff, #2fe0b0)); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.dp-envivo { display: flex !important; align-items: center; gap: 8px; font-family: var(--pt-mono); font-size: 0.72rem; color: #2fe0b0; text-transform: uppercase; letter-spacing: 0.06em; }
.dp-envivo span { width: 8px; height: 8px; border-radius: 50%; background: #2fe0b0; animation: dp-vivo 1.4s ease-out infinite; }
@keyframes dp-vivo { 0% { box-shadow: 0 0 0 0 rgba(47, 224, 176, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(47, 224, 176, 0); } }

.dp-escena { position: relative; }
.dp-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; }
.dp-piso { fill: #151b38; stroke: rgba(123, 140, 255, 0.3); stroke-width: 1; }
.dp-grilla { stroke: rgba(123, 140, 255, 0.08); stroke-width: 1; }
.dp-muelle { fill: rgba(47, 224, 176, 0.12); stroke: rgba(47, 224, 176, 0.5); stroke-dasharray: 4 4; }
.dp-rotulo { fill: #2fe0b0; font: 600 9px var(--pt-mono); letter-spacing: 0.1em; text-anchor: middle; }
.dp-cod { fill: #8d96ad; font: 600 8px var(--pt-mono); text-anchor: middle; pointer-events: none; }
/* Caras de las cajas: la tapa más clara y la derecha más oscura dan el volumen */
.iso-tapa { fill: color-mix(in srgb, var(--c) 70%, white); }
.iso-izq { fill: var(--c); }
.iso-der { fill: color-mix(in srgb, var(--c) 62%, black); }
.dp-base { --c: #2a3256; }
.dp-poste { --c: #4a5580; }
.dp-carga { --c: #e7eaf4; } .dp-cabina { --c: #5f74ff; }
.dp-auto-cuerpo { --c: #f5a524; }
.dp-rack { cursor: pointer; outline: none; transition: --c 0.5s ease, opacity 0.4s ease, filter 0.3s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.dp-rack:hover, .dp-rack:focus-visible, .dp-rack.elegido { filter: brightness(1.25) drop-shadow(0 0 10px color-mix(in srgb, var(--c) 70%, transparent)); }
.dp-rack.apagado { opacity: 0.35; }
.dp-nivel { transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.dp-nivel.vacio { opacity: 0; transform: translateY(-14px); }
.dp-rack.pulso { animation: dp-pulso 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes dp-pulso { 40% { transform: scale(1.12); filter: brightness(1.6); } }
.dp.armando .dp-rack { transform: scale(0.2); opacity: 0; }
.dp.armado .dp-rack { transition-delay: calc(var(--k) * 45ms); }
.dp-camion { transform: translate(180px, -90px); opacity: 0; transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease; }
.dp-camion.llega { transform: none; opacity: 1; }
.dp-camion.se-va { transform: translate(180px, -90px); opacity: 0; transition-duration: 1s, 0.8s; }
.dp-vuela { transition: transform 0.5s cubic-bezier(0.5, 0, 0.3, 1), opacity 0.5s ease; }
.dp-auto { transition: transform 0.55s cubic-bezier(0.45, 0, 0.55, 1); filter: drop-shadow(0 0 8px rgba(245, 165, 36, 0.6)); }
.dp-camino { stroke: #2fe0b0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; filter: drop-shadow(0 0 6px #2fe0b0); transition: stroke-dashoffset 1s ease, opacity 0.4s ease; }
.dp-camino.ve { opacity: 0.85; }

.dp-ficha { position: absolute; z-index: 3; translate: -50% calc(-100% - 10px); min-width: 190px; padding: 12px 14px; border-radius: 14px; pointer-events: none; display: grid; gap: 4px;
  background: rgba(18, 22, 39, 0.94); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px);
  animation: dp-ficha 0.25s cubic-bezier(0.22, 1, 0.36, 1); transition: left 0.25s ease, top 0.25s ease; }
@keyframes dp-ficha { from { opacity: 0; scale: 0.9; } }
.dp-ficha-cod { font-family: var(--pt-mono); font-size: 0.66rem; color: #8d96ad; text-transform: uppercase; letter-spacing: 0.05em; }
.dp-ficha > b { font-size: 0.95rem; }
.dp-ficha-uds { font-size: 0.82rem; color: #aab2c8; } .dp-ficha-uds b { color: #fff; }
.dp-ficha-alerta { font-size: 0.74rem; font-weight: 800; color: #ff6b81; }
.dp-aviso { position: absolute; left: 50%; bottom: 6px; translate: -50% 0; margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  background: rgba(47, 224, 176, 0.14); border: 1px solid rgba(47, 224, 176, 0.35); color: #b9f5e3; opacity: 0; pointer-events: none; max-width: 95%; overflow: hidden; text-overflow: ellipsis; }
.dp-aviso.ve { animation: dp-aviso 4s ease both; }
@keyframes dp-aviso { 0% { opacity: 0; transform: translateY(10px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.dp-pista { position: absolute; right: 8px; top: 4px; margin: 0; font-family: var(--pt-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #7b8cff;
  animation: pt-pista 2s ease-in-out infinite; transition: opacity 0.3s ease; }
.dp-pista.oculta { opacity: 0 !important; animation: none; }
.dp-leyenda { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 0.8rem; color: #aab2c8; }
.dp-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.dp-leyenda i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 640px) {
  .dp { padding: 12px; border-radius: 20px; }
  .dp-barra { flex-direction: column; align-items: stretch; }
  .dp-modos { justify-content: space-between; }
  .dp-modos button { flex: 1; padding: 8px 6px; font-size: 0.8rem; }
  .dp-acciones .dp-accion { flex: 1; justify-content: center; }
  .dp-kpis { grid-template-columns: repeat(3, 1fr); }
  .dp-kpis b { font-size: 1.15rem; }
  .dp-envivo { display: none !important; }
  .dp-aviso { font-size: 0.72rem; white-space: normal; text-align: center; width: 92%; }
}

/* ===== Funciones destacadas ===== */
.fn-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fn-carta { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 24px; background: var(--hoja); border: 1px solid var(--pt-linea);
  box-shadow: 0 1px 2px rgba(20, 26, 51, 0.04); transition: box-shadow 0.3s ease, border-color 0.3s ease; }
[data-tema='oscuro'] .fn-carta { background: var(--hoja); }
.fn-carta:hover { border-color: color-mix(in srgb, var(--cobalto) 35%, var(--pt-linea)); box-shadow: 0 30px 60px -30px rgba(43, 75, 255, 0.4); }
.fn-carta header { display: grid; gap: 10px; }
.fn-carta h3 { margin: 0; font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.fn-chip { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; background: var(--cobalto-suave); color: var(--cobalto); }
.fn-pos { grid-column: span 2; grid-row: span 2; }
/* Entrada épica: giran hacia el frente desde abajo */
.fn-aparece { opacity: 0; transform: perspective(1400px) translateY(70px) rotateX(-28deg) scale(0.94); transform-origin: 50% 100%;
  transition: opacity 0.8s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--d) * 110ms); }
.fn-aparece.visto { opacity: 1; transform: none; }

/* POS */
.pos { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.pos-izq, .pos-der { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pos-buscar { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--pt-linea); background: var(--niebla); color: var(--pt-suave); }
[data-tema='oscuro'] .pos-buscar { background: var(--niebla); }
.pos-buscar:focus-within { border-color: var(--cobalto); box-shadow: var(--foco); }
.pos-buscar input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none !important; padding: 11px 0; font-size: 0.92rem; }
.pos-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pos-lista button { width: 100%; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px;
  background: var(--niebla); border: 1px solid transparent; font-weight: 600; font-size: 0.88rem; color: var(--tinta); transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease; }
[data-tema='oscuro'] .pos-lista button { background: var(--niebla); }
.pos-lista button:hover { border-color: var(--cobalto); background: var(--cobalto-suave); }
.pos-lista button small { display: block; font-family: var(--pt-mono); font-size: 0.66rem; color: var(--pt-suave); font-weight: 400; }
.pos-lista button b { font-variant-numeric: tabular-nums; }
.pos-lista button i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--cobalto); color: #fff; }
.pos-lista button.toco { animation: pos-toco 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pos-toco { 40% { transform: scale(0.96); } }
.pos-escanear { position: relative; overflow: hidden; padding: 11px; border-radius: 12px; font-weight: 700; border: 1px dashed var(--pt-linea); background: transparent; color: var(--tinta); }
.pos-laser { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #ff4d6a; box-shadow: 0 0 10px #ff4d6a; opacity: 0; }
.pos-escanear.leyendo .pos-laser { opacity: 1; animation: pos-laser 0.45s ease-in-out 2 alternate; }
@keyframes pos-laser { from { transform: translateY(-14px); } to { transform: translateY(14px); } }
.pos-der { padding: 16px; border-radius: 18px; background: var(--pt-noche); color: #e7eaf4; position: relative; overflow: hidden; }
.pos-titulo { margin: 0; font-family: var(--pt-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8d96ad; }
.pos-ticket { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; align-content: start; gap: 8px; min-height: 150px; max-height: 230px; overflow-y: auto; scrollbar-width: none; }
.pos-ticket li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 0.86rem; padding-bottom: 8px; border-bottom: 1px dashed rgba(255, 255, 255, 0.12); }
.pos-ticket li.entra { animation: pos-entra 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pos-entra { from { opacity: 0; transform: translateX(16px); background: rgba(95, 116, 255, 0.25); } }
.pos-ticket li button { width: 22px; height: 22px; padding: 0; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; font-weight: 800; }
.pos-ticket .pos-vacio { display: block; border: 0; color: #8d96ad; text-align: center; padding: 30px 0; }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.pos-total b { font-family: var(--pt-titulo); font-size: 2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pos-total b.late, .shop-stock b.late { animation: pt-salta 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pos-cobrar { padding: 13px; border-radius: 12px; border: 0; font-weight: 800; background: #2fe0b0; color: #062c22; transition: transform 0.15s ease, opacity 0.2s ease; }
.pos-cobrar:hover:not(:disabled) { background: #5ff0c8; }
.pos-cobrar:disabled { opacity: 0.35; }
.pos-qr, .pos-listo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; background: rgba(11, 14, 26, 0.96);
  animation: pos-cubre 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.pos-qr[hidden], .pos-listo[hidden] { display: none; }
@keyframes pos-cubre { from { opacity: 0; transform: scale(1.05); } }
.pos-qr-codigo { width: 150px; padding: 10px; border-radius: 14px; background: #fff; position: relative; overflow: hidden; }
.pos-qr-codigo svg { display: block; fill: #0b0e1a; }
.pos-qr-codigo::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgba(0, 158, 227, 0.35)); animation: pos-barre 1s linear infinite; }
@keyframes pos-barre { from { top: -30%; } to { top: 100%; } }
.pos-qr p { margin: 0; color: #aab2c8; font-size: 0.85rem; }
.pos-tilde { width: 64px; height: 64px; border-radius: 50%; background: #2fe0b0; position: relative; animation: pos-tilde 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pos-tilde::after { content: ''; position: absolute; left: 22px; top: 18px; width: 14px; height: 24px; border: solid #062c22; border-width: 0 5px 5px 0; transform: rotate(45deg); }
@keyframes pos-tilde { from { transform: scale(0); } }
.pos-listo b { font-size: 1.4rem; } .pos-listo small { color: #aab2c8; }

/* ARCA */
.arca { position: relative; flex: 1; display: grid; place-items: center; min-height: 170px; }
.arca-hoja { width: 70%; padding: 16px; border-radius: 8px; background: #fff; color: #141a33; display: grid; gap: 8px; box-shadow: 0 20px 40px -20px rgba(20, 26, 51, 0.4); rotate: -3deg; font-size: 0.78rem; }
.arca-hoja span { font-family: var(--pt-mono); color: #6b7489; }
.arca-hoja i { height: 6px; border-radius: 3px; background: #e6eaf2; } .arca-hoja i:nth-of-type(2) { width: 70%; }
.arca-hoja em { font-style: normal; font-weight: 800; justify-self: end; }
.arca-sello { position: absolute; right: 6%; top: 8%; padding: 8px 12px; border: 3px solid #14c79a; border-radius: 10px; color: #0b7a5f; background: rgba(20, 199, 154, 0.08);
  font: 800 0.72rem/1.25 var(--pt-mono); text-align: center; rotate: 8deg; animation: arca-sello 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
[data-tema='oscuro'] .arca-sello { color: #2fe0b0; }
@keyframes arca-sello { 0%, 15% { opacity: 0; transform: scale(2.4); } 25%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* E-commerce */
.shop { flex: 1; display: grid; gap: 12px; align-content: end; }
.shop-pedidos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 120px; align-content: start; }
.shop-pedidos li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--niebla); font-size: 0.84rem; font-weight: 600; animation: pt-aviso-entra 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.shop-pedidos li img { object-fit: contain; border-radius: 4px; }
.shop-pedidos li b { margin-left: auto; color: #ff6b81; font-family: var(--pt-mono); }
.shop-stock { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--pt-linea); }
.shop-stock small { color: var(--pt-suave); }
.shop-stock b { font-family: var(--pt-titulo); font-size: 1.8rem; color: var(--cobalto); display: inline-block; }

/* Bancos */
.banco { flex: 1; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 4px; }
.banco-col { display: grid; gap: 10px; }
.banco-col span { padding: 8px 10px; border-radius: 10px; background: var(--niebla); font-size: 0.74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banco-lineas { display: grid; gap: 10px; }
.banco-lineas i { height: 2px; margin: 15px 0; background: #14c79a; transform-origin: 0 50%; animation: banco-une 3.6s ease-in-out infinite; }
.banco-lineas i:nth-child(2) { animation-delay: 0.5s; } .banco-lineas i:nth-child(3) { animation-delay: 1s; }
@keyframes banco-une { 0%, 10% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* Cerebro */
.cerebro { flex: 1; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(20, 199, 154, 0.1)); }
.cerebro-icono { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7c5cff, #14c79a); }
.cerebro-texto { margin: 0; font-weight: 600; line-height: 1.45; min-height: 3em; }
.cerebro-texto::after { content: '|'; margin-left: 2px; color: #7c5cff; animation: pt-pista 0.9s steps(1) infinite; }

/* Finanzas */
.fin { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 8px; min-height: 140px; padding-top: 24px; }
.fin i { flex: 1; height: var(--v); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--cobalto), color-mix(in srgb, var(--cobalto) 30%, transparent));
  transform-origin: 50% 100%; animation: fin-crece 3.5s calc(var(--i) * 0.08s) cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.fin i:last-of-type { background: linear-gradient(180deg, #14c79a, rgba(20, 199, 154, 0.3)); }
@keyframes fin-crece { 0% { transform: scaleY(0.1); } 25%, 90% { transform: scaleY(1); } 100% { transform: scaleY(0.1); } }
.fin-dato { position: absolute; left: 0; top: 0; font-weight: 800; font-size: 0.82rem; color: var(--menta-texto); }

/* ===== Confianza ===== */
.cf { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; animation-delay: 0.3s; }
.cf p { margin: 0; color: var(--pt-heroe-suave, #aab2c8); font-size: 0.95rem; }
.cf p b { color: var(--pt-heroe-tinta, #fff); font-variant-numeric: tabular-nums; }
.cf-caras { display: flex; }
.cf-caras span { width: 32px; height: 32px; margin-left: -9px; border-radius: 50%; display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; color: #fff;
  border: 2px solid var(--pt-heroe-fondo, #0b0e1a); background: hsl(calc(230 + var(--i) * 25) 75% 58%); animation: cf-cara 0.5s calc(0.6s + var(--i) * 0.08s) cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.cf-caras span:first-child { margin-left: 0; }
@keyframes cf-cara { from { transform: scale(0); } }
.cf-banda { padding: 40px 0 10px; }
.cf-banda-fila { display: grid; grid-template-columns: repeat(4, 1fr); }
.cf-banda-fila > div { display: grid; gap: 8px; padding: 6px 24px; text-align: center; }
.cf-banda-fila > div + div { border-left: 1px solid var(--pt-linea); }
.cf-banda b { font-family: var(--pt-titulo); font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(95deg, var(--cobalto), #7c5cff, #14c79a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cf-banda b small { font-size: 0.5em; }
.cf-banda span { color: var(--pt-suave); font-size: 0.92rem; }

/* ===== Manifiesto ===== */
.mf { padding: 120px 0; }
.mf-texto { max-width: 1000px !important; margin: 0 auto; font-family: var(--pt-titulo); font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 800; text-align: center; }
.mf-texto span { color: color-mix(in srgb, var(--tinta) 14%, transparent); transition: color 0.4s ease; }
.mf-texto span.on { color: var(--tinta); }
.mf-texto span.on:nth-child(n + 23) { color: var(--cobalto); }

/* ===== Pie ===== */
.pie { padding: 64px 0 28px; border-top: 1px solid var(--pt-linea); background: var(--niebla); }
[data-tema='oscuro'] .pie { background: #080a14; }
.pie-arriba { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.pie-marca { display: grid; gap: 16px; justify-items: start; }
.pie-marca p { margin: 0; color: var(--pt-suave); max-width: 300px !important; line-height: 1.55; }
.pie-col { display: grid; gap: 10px; align-content: start; }
.pie-col b { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.pie-col a, .pie-col button { justify-self: start; padding: 0; border: 0; background: none; color: var(--pt-suave); font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; text-align: left; }
.pie-col a:hover, .pie-col button:hover { color: var(--cobalto); background: none; }
.pie-abajo { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-top: 22px; border-top: 1px solid var(--pt-linea); color: var(--pt-suave); font-size: 0.84rem; }
.pie-abajo p { margin: 0; } .pie-abajo p:first-child { margin-right: auto; }
.pie-abajo a { color: var(--tinta); font-weight: 600; }
.pie-legal { max-width: 460px; width: calc(100% - 32px); border: 0; border-radius: 20px; padding: 28px; background: var(--hoja); color: var(--tinta); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5); }
.pie-legal::backdrop { background: rgba(11, 14, 26, 0.6); backdrop-filter: blur(4px); }
.pie-legal[open] { animation: pos-cubre 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.pie-legal h3 { margin: 0 0 10px; font-family: var(--pt-titulo); }
.pie-legal p { color: var(--pt-suave); line-height: 1.6; margin: 0 0 20px; }

/* ===== Cinta de logos que se arrastra ===== */
.pt-conexiones .pt-marquesina { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pt-conexiones .pt-marquesina.agarrada { cursor: grabbing; }
.pt-conexiones .pt-marquesina ul { animation: none !important; will-change: transform; }
.pt-conexiones .pt-marquesina img { pointer-events: none; -webkit-user-drag: none; }

/* ===== Transición épica: la logística se abre de un recuadro a pantalla completa al bajar ===== */
.pt-vitrina { clip-path: inset(0 calc(var(--abre, 1) * 28px) round calc(var(--abre, 1) * 56px)); transition: clip-path 0.1s linear; }

/* ===== Héroe claro (en modo día) ===== */
:root:not([data-tema='oscuro']) .portada { --pt-heroe-fondo: #f3f5ff; --pt-heroe-tinta: #141a33; --pt-heroe-suave: #5b6480; }
:root:not([data-tema='oscuro']) .pt-heroe { background: linear-gradient(180deg, #eef1ff 0%, #f7f8ff 55%, #ffffff 100%); color: var(--tinta); --tinta: #141a33; --pt-linea: rgba(20, 26, 51, 0.14); }
:root:not([data-tema='oscuro']) .pt-heroe::before { background: radial-gradient(800px 500px at 10% -5%, rgba(43, 75, 255, 0.18), transparent 65%), radial-gradient(700px 500px at 95% 25%, rgba(124, 92, 255, 0.16), transparent 65%), radial-gradient(900px 500px at 70% 110%, rgba(20, 199, 154, 0.16), transparent 65%); }
:root:not([data-tema='oscuro']) .pt-heroe::after { background-image: linear-gradient(rgba(43, 75, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 75, 255, 0.07) 1px, transparent 1px); }
:root:not([data-tema='oscuro']) .pt-aurora { opacity: 0.45; }
:root:not([data-tema='oscuro']) .pt-aurora i { mix-blend-mode: multiply; }
:root:not([data-tema='oscuro']) .pt-heroe h1, :root:not([data-tema='oscuro']) .pt-rota > span { color: #141a33; }
:root:not([data-tema='oscuro']) .pt-grad { background-image: linear-gradient(90deg, #2b4bff, #7c5cff, #14c79a, #2b9bff, #2b4bff); }
:root:not([data-tema='oscuro']) .pt-rota > span { background: linear-gradient(transparent 82%, rgba(20, 199, 154, 0.35) 82%, rgba(20, 199, 154, 0.35) 94%, transparent 94%); }
:root:not([data-tema='oscuro']) .pt-bajada { color: #5b6480; }
:root:not([data-tema='oscuro']) .pt-chip-oferta { color: #141a33; background: rgba(255, 255, 255, 0.7); border-color: rgba(43, 75, 255, 0.2); box-shadow: 0 8px 24px -14px rgba(43, 75, 255, 0.5); }
:root:not([data-tema='oscuro']) .pt-heroe .pt-fantasma { color: #141a33; border-color: rgba(20, 26, 51, 0.18); background: rgba(255, 255, 255, 0.6); }
:root:not([data-tema='oscuro']) .pt-heroe .pt-fantasma:hover { border-color: var(--cobalto); color: var(--cobalto); }
:root:not([data-tema='oscuro']) .pt-chispas i { background: #7b8cff; box-shadow: 0 0 6px #7b8cff; }
:root:not([data-tema='oscuro']) .pt-escenario-principal { box-shadow: 0 -10px 80px -30px rgba(43, 75, 255, 0.45), 0 60px 120px -40px rgba(20, 26, 51, 0.55); }
:root:not([data-tema='oscuro']) .pt-celular { box-shadow: 0 40px 80px -30px rgba(20, 26, 51, 0.6), 0 0 60px -20px rgba(20, 199, 154, 0.45); }
:root:not([data-tema='oscuro']) .pt-flotante { background: rgba(255, 255, 255, 0.92); color: #141a33; border-color: rgba(20, 26, 51, 0.1); box-shadow: 0 24px 50px -20px rgba(20, 26, 51, 0.35); }
:root:not([data-tema='oscuro']) .pt-avisos .pt-flotante { background: #fff; }
:root:not([data-tema='oscuro']) .pt-flotante small { color: #6b7489; }
:root:not([data-tema='oscuro']) .pt-flotante-icono { background: #f0f2f7; }
:root:not([data-tema='oscuro']) .pt-vuela { background: #fff; color: #141a33; border-color: rgba(20, 26, 51, 0.12); }
/* Barra de arriba clara en modo día */
:root:not([data-tema='oscuro']) .pt-nav { background: rgba(255, 255, 255, 0.82); border-bottom-color: rgba(20, 26, 51, 0.08); --tinta: #141a33; --pt-linea: rgba(20, 26, 51, 0.14); --pizarra: #6b7489; --logo-r: #2b4bff; }
:root:not([data-tema='oscuro']) .pt-nav .marca { color: #141a33; }
:root:not([data-tema='oscuro']) .pt-enlaces a { color: #5b6480; }
:root:not([data-tema='oscuro']) .pt-enlaces a:hover { color: #141a33; }
:root:not([data-tema='oscuro']) .pt-nav .boton-tema { color: #5b6480; border-color: rgba(20, 26, 51, 0.14); }
:root:not([data-tema='oscuro']) .pt-nav .pt-fantasma { color: #141a33; }
:root:not([data-tema='oscuro']) .pt-nav .pt-fantasma:hover { border-color: var(--cobalto); color: var(--cobalto); }

/* ===== Tablet y celular ===== */
@media (max-width: 1000px) {
  .fn-grilla { grid-template-columns: 1fr 1fr; }
  .fn-pos { grid-column: 1 / -1; grid-row: auto; }
  .pie-arriba { grid-template-columns: 1fr 1fr; }
  .pie-marca { grid-column: 1 / -1; }
  .cf-banda-fila { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .cf-banda-fila > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .fn-grilla { grid-template-columns: 1fr; }
  .fn-carta { padding: 18px; border-radius: 20px; }
  .pos { grid-template-columns: 1fr; }
  .pos-lista { grid-template-columns: 1fr; }
  .mf { padding: 80px 0; }
  .pt-vitrina { clip-path: inset(0 calc(var(--abre, 1) * 10px) round calc(var(--abre, 1) * 30px)); }
  .pie-arriba { gap: 28px; }
  .pie-abajo { flex-direction: column; align-items: flex-start; }
  .cf p { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fn-aparece { opacity: 1; transform: none; }
  .arca-sello, .banco-lineas i, .fin i, .cf-caras span { animation: none; }
  .pt-vitrina { clip-path: none; }
}
.pos-ticket li.pos-vacio { background: none; box-shadow: none; }
.dp-aviso:empty { display: none; }
[data-tema='oscuro'] .pt-vitrina { background: #121733; }
@media (max-width: 640px) { .dp-kpis small { font-size: 0.58rem; } }
.pt-vitrina > .pt-ancho { transform: scale(calc(1 - var(--abre, 0) * 0.05)); transform-origin: 50% 0; }

/* ===== Celular del principio: un iPhone Pro actual (marco de titanio, Dynamic Island, botones) ===== */
.pt-escenario .pt-celular.ip { container-type: inline-size; padding: 0; border: 0; border-radius: 17% / 7.85%; background: none; overflow: visible; aspect-ratio: 9 / 19.5; }
.ip::before { content: ''; position: absolute; inset: 0; border-radius: 17cqw; pointer-events: none;
  /* Titanio negro: casi negro con reflejos suaves en los bordes */
  background: linear-gradient(145deg, #2c2c30 0%, #55555b 12%, #1a1a1d 30%, #3b3b40 52%, #121214 74%, #4a4a50 90%, #222225 100%);
  box-shadow: inset 0 0 0 0.35cqw rgba(255, 255, 255, 0.22), inset 0 0 0 1cqw rgba(0, 0, 0, 0.55), 0 0 0 0.25cqw rgba(0, 0, 0, 0.6); }
.ip-pantalla { position: absolute; inset: 2.8cqw; border-radius: 14.4cqw; overflow: hidden; background: #0b0e1a; box-shadow: 0 0 0 1.5cqw #000; isolation: isolate; }
.pt-escenario .ip .ip-pantalla img { position: absolute; left: 0; right: 0; top: 12.5cqw; width: 100%; height: auto; border-radius: 0; aspect-ratio: auto; object-fit: initial; }
/* Brillo del vidrio */
.ip-pantalla::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, transparent 28%, transparent 70%, rgba(255, 255, 255, 0.05) 100%); }
.ip-estado { position: absolute; left: 0; right: 0; top: 0; height: 12.5cqw; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 1cqw 7cqw 0 9cqw;
  background: #0b0e1a; color: #fff; }
.ip-estado b { font: 600 4.6cqw/1 -apple-system, 'SF Pro Text', Inter, system-ui, sans-serif; letter-spacing: 0.01em; }
.ip-isla { position: absolute; left: 50%; top: 3cqw; translate: -50% 0; width: 31cqw; height: 9.2cqw; border-radius: 99px; background: #000; display: flex; align-items: center; justify-content: flex-end; padding-right: 2.4cqw;
  animation: ip-isla 9s 3s ease-in-out infinite; }
.ip-isla i { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3b6e, #0a0f22 60%); box-shadow: 0 0 0 0.5cqw #111; }
/* La isla se estira cada tanto, como cuando llega una notificación */
@keyframes ip-isla { 0%, 80%, 100% { width: 31cqw; } 84%, 94% { width: 40cqw; } }
.ip-iconos { display: flex; align-items: center; gap: 1.4cqw; }
.ip-iconos svg { height: 3.2cqw; width: auto; fill: #fff; }
.ip-bateria { position: relative; width: 7cqw; height: 3.4cqw; border-radius: 1.1cqw; border: 0.45cqw solid rgba(255, 255, 255, 0.45); padding: 0.4cqw; }
.ip-bateria::after { content: ''; position: absolute; right: -1.2cqw; top: 50%; translate: 0 -50%; width: 0.6cqw; height: 1.4cqw; border-radius: 0 1cqw 1cqw 0; background: rgba(255, 255, 255, 0.45); }
.ip-bateria span { display: block; width: 78%; height: 100%; border-radius: 0.5cqw; background: #fff; }
.ip-barra-inicio { position: absolute; left: 50%; bottom: 2.2cqw; translate: -50% 0; z-index: 2; width: 36cqw; height: 1.4cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.85); }
/* Botones laterales: finos y apenas salidos, como en el iPhone Pro (acción, volumen, encendido y Control de Cámara) */
.ip-boton { position: absolute; width: 0.9cqw; border-radius: 0.6cqw; background: linear-gradient(90deg, #111113, #4a4a50 55%, #1c1c1f); }
.ip-accion { left: -0.55cqw; top: 19.5%; height: 4.6%; }
.ip-vol1 { left: -0.55cqw; top: 27%; height: 7.4%; }
.ip-vol2 { left: -0.55cqw; top: 36%; height: 7.4%; }
.ip-encendido { right: -0.55cqw; top: 29%; height: 11.5%; background: linear-gradient(270deg, #111113, #4a4a50 55%, #1c1c1f); }
.ip-camara { right: -0.3cqw; top: 54%; height: 6%; width: 0.6cqw; background: linear-gradient(270deg, #0c0c0e, #2e2e33); }
/* En el celular de verdad, el iPhone va al centro y más grande */
@media (max-width: 640px) {
  .pt-escenario .pt-celular.ip { width: 70%; margin: 0 auto -40px; }
}

/* ===== Capturas en modo día y noche, que cambian junto con el tema ===== */
.pt-fotos { display: grid; }
.pt-fotos img { grid-area: 1 / 1; display: block; width: 100%; height: auto; }
.pt-foto-oscuro { opacity: 0; transition: opacity 0.45s ease; }
[data-tema='oscuro'] .pt-foto-oscuro { opacity: 1; }
/* En el iPhone las dos capturas van debajo de la barra de estado */
.ip-pantalla .pt-fotos { position: absolute; left: 0; right: 0; top: 12.5cqw; }
.pt-escenario .ip .ip-pantalla .pt-fotos img { position: static; border-radius: 0; aspect-ratio: auto; object-fit: initial; }
:root:not([data-tema='oscuro']) .ip-pantalla, :root:not([data-tema='oscuro']) .ip-estado { background: #ffffff; }
:root:not([data-tema='oscuro']) .ip-estado { color: #000; }
:root:not([data-tema='oscuro']) .ip-iconos svg { fill: #000; }
:root:not([data-tema='oscuro']) .ip-bateria { border-color: rgba(0, 0, 0, 0.4); }
:root:not([data-tema='oscuro']) .ip-bateria::after { background: rgba(0, 0, 0, 0.4); }
:root:not([data-tema='oscuro']) .ip-bateria span { background: #000; }
:root:not([data-tema='oscuro']) .ip-barra-inicio { background: rgba(0, 0, 0, 0.8); }
.ip-estado, .ip-pantalla, .ip-iconos svg, .ip-barra-inicio { transition: background 0.45s ease, color 0.45s ease, fill 0.45s ease; }
/* La ventana del navegador también se aclara en modo día */
:root:not([data-tema='oscuro']) .pt-navegador { background: #fff; border-color: rgba(20, 26, 51, 0.12); }
:root:not([data-tema='oscuro']) .pt-navegador-barra { background: #f3f5f9; border-bottom-color: rgba(20, 26, 51, 0.08); }
:root:not([data-tema='oscuro']) .pt-navegador-barra i { background: #d5dae4; }
:root:not([data-tema='oscuro']) .pt-navegador-barra span { background: #fff; color: #6b7489; }
:root:not([data-tema='oscuro']) .pt-galeria-fotos .pt-navegador { box-shadow: 0 50px 100px -40px rgba(20, 26, 51, 0.35), 0 0 0 1px rgba(20, 26, 51, 0.06); }

/* ===== Escáner del punto de venta ===== */
.fn-pos { position: relative; }
.pos-escanear-zona { position: relative; }
/* El escáner aparece justo arriba del botón, como una ventanita que sale de él */
.esc { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 20; display: grid; justify-items: center; gap: 10px; padding: 14px 14px 12px; border-radius: 20px;
  background: linear-gradient(180deg, #161c35, #0b0e1a); border: 1px solid rgba(123, 140, 255, 0.25); color: #fff;
  box-shadow: 0 30px 60px -20px rgba(5, 8, 20, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0; transform: translateY(14px) scale(0.92); transform-origin: 50% 100%; transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.esc::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; translate: -50% 0; rotate: 45deg; background: #0b0e1a; border-right: 1px solid rgba(123, 140, 255, 0.25); border-bottom: 1px solid rgba(123, 140, 255, 0.25); }
.esc.abierto { opacity: 1; transform: none; }
.esc.se-va { opacity: 0; transform: scale(0.97); }
.esc[hidden] { display: none; }
.esc-visor { position: relative; width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #1d2440, #0a0d1a 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 60px rgba(0, 0, 0, 0.6); }
/* La caja del producto entra a la cámara y se acomoda */
.esc-caja { width: 64%; display: grid; gap: 6px; justify-items: center; padding: 14px 16px 10px; border-radius: 10px; background: #f6f7fb; color: #141a33;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7); transform: translateY(120%) rotate(-12deg) scale(0.8); }
.esc.abierto .esc-caja { animation: esc-entra 0.65s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards, esc-tiembla 2.4s 0.8s ease-in-out infinite; }
@keyframes esc-entra { to { transform: translateY(0) rotate(-3deg) scale(1); } }
@keyframes esc-tiembla { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: 2px -1px; rotate: 0.6deg; } 65% { translate: -2px 1px; rotate: -0.5deg; } }
.esc-marca { font: 600 0.62rem var(--pt-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #6b7489; }
.esc-nombre { font-size: 0.9rem; text-align: center; }
.esc-barras { width: 100%; height: 40px; }
.esc-barras svg { width: 100%; height: 100%; display: block; fill: #0b0e1a; }
.esc-num { font: 500 0.72rem var(--pt-mono); letter-spacing: 0.18em; }
/* Esquinas del visor */
.esc-esquina { position: absolute; width: 24px; height: 24px; border: 3px solid rgba(255, 255, 255, 0.85); transition: border-color 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.e1 { left: 10px; top: 10px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.e2 { right: 10px; top: 10px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.e3 { left: 10px; bottom: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.e4 { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.esc.leyendo .esc-esquina { animation: esc-busca 0.6s ease-in-out infinite alternate; }
@keyframes esc-busca { to { transform: scale(0.9); } }
.esc.leido .esc-esquina { border-color: #2fe0b0; transform: scale(0.86); }
/* Láser que barre */
.esc-laser { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; border-radius: 2px; background: #ff3b5c; box-shadow: 0 0 12px 2px rgba(255, 59, 92, 0.8); opacity: 0; }
.esc.leyendo .esc-laser { opacity: 1; animation: esc-laser 0.55s ease-in-out infinite alternate; }
@keyframes esc-laser { from { transform: translateY(-34px); } to { transform: translateY(34px); } }
.esc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.esc.leido .esc-flash { animation: esc-flash 0.4s ease-out; }
@keyframes esc-flash { 0% { opacity: 0.75; } 100% { opacity: 0; } }
.esc.leido .esc-caja { box-shadow: 0 0 0 3px #2fe0b0, 0 20px 40px -12px rgba(0, 0, 0, 0.7); animation: none; transform: translateY(0) rotate(-3deg) scale(1.03); transition: transform 0.3s ease; }
.esc-estado { margin: 0; min-height: 1.4em; font-size: 0.88rem; color: #aab2c8; text-align: center; }
.esc.leido .esc-estado { color: #fff; animation: pt-salta 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.esc.leido .esc-estado b { color: #2fe0b0; }
.esc-cerrar { position: absolute; top: 20px; right: 20px; z-index: 2; width: 28px; height: 28px; font-size: 0.8rem; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; }
.esc-cerrar:hover { background: rgba(255, 255, 255, 0.16); }
@media (prefers-reduced-motion: reduce) { .esc-caja { transform: none; } .esc.abierto .esc-caja, .esc-laser, .esc-esquina { animation: none !important; } }

.pos-escanear-zona .pos-escanear { width: 100%; }

/* ===== Punto de venta en modo día: ticket, cobro y escáner claros ===== */
:root:not([data-tema='oscuro']) .pos-der { background: #f3f5fb; color: var(--tinta); border: 1px solid rgba(20, 26, 51, 0.08); }
:root:not([data-tema='oscuro']) .pos-titulo { color: #6b7489; }
:root:not([data-tema='oscuro']) .pos-ticket li { border-bottom-color: rgba(20, 26, 51, 0.12); }
:root:not([data-tema='oscuro']) .pos-ticket li button { color: var(--tinta); border-color: rgba(20, 26, 51, 0.2); background: #fff; }
:root:not([data-tema='oscuro']) .pos-ticket .pos-vacio { color: #6b7489; }
:root:not([data-tema='oscuro']) .pos-total { border-top-color: rgba(20, 26, 51, 0.12); }
:root:not([data-tema='oscuro']) .pos-cobrar { background: #14c79a; color: #fff; }
:root:not([data-tema='oscuro']) .pos-cobrar:hover:not(:disabled) { background: #10b38a; }
:root:not([data-tema='oscuro']) .pos-qr, :root:not([data-tema='oscuro']) .pos-listo { background: rgba(255, 255, 255, 0.97); color: var(--tinta); }
:root:not([data-tema='oscuro']) .pos-qr p, :root:not([data-tema='oscuro']) .pos-listo small { color: #6b7489; }
:root:not([data-tema='oscuro']) .pos-qr-codigo { box-shadow: 0 10px 30px -12px rgba(20, 26, 51, 0.35), 0 0 0 1px rgba(20, 26, 51, 0.08); }
:root:not([data-tema='oscuro']) .pos-tilde { background: #14c79a; }
:root:not([data-tema='oscuro']) .pos-tilde::after { border-color: #fff; }
:root:not([data-tema='oscuro']) .pos-ticket li.entra { animation-name: pos-entra-claro; }
@keyframes pos-entra-claro { from { opacity: 0; transform: translateX(16px); background: rgba(43, 75, 255, 0.12); } }

:root:not([data-tema='oscuro']) .esc { background: linear-gradient(180deg, #ffffff, #f3f5fb); color: var(--tinta); border-color: rgba(43, 75, 255, 0.18);
  box-shadow: 0 30px 60px -24px rgba(20, 26, 51, 0.35), 0 0 0 1px rgba(20, 26, 51, 0.04); }
:root:not([data-tema='oscuro']) .esc::after { background: #f3f5fb; border-color: rgba(43, 75, 255, 0.18); }
:root:not([data-tema='oscuro']) .esc-visor { background: radial-gradient(circle at 50% 45%, #f4f6fc, #dfe4f1 75%); box-shadow: inset 0 0 0 1px rgba(20, 26, 51, 0.08), inset 0 0 40px rgba(20, 26, 51, 0.08); }
:root:not([data-tema='oscuro']) .esc-esquina { border-color: rgba(20, 26, 51, 0.7); }
:root:not([data-tema='oscuro']) .esc.leido .esc-esquina { border-color: #14c79a; }
:root:not([data-tema='oscuro']) .esc-caja { background: #fff; box-shadow: 0 16px 30px -12px rgba(20, 26, 51, 0.4), 0 0 0 1px rgba(20, 26, 51, 0.06); }
:root:not([data-tema='oscuro']) .esc-estado { color: #6b7489; }
:root:not([data-tema='oscuro']) .esc.leido .esc-estado { color: var(--tinta); }
:root:not([data-tema='oscuro']) .esc.leido .esc-estado b { color: #0b7a5f; }
:root:not([data-tema='oscuro']) .esc-cerrar { color: var(--tinta); background: rgba(255, 255, 255, 0.85); border-color: rgba(20, 26, 51, 0.15); }
:root:not([data-tema='oscuro']) .esc-flash { background: #fff; }

/* ===== Rendimiento: el mismo aspecto, menos trabajo para la placa de video ===== */
/* Las auroras ya son degradés suaves: sin desenfoque ni mezcla de colores (eran lo más caro de redibujar en cada cuadro) */
.pt-aurora, .pt-final-caja .pt-aurora { filter: none; }
.pt-aurora i, :root:not([data-tema='oscuro']) .pt-aurora i { mix-blend-mode: normal; will-change: transform; }
.pt-aurora i:nth-child(1) { background: radial-gradient(circle, rgba(43, 75, 255, 0.5), rgba(43, 75, 255, 0.18) 38%, transparent 68%); }
.pt-aurora i:nth-child(2) { background: radial-gradient(circle, rgba(124, 92, 255, 0.4), rgba(124, 92, 255, 0.14) 38%, transparent 68%); }
.pt-aurora i:nth-child(3) { background: radial-gradient(circle, rgba(20, 199, 154, 0.32), rgba(20, 199, 154, 0.1) 38%, transparent 68%); }
.pt-escaneo { mix-blend-mode: normal; will-change: transform, opacity; }
/* Las tarjetitas flotantes ya tienen fondo casi opaco: el desenfoque de atrás no se notaba y costaba mucho */
.pt-flotante, .dp-ficha { backdrop-filter: none; -webkit-backdrop-filter: none; }
.pt-flotante { background: rgba(18, 22, 39, 0.96); }
.pt-nav { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* Lo que se mueve todo el tiempo va en su propia capa */
.pt-escenario-principal, .pt-celular, .pt-avisos, .pt-vuela, .pt-chispas i, .pt-progreso { will-change: transform; }
/* El brillo de los botones se desliza con transform (antes movía "left", que obliga a recalcular la página) */
.pt-lleno::after { left: 0; animation: pt-destello-t 4.5s 2s ease-in-out infinite; transform: translateX(-160%) skewX(-20deg); }
@keyframes pt-destello-t { 0%, 70% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(360%) skewX(-20deg); } }
/* Las secciones que no están en pantalla frenan sus animaciones */
.pt-pausa, .pt-pausa *, .pt-pausa *::before, .pt-pausa *::after { animation-play-state: paused !important; }
/* La luz que sigue al mouse se mueve con transform (antes redibujaba toda la sección en cada movimiento) */
.pt-luz::after { inset: auto; left: 0; top: 0; width: 1000px; height: 1000px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 140, 255, 0.14), transparent); will-change: transform;
  transform: translate(calc(var(--mx, -2000px) - 500px), calc(var(--my, -2000px) - 500px)); }
.pt-luz { overflow: hidden; }

/* ===== El degradé de "Recepta se encarga." se mueve igual de lento, pero se redibuja 20 veces por segundo en vez de 60
   (era lo más pesado de la pantalla del principio y a esa velocidad la diferencia no se ve) ===== */
/* Tres copias de la frase con degradés distintos que se funden entre sí: el color fluye igual, pero solo cambia la opacidad
   (la placa de video lo hace sin redibujar; antes el degradé que se desplazaba era lo más pesado de la pantalla) */
.pt-grad { position: relative; animation: pt-frase 1.6s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  background-image: linear-gradient(90deg, #7b8cff, #a08bff 45%, #2fe0b0); background-size: 100% 100%; }
.pt-grad::before, .pt-grad::after { content: attr(data-t); position: absolute; inset: 0; padding-bottom: 0.08em; color: transparent;
  -webkit-background-clip: text; background-clip: text; opacity: 0; will-change: opacity; animation: pt-mezcla 12s ease-in-out infinite; pointer-events: none; }
.pt-grad::before { background-image: linear-gradient(90deg, #2fe0b0, #7b8cff 50%, #a08bff); }
.pt-grad::after { background-image: linear-gradient(90deg, #a08bff, #5fd0ff 45%, #2fe0b0); animation-delay: -6s; }
@keyframes pt-mezcla { 0%, 100% { opacity: 0; } 25%, 45% { opacity: 1; } 70% { opacity: 0; } }
:root:not([data-tema='oscuro']) .pt-grad { background-image: linear-gradient(90deg, #2b4bff, #7c5cff 45%, #14c79a); }
:root:not([data-tema='oscuro']) .pt-grad::before { background-image: linear-gradient(90deg, #14c79a, #2b4bff 50%, #7c5cff); }
:root:not([data-tema='oscuro']) .pt-grad::after { background-image: linear-gradient(90deg, #7c5cff, #2b9bff 45%, #14c79a); }
@media (prefers-reduced-motion: reduce) { .pt-grad::before, .pt-grad::after { animation: none; } }

/* ===== Sin luz que siga al puntero ===== */
.pt-luz::after, .pt-plan.pt-tilt::after { display: none !important; }
.pt-calculo { --gx: 100%; --gy: 0%; }

/* ===== El principio termina de mostrar las pantallas y se funde con lo de abajo ===== */
.pt-heroe { padding-bottom: 110px; }
.pt-escenario-principal { margin-bottom: 0; }
.pt-heroe-fin { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: 6; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 88%); }
[data-tema='oscuro'] .pt-heroe-fin { background: linear-gradient(to bottom, rgba(11, 14, 26, 0), #0b0e1a 88%); }
.pt-conexiones { padding-top: 40px; }
@media (max-width: 640px) {
  .pt-heroe { padding-bottom: 70px; }
  .pt-escenario .pt-celular.ip { margin-bottom: 0; }
  .pt-heroe-fin { height: 200px; }
}

/* ===== Escaneo de las pantallas: uno recorre la app de la computadora y otro la del celular, por turnos ===== */
.pt-escaneo { display: none; }
.pt-escenario-principal { position: relative; }
.pt-escaneo-zona { position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.pt-escaneo-pc { top: 37px; border-radius: 0 0 14px 14px; }          /* debajo de la barra del navegador */
.pt-escaneo-cel { top: 12.5cqw; z-index: 3; }                        /* debajo de la barra de estado del iPhone */
.pt-escaneo-zona i { position: absolute; left: 0; right: 0; top: 0; height: 22%; opacity: 0; transform: translateY(-100%); will-change: transform, opacity;
  background: linear-gradient(to bottom, rgba(95, 116, 255, 0) 0%, rgba(95, 116, 255, 0.1) 62%, rgba(123, 140, 255, 0.42) 94%, rgba(255, 255, 255, 0.95) 98.5%, rgba(123, 140, 255, 0) 100%);
  animation: pt-barre-pc 9s 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
/* La línea de luz del borde, con un brillo azul a los costados */
.pt-escaneo-zona i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #9fb0ff; box-shadow: 0 0 14px 3px rgba(123, 140, 255, 0.75); }
.pt-escaneo-cel i { height: 16%; animation-name: pt-barre-cel; }
/* Primero la computadora (0 a 40 %), después el celular (45 a 85 %), y vuelta a empezar */
@keyframes pt-barre-pc { 0% { opacity: 0; transform: translateY(-100%); } 3% { opacity: 1; } 37% { opacity: 1; transform: translateY(455%); } 41%, 100% { opacity: 0; transform: translateY(455%); } }
@keyframes pt-barre-cel { 0%, 44% { opacity: 0; transform: translateY(-100%); } 47% { opacity: 1; } 81% { opacity: 1; transform: translateY(625%); } 85%, 100% { opacity: 0; transform: translateY(625%); } }
:root:not([data-tema='oscuro']) .pt-escaneo-zona i { background: linear-gradient(to bottom, rgba(43, 75, 255, 0) 0%, rgba(43, 75, 255, 0.06) 62%, rgba(43, 75, 255, 0.22) 94%, rgba(255, 255, 255, 0.9) 98.5%, rgba(43, 75, 255, 0) 100%); }
:root:not([data-tema='oscuro']) .pt-escaneo-zona i::after { background: #2b4bff; box-shadow: 0 0 14px 3px rgba(43, 75, 255, 0.45); }
/* En el celular de verdad solo se ve el iPhone: lo escanea más seguido */
@media (max-width: 640px) { .pt-escaneo-cel i { animation-name: pt-barre-solo; animation-duration: 5.5s; } }
@keyframes pt-barre-solo { 0% { opacity: 0; transform: translateY(-100%); } 4% { opacity: 1; } 70% { opacity: 1; transform: translateY(625%); } 76%, 100% { opacity: 0; transform: translateY(625%); } }
@media (prefers-reduced-motion: reduce) { .pt-escaneo-zona { display: none; } }

/* ===== Palabra que rota: ancho fijo (no mueve el título) y centrada ===== */
.pt-rota { transition: none; text-align: center; padding: 0 0.06em; }
.pt-rota > span, .pt-rota > span.activa { left: 0; right: 0; translate: none; text-align: center; }
.pt-rota > span.activa { position: absolute; }
.pt-rota::before { content: 'facturas'; visibility: hidden; display: inline-block; }

/* ===== Que no se corte la última letra: los textos con letras muy juntas o con degradé tienen un poco de aire a los costados ===== */
.pt-grad, .pt-calculo-horas, .cf-banda b, .pt-cifras-fila b, .pt-precio b, .mf-texto, .pt-rota > span { padding-right: 0.1em; padding-left: 0.04em; }
.pt-grad { margin-right: -0.1em; }
.pt-grad::before, .pt-grad::after { padding-right: 0.1em; padding-left: 0.04em; }
.pt-calculo-horas { display: inline-block; }

/* ===== Los dos escaneos van al mismo tiempo: computadora y celular juntos ===== */
.pt-escaneo-pc i { animation: pt-barre-pc-junto 6s 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.pt-escaneo-cel i { animation: pt-barre-cel-junto 6s 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes pt-barre-pc-junto { 0% { opacity: 0; transform: translateY(-100%); } 5% { opacity: 1; } 68% { opacity: 1; transform: translateY(455%); } 75%, 100% { opacity: 0; transform: translateY(455%); } }
@keyframes pt-barre-cel-junto { 0% { opacity: 0; transform: translateY(-100%); } 5% { opacity: 1; } 68% { opacity: 1; transform: translateY(625%); } 75%, 100% { opacity: 0; transform: translateY(625%); } }
.pt-rota { width: auto !important; }
.pt-rota > span, .pt-rota > span.activa { left: 50%; right: auto; width: max-content; translate: -50% 0; }
@media (max-width: 640px) { .pt-rota { display: inline-block; margin: 0; } }

/* ===== Palabra del título que se tipea ===== */
.pt-rota { display: none !important; }
.pt-linea-tipeo { white-space: nowrap; }
.pt-tipeo { display: inline-block; position: relative; white-space: nowrap; animation: pt-palabra 0.9s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }
.pt-tipeo-texto { display: inline-block; min-width: 0.2em; padding: 0 0.04em 0.02em;
  background: linear-gradient(transparent 80%, rgba(47, 224, 176, 0.5) 80%, rgba(47, 224, 176, 0.5) 93%, transparent 93%) no-repeat; background-size: 100% 100%; }
:root:not([data-tema='oscuro']) .pt-tipeo-texto { background-image: linear-gradient(transparent 80%, rgba(20, 199, 154, 0.38) 80%, rgba(20, 199, 154, 0.38) 93%, transparent 93%); }
/* Cursor que titila; mientras escribe queda fijo */
.pt-cursor { display: inline-block; width: 0.07em; height: 0.82em; margin-left: 0.04em; vertical-align: -0.04em; border-radius: 0.04em;
  background: linear-gradient(180deg, #7b8cff, #2fe0b0); animation: pt-cursor 1s steps(1) infinite; }
:root:not([data-tema='oscuro']) .pt-cursor { background: linear-gradient(180deg, #2b4bff, #14c79a); }
.pt-tipeo.escribiendo .pt-cursor { animation: none; opacity: 1; }
@keyframes pt-cursor { 50% { opacity: 0; } }
/* Al terminar de escribir, el subrayado se ilumina un instante */
.pt-tipeo.listo .pt-tipeo-texto { animation: pt-subraya 0.7s ease-out; }
@keyframes pt-subraya { 0% { background-size: 0% 100%; } 100% { background-size: 100% 100%; } }
@media (max-width: 640px) { .pt-titulo-heroe { font-size: 2.55rem !important; } }
@media (prefers-reduced-motion: reduce) { .pt-cursor { animation: none; } }
.pt-tipeo-texto:empty::before { content: '\200b'; }
/* En el celular "Tus ___" va en su línea y "llegan." en la de abajo, siempre: así no salta al escribir */
@media (max-width: 640px) { .pt-linea-tipeo { display: block; } }
/* El subrayado acompaña a las letras mientras se escriben, sin barrido */
.pt-tipeo.listo .pt-tipeo-texto { animation: none; }

/* ===== Logística en modo día: sección y depósito claros ===== */
:root:not([data-tema='oscuro']) .pt-vitrina { background: #f4f6fc; color: var(--tinta); --tinta: #141a33; --pt-linea: rgba(20, 26, 51, 0.1); --pt-suave: #5b6480; }
:root:not([data-tema='oscuro']) .pt-vitrina::before { background: radial-gradient(900px 500px at 80% 60%, rgba(43, 75, 255, 0.12), transparent 65%), radial-gradient(700px 400px at 10% 100%, rgba(20, 199, 154, 0.1), transparent 65%); }
:root:not([data-tema='oscuro']) .pt-vitrina .pt-mono { color: #0b7a5f; }
:root:not([data-tema='oscuro']) .pt-vitrina h2 { color: #141a33 !important; }
:root:not([data-tema='oscuro']) .dp { background: linear-gradient(180deg, #ffffff, #f3f5fb); border-color: rgba(43, 75, 255, 0.15); color: var(--tinta);
  box-shadow: 0 0 0 1px rgba(20, 26, 51, 0.04), 0 50px 110px -50px rgba(43, 75, 255, 0.4); }
:root:not([data-tema='oscuro']) .dp-modos { background: #eef1f8; border-color: rgba(20, 26, 51, 0.08); }
:root:not([data-tema='oscuro']) .dp-modos button { color: #5b6480; }
:root:not([data-tema='oscuro']) .dp-modos button:hover { color: #141a33; }
:root:not([data-tema='oscuro']) .dp-modos button.activo { background: #2b4bff; color: #fff; }
:root:not([data-tema='oscuro']) .dp-accion { background: #fff; border-color: rgba(20, 26, 51, 0.14); color: #141a33; }
:root:not([data-tema='oscuro']) .dp-accion:hover { background: #f3f5fb; border-color: #2b4bff; color: #2b4bff; }
:root:not([data-tema='oscuro']) .dp-principal { background: #14c79a; color: #fff; border-color: transparent; }
:root:not([data-tema='oscuro']) .dp-principal:hover { background: #10b38a; color: #fff; }
:root:not([data-tema='oscuro']) .dp-kpis > div { background: #fff; border-color: rgba(20, 26, 51, 0.08); }
:root:not([data-tema='oscuro']) .dp-kpis small { color: #6b7489; }
:root:not([data-tema='oscuro']) .dp-kpis b { color: #141a33; }
:root:not([data-tema='oscuro']) .dp-medidor { background: rgba(20, 26, 51, 0.08); }
:root:not([data-tema='oscuro']) .dp-envivo { color: #0b7a5f; }
:root:not([data-tema='oscuro']) .dp-piso { fill: #e9edf7; stroke: rgba(43, 75, 255, 0.25); }
:root:not([data-tema='oscuro']) .dp-grilla { stroke: rgba(43, 75, 255, 0.08); }
:root:not([data-tema='oscuro']) .dp-rotulo { fill: #0b7a5f; }
:root:not([data-tema='oscuro']) .dp-muelle { fill: rgba(20, 199, 154, 0.12); stroke: rgba(11, 122, 95, 0.5); }
:root:not([data-tema='oscuro']) .dp-base { --c: #c9d0e3; }
:root:not([data-tema='oscuro']) .dp-poste { --c: #9aa4c0; }
:root:not([data-tema='oscuro']) .dp-ficha { background: rgba(255, 255, 255, 0.97); border-color: rgba(20, 26, 51, 0.12); color: #141a33; box-shadow: 0 20px 40px -16px rgba(20, 26, 51, 0.35); }
:root:not([data-tema='oscuro']) .dp-ficha-cod { color: #6b7489; }
:root:not([data-tema='oscuro']) .dp-ficha-uds { color: #5b6480; }
:root:not([data-tema='oscuro']) .dp-ficha-uds b { color: #141a33; }
:root:not([data-tema='oscuro']) .dp-aviso { background: rgba(20, 199, 154, 0.12); border-color: rgba(11, 122, 95, 0.3); color: #0b5c48; }
:root:not([data-tema='oscuro']) .dp-pista { color: #2b4bff; }
:root:not([data-tema='oscuro']) .dp-leyenda { color: #5b6480; }

/* ===== Subrayado del título: el mismo degradé azul y verde que el cursor ===== */
.pt-tipeo-texto { background: linear-gradient(90deg, #7b8cff, #2fe0b0) no-repeat 0 92% / 100% 0.11em !important; }
:root:not([data-tema='oscuro']) .pt-tipeo-texto { background: linear-gradient(90deg, #2b4bff, #14c79a) no-repeat 0 92% / 100% 0.11em !important; }
.dp-ficha[hidden] { display: none; }

/* ===== Rendimiento: las secciones que no están en pantalla no se recalculan (sobre todo al cambiar de tema) ===== */
.portada > section:not(.pt-heroe), .portada > footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* Sin letras, sin subrayado: solo aparece cuando hay algo escrito */
.pt-tipeo-texto:empty { background-size: 0 0 !important; padding: 0; min-width: 0; }
