/* Sitio público de TagFlow. Paleta «Alba» (la misma de la app, 2026-10-22): blanco cálido, cristal marino apagado y texto en verde petróleo.
   Brillos suaves con sombras teñidas de menta y un resplandor tenue en la portada; nada de neón. Tipografía del sistema: no depende de
   ningún servicio externo y carga al instante. Sin estilos en línea (la CSP de www. no los deja pasar): todo vive en este archivo. */
:root {
  color-scheme: light;
  --navy: #17353C; --navy-d: #0F2A30; --on-navy: #FFFFFF; --on-navy-muted: #C4DADD;
  --mint: #7ED3C6; --mint-d: #2A9488; --mint-txt: #1E766C; --mint-trazo: #4DB6AC; --on-mint: #0E2F2B; --mint-bg: #E9F6F3; --mint-hover: #92DDD1;
  --ink: #17353C; --muted: #4F6B70; --line: #E3EEEA;
  --bg: #FFFCF7; --card: #FFFFFF; --card2: #F6FAF8;
  --champan: #F7EBCB; --amber: #8A5A00; --amber-bg: #FFF1D3;
  --radio: 12px; --radio-lg: 20px;
  --sombra: 0 14px 40px -14px rgba(42, 148, 136, .28);
  --sombra-card: 0 2px 4px rgba(23, 53, 60, .04), 0 12px 28px -16px rgba(42, 148, 136, .30);
  --sombra-flotante: 0 24px 56px -20px rgba(23, 53, 60, .30);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint-txt); }
