/* ---- Portada pública (portada.js): lo que ve quien entra sin sesión ----
   Colores de la app (cobalto, menta y el azul noche del modo oscuro), títulos en Bricolage Grotesque y capturas reales de la demo. */
.portada { --pt-ancho: 1200px; --pt-linea: var(--perla); --pt-suave: var(--pizarra); --pt-noche: #0b0e1a; --pt-violeta: #7c5cff;
  --pt-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; --pt-titulo: 'Bricolage Grotesque', Manrope, system-ui, sans-serif;
  background: var(--hoja); color: var(--tinta); overflow-x: clip; }
[data-tema='oscuro'] .portada { background: var(--niebla); }
.portada p { max-width: none; }
.portada h1, .portada h2, .portada h3 { color: var(--tinta); font-family: var(--pt-titulo); font-optical-sizing: auto; }
.pt-ancho { width: 100%; max-width: var(--pt-ancho); margin: 0 auto; padding: 0 32px; }
.pt-mono { font-family: var(--pt-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalto); margin: 0; }
[data-tema='oscuro'] .pt-mono { color: var(--cobalto-hondo); }

/* Botones: cobalto como en la app */
.pt-boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 12px; font-weight: 700; font-size: 0.92rem;
  border: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; white-space: nowrap; }
.pt-boton:hover { text-decoration: none; }
.pt-lleno { background: var(--cobalto); color: #fff; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--cobalto) 80%, transparent); }
.pt-lleno:hover { background: var(--cobalto-hondo); color: #fff; transform: translateY(-1px); }
.pt-lleno svg { transition: transform 0.2s ease; }
.pt-lleno:hover svg { transform: translateX(3px); }
.pt-fantasma { color: var(--tinta); border-color: var(--pt-linea); background: transparent; }
.pt-fantasma:hover { border-color: var(--cobalto); color: var(--cobalto); }
.pt-grande { padding: 15px 26px; font-size: 1rem; border-radius: 14px; }

/* Cinta con la oferta, arriba de todo */
.pt-cinta-oferta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; font-size: 0.9rem; color: #fff; text-align: center;
  background: linear-gradient(90deg, var(--cobalto), var(--pt-violeta) 55%, #14c79a); }
.portada a.pt-cinta-oferta, .portada a.pt-cinta-oferta:hover { color: #fff; text-decoration: none; }
.pt-cinta-oferta .pt-mono { color: rgba(255, 255, 255, 0.85); padding: 2px 8px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; font-size: 0.68rem; }
.pt-cinta-pct { font-weight: 800; padding: 1px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); }
.pt-cinta-ver { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Barra: azul noche como la app, siempre */
.pt-nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 14, 26, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); --tinta: #e7eaf4; --pt-linea: rgba(255, 255, 255, 0.14); --pizarra: #8d96ad; --logo-r: #7b8cff; }
.pt-nav-fila { display: flex; align-items: center; gap: 36px; height: 70px; }
.pt-marca { display: inline-flex; }
.pt-marca:hover { text-decoration: none; }
.pt-nav .marca { color: #fff; }
.pt-enlaces { display: flex; gap: 28px; }
.pt-enlaces a { color: #aab2c8; font-weight: 600; font-size: 0.92rem; }
.pt-enlaces a:hover { color: #fff; text-decoration: none; }
.pt-acciones { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pt-nav .boton-tema { background: transparent; border-color: rgba(255, 255, 255, 0.14); color: #aab2c8; }
.pt-nav .boton-tema:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.pt-nav .pt-fantasma { color: #fff; }
.pt-nav .pt-fantasma:hover { border-color: #fff; color: #fff; }

/* Héroe: el fondo de la app (azul noche con luces cobalto, violeta y menta) y las capturas reales */
.pt-heroe { position: relative; isolation: isolate; padding: 72px 0 0; background: var(--pt-noche); color: #e7eaf4; overflow: hidden;
  --tinta: #fff; --pt-linea: rgba(255, 255, 255, 0.16); }
.pt-heroe::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 500px at 10% -5%, rgba(43, 75, 255, 0.55), transparent 65%), radial-gradient(700px 500px at 95% 25%, rgba(124, 92, 255, 0.35), transparent 65%),
    radial-gradient(900px 500px at 70% 110%, rgba(20, 199, 154, 0.28), transparent 65%); }
.pt-heroe::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent); }
.pt-heroe-texto { text-align: center; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pt-chip-oferta { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: #e7eaf4;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); }
.pt-chip-oferta:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.4); }
.pt-chip-oferta b { padding: 3px 10px; border-radius: 999px; background: #14c79a; color: #062c22; font-weight: 800; }
.pt-heroe h1 { font-size: clamp(3rem, 8.2vw, 6.6rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; margin: 26px 0 26px; color: #fff; }
.pt-heroe h1 span { background: linear-gradient(95deg, #7b8cff 0%, #a08bff 40%, #2fe0b0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-bajada { max-width: 640px !important; margin: 0; font-size: 1.15rem; line-height: 1.6; color: #aab2c8; }
.pt-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pt-heroe .pt-ctas { justify-content: center; margin-top: 34px; }
.pt-heroe .pt-fantasma { color: #fff; }
.pt-heroe .pt-fantasma:hover { border-color: #fff; color: #fff; }
.pt-sube { animation: pt-sube 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.pt-heroe h1.pt-sube { animation-delay: 0.06s; }
.pt-heroe .pt-bajada.pt-sube { animation-delay: 0.12s; }
.pt-heroe .pt-ctas.pt-sube { animation-delay: 0.18s; }
.pt-escenario.pt-sube { animation: pt-escenario 1.2s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pt-sube { from { opacity: 0; transform: translateY(18px); } }
@keyframes pt-escenario { from { opacity: 0; transform: translateY(60px); } }

/* Ventana del navegador con una captura */
.pt-navegador { border-radius: 14px; overflow: hidden; background: #121627; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 100px -40px rgba(5, 8, 20, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.2); }
.pt-navegador-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0f1322; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.pt-navegador-barra i { width: 10px; height: 10px; border-radius: 50%; background: #2a3150; }
.pt-navegador-barra span { margin: 0 auto; padding: 3px 16px; border-radius: 999px; background: #1a2034; color: #8d96ad; font-size: 0.72rem; }
.pt-navegador img { display: block; width: 100%; height: auto; }

.pt-escenario { position: relative; margin: 64px auto 0; max-width: 1100px; padding-bottom: 0; }
.pt-escenario-principal { transform: perspective(2200px) rotateX(10deg); transform-origin: 50% 100%; margin-bottom: -60px;
  box-shadow: 0 -20px 120px -30px rgba(95, 116, 255, 0.55), 0 60px 120px -40px rgba(0, 0, 0, 0.9); }
.pt-celular { position: absolute; right: -24px; bottom: -10px; width: 22%; min-width: 150px; padding: 8px; border-radius: 34px; background: #05070f; border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(20, 199, 154, 0.5); animation: pt-flota 7s 1.5s ease-in-out infinite; }
.pt-celular img { display: block; width: 100%; height: auto; border-radius: 27px; aspect-ratio: 600 / 1100; object-fit: cover; object-position: top; }
.pt-flotante { position: absolute; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 16px; text-align: left;
  background: rgba(18, 22, 39, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); color: #e7eaf4; }
.pt-flotante b { display: block; font-size: 0.9rem; }
.pt-flotante small { color: #8d96ad; font-size: 0.78rem; }
.pt-flotante-icono { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.pt-flotante-icono.pt-ok { background: rgba(20, 199, 154, 0.18); color: #2fe0b0; }
.pt-flotante-a { left: -36px; top: 22%; animation: pt-aparece-flot 0.7s 1.3s cubic-bezier(0.22, 1, 0.36, 1) both, pt-flota 6s 2s ease-in-out infinite; }
.pt-flotante-b { left: 8%; bottom: 14%; animation: pt-aparece-flot 0.7s 1.8s cubic-bezier(0.22, 1, 0.36, 1) both, pt-flota 6.5s 2.5s ease-in-out infinite; }
@keyframes pt-aparece-flot { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes pt-flota { 50% { transform: translateY(-8px); } }

/* Conexiones */
.pt-conexiones { padding: 110px 0 24px; text-align: center; }
.pt-conexiones .pt-mono { color: var(--pt-suave); margin-bottom: 22px; }
.pt-conexiones ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.pt-conexiones li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: var(--pt-suave); }
.pt-conexiones img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s ease, opacity 0.2s ease; }
.pt-conexiones li:hover img { filter: none; opacity: 1; }

/* Secciones */
.pt-seccion { padding: 112px 0; }
.pt-borde { border-top: 1px solid var(--pt-linea); }
.pt-encabezado { max-width: 640px; margin-bottom: 52px; }
.pt-centrado { margin-inline: auto; text-align: center; }
.pt-encabezado h2, .pt-final h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; margin: 14px 0 18px; }
.pt-encabezado > p:last-child { margin: 0; color: var(--pt-suave); font-size: 1.1rem; line-height: 1.65; }
.pt-par { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pt-par .pt-encabezado { margin-bottom: 0; }
.pt-invertido > :first-child { order: 2; }
.pt-dos-col { padding-top: 24px; }

/* Vitrina: logística en 3D, a todo lo ancho sobre azul noche */
.pt-vitrina { position: relative; isolation: isolate; padding: 112px 0 96px; background: var(--pt-noche); color: #e7eaf4; overflow: hidden;
  --tinta: #fff; --pt-linea: rgba(255, 255, 255, 0.12); --pt-suave: #8d96ad; }
.pt-vitrina::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 500px at 80% 60%, rgba(43, 75, 255, 0.35), transparent 65%), radial-gradient(700px 400px at 10% 100%, rgba(20, 199, 154, 0.2), transparent 65%); }
.pt-vitrina .pt-mono, .pt-oscuro .pt-mono { color: #2fe0b0; }
.pt-vitrina-img { box-shadow: 0 0 0 1px rgba(95, 116, 255, 0.25), 0 60px 140px -40px rgba(43, 75, 255, 0.6); }
.pt-cifras-fila { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; }
.pt-cifras-fila > div { padding: 8px 24px 8px 0; display: grid; gap: 10px; }
.pt-cifras-fila > div + div { padding-left: 24px; border-left: 1px solid var(--pt-linea); }
.pt-cifras-fila b { font-family: var(--pt-titulo); font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.pt-cifras-fila span { color: #8d96ad; font-size: 0.95rem; line-height: 1.45; }

/* Recorrido por la app */
.pt-galeria-pestanas { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 16px; background: var(--niebla); border: 1px solid var(--pt-linea); width: fit-content; }
[data-tema='oscuro'] .pt-galeria-pestanas { background: var(--hoja); }
.pt-galeria-pestanas button { border: 0; background: transparent; padding: 10px 16px; border-radius: 11px; font-weight: 700; font-size: 0.9rem; color: var(--pt-suave); }
.pt-galeria-pestanas button:hover { background: transparent; color: var(--tinta); }
.pt-galeria-pestanas button.activo { background: var(--cobalto); color: #fff; box-shadow: 0 8px 20px -10px var(--cobalto); }
.pt-galeria-texto { margin: 22px 0 28px; color: var(--pt-suave); font-size: 1.05rem; min-height: 1.6em; }
.pt-galeria-fotos { display: grid; }
.pt-galeria-foto { grid-area: 1 / 1; opacity: 0; transform: translateY(14px) scale(0.99); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.pt-galeria-foto.activa { opacity: 1; transform: none; pointer-events: auto; }

/* Lectura: documento con sus datos marcados */
.pt-doc-envoltura { position: relative; padding: 40px; border-radius: 28px; display: grid; gap: 28px;
  background: radial-gradient(400px 300px at 0% 0%, color-mix(in srgb, var(--cobalto) 14%, transparent), transparent 70%), var(--niebla); border: 1px solid var(--pt-linea); }
[data-tema='oscuro'] .pt-doc-envoltura { background: radial-gradient(400px 300px at 0% 0%, color-mix(in srgb, var(--cobalto) 18%, transparent), transparent 70%), var(--hoja); }
/* Animación del producto: entrada → lectura → resultado */
.pt-flujo { border: 1px solid var(--pt-linea); border-radius: 24px; background: var(--niebla); overflow: hidden; }
[data-tema='oscuro'] .pt-flujo { background: var(--hoja); }
.pt-flujo-escena { display: grid; grid-template-columns: 0.85fr 1fr 1.45fr; min-height: 380px; }
.pt-col { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.pt-col + .pt-col { border-left: 1px solid var(--pt-linea); }
/* Conector entre columnas: un punto que viaja */
.pt-col + .pt-col::before { content: ''; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--hoja); border: 1px solid var(--pt-linea); }
.pt-col + .pt-col::after { content: ''; position: absolute; left: -3px; top: calc(50% + 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--cobalto); opacity: 0; }
.corre .pt-col-lectura::after { animation: pt-pulso 0.6s 0.55s ease-out both; }
.corre .pt-col-salida::after { animation: pt-pulso 0.6s 2.2s ease-out both; }
@keyframes pt-pulso { 0% { opacity: 0; transform: scale(0.4); } 40% { opacity: 1; transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }

.pt-mensaje { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--hoja); border: 1px solid var(--pt-linea); }
[data-tema='oscuro'] .pt-mensaje { background: var(--niebla); }
.pt-mensaje-canal { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--pt-linea); }
.pt-mensaje-canal img { object-fit: contain; }
.pt-mensaje b { display: block; font-size: 0.92rem; }
.pt-mensaje small { display: block; color: var(--pt-suave); font-size: 0.8rem; font-family: var(--pt-mono); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.corre .pt-mensaje { animation: pt-entra 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pt-entra { from { opacity: 0; transform: translateY(-14px); } }

.pt-hoja { position: relative; flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 22px 20px; border-radius: 12px; background: var(--hoja); border: 1px solid var(--pt-linea); overflow: hidden;
  box-shadow: 0 1px 0 var(--pt-linea), 0 24px 40px -28px rgba(20, 26, 51, 0.35); }
[data-tema='oscuro'] .pt-hoja { background: var(--niebla); }
.pt-renglon { display: block; height: 6px; border-radius: 3px; background: var(--perla); }
.w35 { width: 35%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; }
.pt-campo { align-self: flex-start; padding: 3px 8px; border-radius: 6px; font-family: var(--pt-mono); font-size: 0.72rem; color: var(--pt-suave); background: var(--perla-suave); border: 1px solid transparent; }
.corre .pt-campo { animation: pt-marca 0.4s calc(1s + var(--i) * 0.35s) ease-out both; }
@keyframes pt-marca { from { color: var(--pt-suave); background: var(--perla-suave); border-color: transparent; }
  to { color: var(--cobalto); background: var(--cobalto-suave); border-color: color-mix(in srgb, var(--cobalto) 40%, transparent); } }
.pt-campo { color: var(--cobalto); background: var(--cobalto-suave); border-color: color-mix(in srgb, var(--cobalto) 40%, transparent); }
.pt-escaner { position: absolute; left: 0; right: 0; top: 0; height: 40px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--cobalto) 14%, transparent) 85%, var(--cobalto) 100%); background-size: 100% 100%; }
.corre .pt-escaner { animation: pt-escanea 1.5s 0.7s cubic-bezier(0.45, 0, 0.55, 1) both; }
@keyframes pt-escanea { 0% { opacity: 1; transform: translateY(-40px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(300px); } }
.pt-tipo { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 0.92rem; }
.pt-tipo span { width: 8px; height: 8px; border-radius: 50%; background: var(--menta); }
.corre .pt-tipo { animation: pt-aparecer 0.4s 2.1s ease-out both; }
@keyframes pt-aparecer { from { opacity: 0; } }

.pt-tabla { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.pt-tabla th { background: transparent; text-align: left; font-family: var(--pt-mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pt-suave); padding: 0 8px 10px 0; border-bottom: 1px solid var(--pt-linea); }
.pt-tabla td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--pt-linea); font-variant-numeric: tabular-nums; white-space: nowrap; height: 20px; }
.pt-tabla td:first-child { white-space: normal; font-weight: 600; }
.pt-tabla td:nth-child(2) { color: var(--pt-suave); }
.pt-tabla td.sube, .pt-tabla td.baja { text-align: right; font-family: var(--pt-mono); font-size: 0.78rem; font-weight: 500; }
.pt-tabla td.sube { color: var(--cobalto); } .pt-tabla td.baja { color: var(--menta-texto); }
.corre .pt-tabla tbody tr { animation: pt-fila 0.45s calc(2.3s + var(--i) * 0.14s) cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pt-fila { from { opacity: 0; transform: translateX(10px); } }
.pt-resumen { margin: auto 0 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--hoja); border: 1px solid var(--pt-linea); font-size: 0.86rem; }
[data-tema='oscuro'] .pt-resumen { background: var(--niebla); }
.pt-resumen b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--menta); }
.pt-resumen span { color: var(--pt-suave); }
.corre .pt-resumen { animation: pt-sube 0.5s 3s cubic-bezier(0.22, 1, 0.36, 1) both; }

.pt-flujo-pasos { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--pt-linea); }
.pt-flujo-pasos button { position: relative; border: 0; border-radius: 0; background: transparent; padding: 16px 20px; font-weight: 600; font-size: 0.86rem; color: var(--pt-suave); justify-content: flex-start; }
.pt-flujo-pasos button + button { border-left: 1px solid var(--pt-linea); }
.pt-flujo-pasos button:hover { background: transparent; color: var(--tinta); }
.pt-flujo-pasos button.activo { color: var(--tinta); }
.pt-flujo-pasos button span { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--tinta); }
.pt-flujo-pasos button.activo span { width: 100%; animation: pt-avance 6.5s linear both; }
@keyframes pt-avance { from { width: 0; } }


/* 01 — Lectura: el documento con sus datos marcados */
.pt-doc { padding: 32px; background: #fff; color: #141a33; border-radius: 6px; box-shadow: 0 1px 2px rgba(20, 26, 51, 0.08), 0 30px 60px -30px rgba(20, 26, 51, 0.35); transform: rotate(-1.2deg); display: grid; gap: 22px; font-size: 0.8rem; }
.pt-doc-cab { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 2px solid #141a33; }
.pt-doc-cab span, .pt-doc-fila, .pt-doc-total { font-family: var(--pt-mono); }
.pt-doc-fila { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pt-doc-tabla { display: grid; gap: 10px; }
.pt-doc-tabla i { display: block; height: 7px; border-radius: 2px; background: #e6eaf2; }
.pt-doc-tabla i:nth-child(odd) { width: 88%; } .pt-doc-tabla i:nth-child(3) { width: 70%; }
.pt-doc-total { text-align: right; font-weight: 500; }
.pt-marco { position: relative; display: inline-block; padding: 3px 6px; outline: 1.5px solid #2b4bff; outline-offset: 2px; border-radius: 3px; background: rgba(43, 75, 255, 0.06); }
.pt-marco::before { content: attr(data-n); position: absolute; top: -12px; left: -12px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #2b4bff; color: #fff; font: 600 0.65rem/1 var(--pt-mono); }
.pt-datos { list-style: none; margin: 0; padding: 0; display: grid; }
.pt-datos li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--pt-linea); }
.pt-datos li:first-child { border-top: 1px solid var(--pt-linea); }
.pt-datos li > span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalto); color: #fff; font: 600 0.7rem/1 var(--pt-mono); margin-top: 2px; }
.pt-datos small { display: block; font-family: var(--pt-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pt-suave); margin-bottom: 4px; }
.pt-datos b { font-size: 1rem; }
.pt-doc-envoltura.visto .pt-datos li { animation: pt-fila 0.5s calc(0.3s + var(--n, 0) * 0.15s) cubic-bezier(0.22, 1, 0.36, 1) both; }
.pt-datos li:nth-child(2) { --n: 1; } .pt-datos li:nth-child(3) { --n: 2; } .pt-datos li:nth-child(4) { --n: 3; }

/* 02 — Precios: aprobación por WhatsApp */
.pt-telefono { justify-self: center; width: min(380px, 100%); padding: 18px; border-radius: 32px; border: 1px solid var(--pt-linea); background: var(--niebla); display: grid; gap: 10px; }
[data-tema='oscuro'] .pt-telefono { background: var(--hoja); }
.pt-tel-cab { display: flex; gap: 10px; align-items: center; padding: 4px 4px 12px; border-bottom: 1px solid var(--pt-linea); margin-bottom: 6px; }
.pt-tel-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tinta); color: var(--hoja); font-weight: 800; }
.pt-tel-cab b { display: block; font-size: 0.92rem; } .pt-tel-cab small { color: var(--menta-texto); font-size: 0.76rem; }
.pt-burbuja { position: relative; justify-self: start; max-width: 88%; padding: 10px 14px 20px; border-radius: 4px 16px 16px 16px; background: var(--hoja); border: 1px solid var(--pt-linea); font-size: 0.88rem; line-height: 1.45; }
[data-tema='oscuro'] .pt-burbuja { background: var(--niebla); }
.pt-burbuja s { color: var(--pt-suave); }
.pt-burbuja.pt-yo { justify-self: end; border-radius: 16px 4px 16px 16px; background: var(--cobalto); border-color: var(--cobalto); color: #fff; font-weight: 600; }
.pt-burbuja.pt-yo .pt-hora { color: rgba(255, 255, 255, 0.75); }
.pt-hora { position: absolute; right: 10px; bottom: 4px; font-size: 0.66rem; color: var(--pt-suave); font-family: var(--pt-mono); }
.pt-tel-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 88%; }
.pt-tel-botones span { padding: 9px; text-align: center; border-radius: 10px; background: var(--hoja); border: 1px solid var(--pt-linea); color: var(--cobalto); font-weight: 700; font-size: 0.84rem; }
[data-tema='oscuro'] .pt-tel-botones span { background: var(--niebla); }
.pt-telefono.visto > :nth-child(n + 2) { animation: pt-sube 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.pt-telefono.visto > :nth-child(3) { animation-delay: 0.3s; }
.pt-telefono.visto > :nth-child(4) { animation-delay: 1s; }
.pt-telefono.visto > :nth-child(5) { animation-delay: 1.7s; }


/* 05 — Antes y después: bloque oscuro en los dos modos */
.pt-oscuro { --pt-linea: rgba(255, 255, 255, 0.12); --pt-suave: #8d96ad; background: #0b0e1a; color: #e7eaf4; }
[data-tema='oscuro'] .pt-oscuro { background: #05070f; }
.pt-oscuro h2 { color: #fff !important; }
.pt-antes-despues { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--pt-linea); }
.pt-antes-despues > div { padding: 36px 40px 0 0; }
.pt-antes-despues > div + div { padding-left: 40px; border-left: 1px solid var(--pt-linea); }
.pt-antes-despues ol { list-style: none; counter-reset: paso; margin: 24px 0 36px; padding: 0; display: grid; gap: 14px; }
.pt-antes-despues li { counter-increment: paso; display: flex; gap: 16px; font-size: 1.05rem; line-height: 1.45; }
.pt-antes-despues li::before { content: counter(paso, decimal-leading-zero); font-family: var(--pt-mono); font-size: 0.78rem; color: var(--pt-suave); padding-top: 4px; }
.pt-antes-despues > div:first-child li { color: #8d96ad; }
.pt-veredicto { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; color: #5b6480; }
.pt-veredicto.pt-acento { color: #fff; }
.pt-veredicto.pt-acento::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 10px; border-radius: 50%; background: var(--menta); }

/* 06 — Preguntas */
.pt-faq-grilla { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.pt-faq { border-top: 1px solid var(--pt-linea); }
.pt-faq details { border-bottom: 1px solid var(--pt-linea); }
.pt-faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::before, .pt-faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 14px; height: 1.5px; background: var(--tinta); transition: transform 0.25s ease; }
.pt-faq summary::after { transform: rotate(90deg); }
.pt-faq details[open] summary::after { transform: rotate(0deg); }
.pt-faq details p { margin: 0; padding: 0 44px 24px 0; color: var(--pt-suave); line-height: 1.65; }

/* Planes */
.pt-planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pt-plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 24px; border: 1px solid var(--pt-linea); background: var(--hoja); }
[data-tema='oscuro'] .pt-plan { background: var(--hoja); }
.pt-plan h3 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.pt-plan-para { margin: 6px 0 24px; color: var(--pt-suave); }
.pt-precio { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pt-precio b { font-family: var(--pt-titulo); font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pt-precio span { color: var(--pt-suave); font-weight: 600; }
.pt-precio s { width: 100%; color: var(--pt-suave); font-size: 1rem; }
.pt-precio-nota { margin: 8px 0 24px; color: var(--pt-suave); font-size: 0.86rem; min-height: 2.6em; }
.pt-plan > .pt-boton { width: 100%; }
.pt-plan ul { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--pt-linea); display: grid; gap: 12px; }
.pt-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; line-height: 1.4; }
.pt-plan li svg { flex: none; margin-top: 2px; color: var(--menta-texto); }
.pt-plan-destacado { background: var(--pt-noche) !important; color: #e7eaf4; border-color: transparent; transform: translateY(-12px);
  box-shadow: 0 0 0 1px rgba(95, 116, 255, 0.5), 0 40px 80px -30px rgba(43, 75, 255, 0.55); --tinta: #fff; --pt-suave: #8d96ad; --pt-linea: rgba(255, 255, 255, 0.12);
  background-image: radial-gradient(400px 260px at 100% 0%, rgba(43, 75, 255, 0.45), transparent 70%), radial-gradient(300px 200px at 0% 100%, rgba(20, 199, 154, 0.2), transparent 70%) !important; }
.pt-plan-destacado.pt-aparece.visto { transform: translateY(-12px); }
.pt-plan-destacado li svg { color: #2fe0b0; }
.pt-plan-sello { position: absolute; top: -13px; left: 32px; padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; color: #062c22; background: #2fe0b0; }

/* Cierre y pie */
.pt-final { padding: 24px 0 112px; }
.pt-final-caja { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 88px 32px; border-radius: 32px; background: var(--pt-noche); color: #e7eaf4; --tinta: #fff; --pt-linea: rgba(255, 255, 255, 0.2); }
.pt-final-caja::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 360px at 15% 0%, rgba(43, 75, 255, 0.6), transparent 70%), radial-gradient(500px 320px at 90% 100%, rgba(20, 199, 154, 0.35), transparent 70%); }
.pt-final h2 { max-width: 780px; margin: 0 auto 16px; color: #fff; }
.pt-final-caja > p { margin: 0 0 32px; color: #aab2c8; font-size: 1.1rem; }
.pt-final-caja .pt-ctas { justify-content: center; }
.pt-final-caja .pt-fantasma { color: #fff; }
.pt-pie { padding: 28px 0 40px; border-top: 1px solid var(--pt-linea); }
.pt-pie-fila { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pt-pie p { margin: 0 auto 0 0; color: var(--pt-suave); font-size: 0.9rem; }
.pt-pie a { color: var(--tinta); font-weight: 600; }

/* Aparecer al bajar */
.pt-aparece { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.pt-aparece.visto { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1000px) {
  .pt-enlaces { display: none; }
  .pt-flujo-escena { grid-template-columns: 1fr 1fr; }
  .pt-col-salida { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--pt-linea); }
  .pt-col-salida::before, .pt-col-salida::after { display: none; }
  .pt-par, .pt-faq-grilla { grid-template-columns: 1fr; gap: 48px; }
  .pt-invertido > :first-child { order: 0; }
  .pt-planes { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 28px; }
  .pt-plan-destacado, .pt-plan-destacado.pt-aparece.visto { transform: none; }
  .pt-cifras-fila { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .pt-cifras-fila > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pt-flotante-a { left: 8px; }
  .pt-celular { right: 8px; }
}
/* Celular */
@media (max-width: 640px) {
  .pt-ancho { padding: 0 16px; }
  .pt-cinta-oferta { font-size: 0.82rem; gap: 6px; }
  .pt-cinta-oferta .pt-mono, .pt-cinta-pct { display: none; }
  .pt-nav-fila { height: 60px; gap: 12px; }
  .pt-solo-ancho { display: none !important; }
  .pt-heroe { padding-top: 40px; }
  .pt-heroe h1 { font-size: 3rem; margin: 20px 0; }
  .pt-bajada { font-size: 1.02rem; }
  .pt-ctas { width: 100%; }
  .pt-ctas .pt-boton { flex: 1 1 100%; }
  .pt-escenario { margin-top: 44px; }
  /* En el celular se muestra la app del celular, grande y al centro */
  .pt-heroe { padding-bottom: 0; }
  .pt-escenario-principal { display: none; }
  .pt-celular { position: relative; right: auto; bottom: auto; width: 74%; margin: 0 auto -40px; border-radius: 40px; padding: 8px; }
  .pt-celular img { border-radius: 32px; }
  .pt-flotante { padding: 9px 12px 9px 9px; z-index: 2; }
  .pt-flotante b { font-size: 0.8rem; } .pt-flotante small { font-size: 0.7rem; }
  .pt-flotante-a { left: 0; top: 16%; }
  .pt-flotante-b { left: auto; right: 0; bottom: 26%; }
  .pt-conexiones { padding-top: 72px; }
  .pt-conexiones ul { gap: 12px 20px; }
  .pt-flujo { border-radius: 18px; }
  .pt-flujo-escena { grid-template-columns: 1fr; min-height: 0; }
  .pt-col { padding: 20px; }
  .pt-col + .pt-col { border-left: 0; border-top: 1px solid var(--pt-linea); }
  .pt-col + .pt-col::before { left: 50%; top: -5px; margin-left: -4px; }
  .pt-col + .pt-col::after { left: 50%; top: -3px; margin-left: -2px; }
  .pt-hoja { min-height: 170px; }
  .pt-tabla td:nth-child(2), .pt-tabla th:nth-child(2) { display: none; }
  .pt-flujo-pasos button { padding: 14px 10px; font-size: 0.76rem; }
  .pt-seccion, .pt-vitrina { padding: 72px 0; }
  .pt-dos-col { padding-top: 8px; }
  .pt-encabezado { margin-bottom: 32px; }
  .pt-cifras-fila { margin-top: 48px; }
  .pt-cifras-fila > div { padding-right: 12px; }
  .pt-cifras-fila > div + div { padding-left: 16px; }
  .pt-galeria-pestanas { width: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pt-galeria-pestanas button { flex: none; }
  .pt-galeria-fotos .pt-navegador-barra { display: none; }
  .pt-doc-envoltura { padding: 20px; }
  .pt-doc { padding: 20px; transform: none; font-size: 0.72rem; }
  .pt-antes-despues { grid-template-columns: 1fr; }
  .pt-antes-despues > div { padding: 28px 0 0; }
  .pt-antes-despues > div + div { padding-left: 0; border-left: 0; margin-top: 32px; border-top: 1px solid var(--pt-linea); }
  .pt-plan { padding: 26px 22px; }
  .pt-final-caja { padding: 56px 20px; border-radius: 24px; }
  .pt-final { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .portada *, .portada *::before, .portada *::after { animation: none !important; transition: none !important; }
  .pt-aparece { opacity: 1; transform: none; }
}

/* Ingreso: volver a la portada */
.ingreso-volver { display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--pizarra); font-weight: 600; font-size: 0.9rem; }
.ingreso-volver:hover { color: var(--tinta); text-decoration: none; }