:focus-visible { outline: 3px solid var(--mint-trazo); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.salto { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 30; font-weight: 700; }
.salto:focus { left: 8px; }

.contenedor { width: min(1160px, 100% - 32px); margin-inline: auto; }
.contenedor.angosto { width: min(820px, 100% - 32px); }

/* ---- encabezado (claro, de cristal) ---- */
.cabecera { background: rgba(255, 252, 247, .88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px -16px rgba(42, 148, 136, .35); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 23px; text-decoration: none; letter-spacing: .005em; }
.marca img { display: block; }
.marca .nombre span { color: var(--mint-d); }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a.enlace { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.menu a.enlace:hover { color: var(--navy); border-bottom-color: var(--mint); }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  background: var(--mint); color: var(--on-mint); border: 0; border-radius: var(--radio); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(42, 148, 136, .65); transition: background .15s, transform .15s, box-shadow .15s;
}
.boton:hover { background: var(--mint-hover); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(42, 148, 136, .7); }
.boton.navy { background: var(--navy); color: var(--on-navy); box-shadow: none; }
.boton.navy:hover { background: #24505a; }
.boton.claro { background: #fff; color: var(--navy); border: 1.5px solid var(--mint-trazo); box-shadow: none; }
.boton.claro:hover { background: var(--mint-bg); }
.o { text-align: center; color: var(--muted); margin: 14px 0 10px; }
.boton.grande { min-height: 54px; padding: 0 30px; font-size: 17px; }
.boton.inactivo { background: var(--card2); color: var(--muted); border: 1.5px dashed var(--line); box-shadow: none; cursor: default; }
.boton.inactivo:hover { transform: none; background: var(--card2); box-shadow: none; }

/* ---- portada con resplandor ---- */
.portada { position: relative; background: radial-gradient(60% 70% at 85% 20%, rgba(126, 211, 198, .32) 0%, rgba(126, 211, 198, 0) 70%), radial-gradient(45% 55% at 5% 100%, rgba(247, 235, 203, .9) 0%, rgba(247, 235, 203, 0) 70%), var(--bg); border-bottom: 1px solid var(--line); padding: 72px 0 88px; overflow: hidden; }
.portada-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
.etiqueta { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--mint-txt); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; margin-bottom: 20px; box-shadow: var(--sombra-card); }
.portada h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.07; margin: 0 0 20px; color: var(--navy); letter-spacing: -.015em; }
.portada-texto > p { font-size: 19px; color: var(--muted); max-width: 54ch; margin: 0 0 30px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.garantias { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.garantias li::before { content: "✓"; color: var(--mint-d); font-weight: 800; margin-right: 8px; }

/* Maquetas del producto: laptop de packing detrás y tableta de picking al frente. Son ilustraciones, no capturas con datos reales. */
.vitrina { position: relative; min-height: 340px; }
.laptop { width: 88%; }
.laptop-pantalla { background: var(--bg); border: 8px solid #1F3F46; border-bottom-width: 12px; border-radius: 16px 16px 4px 4px; padding: 12px; box-shadow: var(--sombra-flotante); }
.laptop-base { height: 12px; background: #CFE0DD; border-radius: 0 0 16px 16px; margin: 0 -4%; }
.m-tabs { display: flex; gap: 6px; margin-bottom: 10px; font-size: 11px; font-weight: 700; }
.m-tabs span { flex: 1; text-align: center; padding: 7px; border-radius: 8px; background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.m-tabs span.on { background: var(--mint); color: var(--on-mint); border-color: var(--mint); }
.m-contadores { display: flex; gap: 8px; margin-bottom: 10px; }
.m-contadores div { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; }
.m-contadores b { display: block; font-size: 24px; line-height: 1.1; color: var(--mint-txt); }
.m-contadores small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.m-contadores .pend { background: var(--champan); border-color: #E9D6A0; }
.m-contadores .pend b { color: var(--amber); }
.m-fila { display: flex; justify-content: space-between; gap: 8px; background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; margin-top: 6px; font-size: 11px; }
.m-fila span { color: var(--muted); }

.tableta { position: absolute; right: 0; bottom: -28px; width: 62%; }
.tableta-pantalla { background: var(--bg); border: 9px solid #12292E; border-radius: 24px; box-shadow: var(--sombra-flotante), 0 0 0 1px rgba(0, 0, 0, .15); overflow: hidden; }
.m-barra { background: var(--card); color: var(--navy); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; padding: 7px 10px; }
.m-picking { display: grid; grid-template-columns: 38% 1fr; gap: 8px; padding: 10px; }
.m-foto { background: #fff; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--muted); min-height: 96px; }
.m-info { display: grid; gap: 6px; align-content: start; }
.m-ubic { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.m-ubic small { display: block; font-size: 8px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.m-ubic b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--mint-txt); }
.m-cant { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; }
.m-cajon { background: var(--mint); color: var(--on-mint); border-radius: 6px; font-weight: 800; font-size: 11px; padding: 6px 7px; }
.m-cant b { font-size: 20px; color: var(--mint-txt); }
.m-cant i { font-size: 11px; font-weight: 800; color: var(--mint-txt); }
.m-boton { background: var(--mint); color: var(--on-mint); border-radius: 10px; text-align: center; font-weight: 800; font-size: 14px; padding: 10px 6px; }

/* ---- franja de confianza ---- */
.confianza { background: var(--champan); border-bottom: 1px solid #EBDDB2; padding: 28px 0; }
.confianza .contenedor { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.sello { background: var(--navy); color: #fff; font-weight: 800; padding: 7px 16px; border-radius: 99px; white-space: nowrap; }
.confianza p { margin: 0; flex: 1 1 320px; color: #4A4630; font-size: 17px; }
.confianza strong { color: var(--navy); }

/* ---- secciones ---- */
.seccion { padding: 76px 0; }
.seccion.alterna { background: #fff; border-block: 1px solid var(--line); }
.sobretitulo { display: inline-block; color: var(--mint-txt); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.seccion h2 { font-size: clamp(27px, 3.6vw, 36px); line-height: 1.15; color: var(--navy); margin: 0 0 10px; letter-spacing: -.01em; }
.seccion > .contenedor > p.sub { color: var(--muted); margin: 0 0 34px; max-width: 64ch; font-size: 18px; }

.rejilla { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tarjeta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radio-lg); padding: 24px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--sombra-card); }
.tarjeta h3 { margin: 0; font-size: 21px; color: var(--navy); }
.tarjeta p { margin: 0; color: var(--muted); }
.tarjeta .boton { margin-top: auto; }
.enlace-flecha { margin-top: auto; padding-top: 6px; font-weight: 800; text-decoration: none; }
.enlace-flecha:hover { text-decoration: underline; }
.insignia { align-self: flex-start; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 11px; border-radius: 99px; background: var(--mint-bg); color: var(--mint-txt); }
.insignia.pronto { background: var(--amber-bg); color: var(--amber); }
.tarjeta.manual { border-style: dashed; box-shadow: none; }

/* ---- beneficios ---- */
.rejilla.cuatro { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.beneficio { background: var(--card); border: 1px solid var(--line); border-radius: var(--radio-lg); padding: 26px; box-shadow: var(--sombra-card); }
.beneficio h3 { margin: 16px 0 6px; font-size: 19px; color: var(--navy); }
.beneficio p { margin: 0; color: var(--muted); }
.icono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mint-bg); color: var(--mint-txt); box-shadow: inset 0 0 0 1px rgba(77, 182, 172, .25); }

/* ---- funciones especiales ---- */
.rejilla.funciones { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.funcion { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radio-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.funcion:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: var(--mint-trazo); }
.funcion-cabeza { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.funcion h3 { margin: 6px 0 0; font-size: 20px; color: var(--navy); }
.funcion p { margin: 0; color: var(--muted); }

/* ---- flujo ---- */
.flujo { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); position: relative; }
.flujo li { counter-increment: paso; background: var(--card); border: 1px solid var(--line); border-radius: var(--radio-lg); padding: 74px 22px 22px; position: relative; display: grid; gap: 6px; align-content: start; box-shadow: var(--sombra-card); }
.flujo li::before {
  content: counter(paso); position: absolute; left: 22px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--mint); color: var(--on-mint); display: grid; place-items: center; font-weight: 800; font-size: 19px; box-shadow: 0 8px 18px -8px rgba(42, 148, 136, .7);
}
.flujo strong { color: var(--navy); font-size: 20px; }
.flujo span { color: var(--muted); }

/* ---- planes y tarifas ---- */
.planes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radio-lg); padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.plan h3 { margin: 6px 0 0; font-size: 24px; color: var(--navy); }
.plan-para { margin: 0; color: var(--muted); }
.plan-precio { margin: 8px 0 6px; padding: 14px 0; border-block: 1px dashed var(--line); }
.plan-precio span { font-size: 22px; font-weight: 800; color: var(--navy); }
.plan-lista { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; color: var(--ink); }
.plan-lista li { position: relative; padding-left: 28px; }
.plan-lista li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-bg); color: var(--mint-txt); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.plan-boton { margin-top: auto; width: 100%; }
.plan.destacado { background: #fff; border: 2px solid var(--mint-trazo); box-shadow: var(--sombra); }
.plan-cinta { position: absolute; top: -14px; right: 22px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 99px; }
.nota-planes { margin: 28px 0 0; color: var(--muted); text-align: center; }

/* ---- preguntas ---- */
.faq { margin-top: 22px; display: grid; gap: 10px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; transition: border-color .15s; }
.faq details[open] { border-color: var(--mint-trazo); background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--mint-txt); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---- llamado final ---- */
.cta-final { background: radial-gradient(55% 120% at 50% 0%, rgba(126, 211, 198, .35) 0%, rgba(126, 211, 198, 0) 70%), var(--mint-bg); border-top: 1px solid var(--line); text-align: center; padding: 76px 0; }
.cta-final h2 { margin: 0 0 8px; font-size: clamp(27px, 3.6vw, 36px); color: var(--navy); }
.cta-final p { margin: 0 0 26px; color: var(--muted); font-size: 18px; }

/* ---- pie ---- */
.pie { background: var(--navy); color: var(--on-navy-muted); padding: 48px 0 28px; font-size: 15px; }
.pie-grid { display: grid; gap: 28px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.pie .marca { font-size: 22px; color: #fff; }
.pie .marca .nombre span { color: var(--mint); }
.pie .marca img { background: #fff; border-radius: 10px; padding: 3px; }
.pie-texto { margin: 10px 0 0; max-width: 34ch; }
.pie nav { display: grid; gap: 8px; align-content: start; }
.pie nav strong { color: #fff; margin-bottom: 4px; }
.pie a:not(.marca) { color: var(--on-navy-muted); text-decoration: none; }
.pie a:not(.marca):hover { color: #fff; text-decoration: underline; }
.pie-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 18px; font-size: 14px; }
.fundador { color: var(--mint); font-weight: 700; }

/* ---- página de ingreso ---- */
/* Una sola columna angosta centrada: título, formulario, equipos con PIN y aviso. */
.ingreso { padding: 56px 0 24px; }
.ingreso .contenedor { width: min(480px, 100% - 32px); text-align: center; }
.ingreso h1 { color: var(--navy); font-size: 32px; margin: 0 0 8px; }
.ingreso p.sub { color: var(--muted); margin: 0 0 28px; }
.aviso { background: var(--amber-bg); color: #5c3a00; border-radius: 12px; padding: 14px 16px; margin-top: 24px; }

.panel-ingreso { background: var(--card); border: 1px solid var(--line); border-radius: var(--radio-lg); padding: 24px; margin-bottom: 32px; text-align: left; box-shadow: var(--sombra-card); }
.formulario { display: grid; gap: 8px; }
.formulario label { font-weight: 700; color: var(--navy); margin-top: 6px; }
.formulario input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radio);
}
.formulario input:focus { outline: 3px solid var(--mint-trazo); outline-offset: 1px; border-color: var(--mint-d); }
.formulario .boton { margin-top: 14px; width: 100%; }
.saludo { font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.opciones { display: grid; gap: 10px; margin-top: 8px; }
.opciones .boton { width: 100%; }
.confirma-pregunta { margin: 0; color: var(--muted); font-weight: 600; text-align: center; }
.confirma-nombre { margin: 6px 0 2px; font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--navy); text-align: center; overflow-wrap: anywhere; }
.confirma-correo { margin: 0 0 14px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.mensaje { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FDEEEC; color: #7a2410; font-weight: 600; }
.equipos { margin-top: 8px; }
.equipos h2 { font-size: 20px; color: var(--navy); margin: 0 0 4px; }
.equipos .sub { color: var(--muted); margin: 0 0 14px; }
.equipos .acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---- pantallas grandes ---- */
@media (min-width: 900px) {
  .portada-grid { grid-template-columns: 1.05fr 1fr; }
  .vitrina { min-height: 380px; }
}
@media (max-width: 899px) {
  .vitrina { max-width: 560px; margin: 16px auto 40px; }
}
@media (max-width: 760px) {
  .menu a.enlace { display: none; }
  .portada { padding: 44px 0 60px; }
  .seccion { padding: 52px 0; }
  .pie-grid { grid-template-columns: 1fr 1fr; }
  .pie-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .tableta { width: 70%; bottom: -36px; }
  .laptop { width: 100%; }
  .m-contadores b { font-size: 20px; }
}

/* Aviso de entorno de PRUEBAS (2026-10-02): lo pone api.js / ingresar.js según el hostname. Cartel fijo abajo a la izquierda: no tapa cabeceras. */
.banner-entorno { position: fixed; left: 8px; bottom: 8px; z-index: 9999; background: #c62828; color: #fff; font: 600 12px/1 system-ui, sans-serif; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); pointer-events: none; }
