/* Sitio POS ATM · identidad ATM (Onyx, Neon Ice, Sapphire; Roboto) */
@font-face { font-family: Roboto; font-weight: 300; font-display: swap; src: url(/fonts/roboto-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(/fonts/roboto-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Roboto; font-weight: 900; font-display: swap; src: url(/fonts/roboto-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-weight: 500; font-display: swap; src: url(/fonts/roboto-slab-latin-500-normal.woff2) format('woff2'); }
:root {
  --onyx: #0F1215; --graphite: #3F3D44; --rosy: #A09DA0; --ice: #16F3E8; --sapphire: #176BDE; --alabaster: #E8E8E8;
  --blanco: #fff; --fondo: #F4F4F5; --ok: #1d7a4d; --error: #b3261e; --aviso: #8a5a00; --radio: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Roboto, system-ui, sans-serif; font-weight: 300; color: var(--onyx); background: var(--fondo); line-height: 1.5; }
b, strong, h1, h2, h3, h4, button, .boton { font-weight: 500; }
h1, h2 { font-weight: 900; letter-spacing: -.01em; line-height: 1.1; }
a { color: var(--sapphire); }
img { max-width: 100%; }
.envoltura { width: min(1120px, 100% - 32px); margin: 0 auto; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .15s; }
.boton:active { transform: translateY(1px); }
.boton.primario { background: var(--sapphire); color: #fff; box-shadow: 0 6px 20px rgba(23,107,222,.35); }
.boton.primario:hover { box-shadow: 0 8px 28px rgba(23,107,222,.5); }
.boton.hielo { background: var(--ice); color: var(--onyx); }
.boton.secundario { background: transparent; color: inherit; border-color: currentColor; }
.boton.grande { padding: 18px 28px; font-size: 1.1rem; }
.boton:disabled { opacity: .55; cursor: wait; }

/* Encabezado */
.cabecera { position: sticky; top: 0; z-index: 10; background: rgba(15,18,21,.92); backdrop-filter: blur(8px); color: #fff; }
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.cabecera img { height: 34px; }
.cabecera nav { display: flex; gap: 22px; align-items: center; }
.cabecera nav a { color: var(--alabaster); text-decoration: none; font-weight: 500; font-size: .95rem; }
.cabecera nav a:hover { color: var(--ice); }
.cabecera .boton { padding: 9px 16px; font-size: .95rem; }

/* Portada */
.portada { background: var(--onyx) url(/img/ATM_Pattern_1_white.png) repeat; background-size: 520px; color: #fff; position: relative; overflow: hidden; }
.portada::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(15,18,21,.97) 30%, rgba(15,18,21,.82)); }
.portada .envoltura { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 84px; }
.portada h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 18px; }
.portada h1 em { font-style: normal; color: var(--ice); }
.portada p.bajada { font-size: 1.2rem; color: var(--alabaster); margin: 0 0 28px; max-width: 34em; }
.portada .acciones { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.portada .nota { margin-top: 14px; font-size: .9rem; color: var(--rosy); }
.portada .slogan { font-family: 'Roboto Slab', serif; color: var(--ice); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin-bottom: 14px; }
.portada .visual { justify-self: center; filter: drop-shadow(0 24px 60px rgba(22,243,232,.18)); }
.sellos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.sello { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: .85rem; color: var(--alabaster); }

section.bloque { padding: 72px 0; }
section.bloque h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 10px; }
section.bloque p.intro { font-size: 1.1rem; color: var(--graphite); margin: 0 0 32px; max-width: 46em; }

/* Pasos */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: paso; }
.paso { background: var(--blanco); border-radius: var(--radio); padding: 26px; box-shadow: 0 2px 10px rgba(0,0,0,.05); position: relative; }
.paso::before { counter-increment: paso; content: counter(paso); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--onyx); color: var(--ice); font-weight: 900; margin-bottom: 14px; }
.paso h3 { margin: 0 0 6px; font-size: 1.15rem; }
.paso p { margin: 0; color: var(--graphite); }

/* Planes */
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; max-width: 880px; margin: 0 auto; }
.a-medida { max-width: 880px; margin: 22px auto 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--blanco); border-radius: var(--radio); padding: 20px 28px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.a-medida p { margin: 0; color: var(--graphite); }
.a-medida b { color: var(--negro, #111); }
.plan { background: var(--blanco); border-radius: var(--radio); padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.05); display: flex; flex-direction: column; border: 2px solid transparent; }
.plan.destacado { border-color: var(--sapphire); position: relative; }
.plan.destacado::after { content: 'El más elegido'; position: absolute; top: -12px; left: 24px; background: var(--sapphire); color: #fff; font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .desc { color: var(--graphite); margin: 4px 0 16px; min-height: 3em; }
.plan .precio { font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; }
.plan .precio small { font-size: .95rem; font-weight: 300; color: var(--graphite); letter-spacing: 0; }
.plan .iva { font-size: .85rem; color: var(--graphite); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid #f0f0f0; }
.plan li::before { content: '✓'; position: absolute; left: 2px; color: var(--sapphire); font-weight: 900; }
.plan .impl { font-size: .9rem; background: var(--fondo); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }

/* Pagos y ayuda */
.medios { display: flex; flex-wrap: wrap; gap: 12px; }
.medio { background: var(--blanco); border-radius: 12px; padding: 14px 20px; font-weight: 500; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.ayuda-caja { background: var(--onyx); color: #fff; border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.ayuda-caja p { color: var(--alabaster); }
.wa { background: #1d7a4d; color: #fff; }

/* Preguntas */
details.faq { background: var(--blanco); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 500; }
details.faq p { margin: 10px 0 0; color: var(--graphite); }

footer { background: var(--onyx); color: var(--rosy); padding: 30px 0; font-size: .9rem; }
footer .envoltura { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Diálogo de descarga */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(15,18,21,.65); }
dialog .cab { background: var(--onyx); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
dialog .cab h3 { margin: 0; }
dialog .cab button { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
dialog .cuerpo { padding: 22px; }
dialog ol { padding-left: 20px; margin: 0 0 16px; }
dialog li { margin: 8px 0; }
.comando { display: flex; gap: 8px; align-items: stretch; background: var(--onyx); border-radius: 10px; padding: 6px 6px 6px 14px; }
.comando code { flex: 1; color: var(--ice); font-size: .85rem; align-self: center; overflow-x: auto; white-space: nowrap; }
.comando button { background: var(--graphite); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 500; }
.chico { font-size: .9rem; color: var(--graphite); }

/* Página de pago */
.pago { width: min(560px, 100% - 32px); margin: 32px auto 60px; }
.tarjeta { background: var(--blanco); border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.08); overflow: hidden; }
.tarjeta .tope { background: var(--onyx) url(/img/ATM_Pattern_1_white.png); background-size: 380px; color: #fff; padding: 22px 26px; position: relative; }
.tarjeta .tope::before { content: ''; position: absolute; inset: 0; background: rgba(15,18,21,.88); }
.tarjeta .tope > * { position: relative; }
.tarjeta .tope .negocio { color: var(--ice); font-weight: 500; }
.tarjeta .tope h1 { font-size: 1.4rem; margin: 4px 0 0; font-weight: 500; }
.tarjeta .monto { font-size: 2.6rem; font-weight: 900; letter-spacing: -.02em; margin: 8px 0 0; }
.tarjeta .desglose { font-size: .85rem; color: var(--alabaster); }
.tarjeta .contenido { padding: 22px 26px 26px; }
.pasarela { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 10px;
  background: var(--blanco); border: 1px solid #dcdcdc; border-radius: 12px; font: inherit; cursor: pointer; text-align: left; }
.pasarela:hover { border-color: var(--sapphire); box-shadow: 0 4px 14px rgba(23,107,222,.12); }
.pasarela b { display: block; font-size: 1.05rem; }
.pasarela span { color: var(--graphite); font-size: .88rem; }
.pasarela .flecha { color: var(--sapphire); font-weight: 900; font-size: 1.2rem; }
.pasarela .prueba { font-size: .7rem; background: #fbf1e0; color: var(--aviso); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.estado-ok { text-align: center; padding: 10px 0; }
.estado-ok .icono { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 32px; font-weight: 900; background: #e6f2ec; color: var(--ok); }
.estado-ok.mal .icono { background: #f8e5e4; color: var(--error); }
.estado-ok.espera .icono { background: #fbf1e0; color: var(--aviso); }
.campo { margin-bottom: 12px; }
.campo label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; }
.campo input { width: 100%; padding: 12px 14px; border: 1px solid #ccc; border-radius: 10px; font: inherit; }
.datos-banco { background: var(--fondo); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.datos-banco div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #e6e6e6; }
.datos-banco div:last-child { border: 0; }
.seguro { text-align: center; font-size: .82rem; color: var(--graphite); margin-top: 14px; }
.aviso-caja { background: #fbf1e0; color: var(--aviso); border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 14px; }
.sk { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #e3e3e3, #efefef 40%, #e3e3e3 80%); background-size: 300% 100%; animation: brillo 1.4s ease-in-out infinite; }
@keyframes brillo { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .portada .envoltura { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .portada .visual { display: none; }
  .pasos { grid-template-columns: 1fr; }
  .ayuda-caja { grid-template-columns: 1fr; padding: 28px; }
  .cabecera nav a:not(.boton) { display: none; }
}

/* ---------- Descargas por sistema (v0.4.2) ---------- */
.icono-so { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.icono-so svg { width: 100%; height: 100%; fill: currentColor; }
.icono-so.grande { width: 44px; height: 44px; color: var(--onyx); margin-bottom: 14px; }
.descargas { background: var(--blanco); }
.plataformas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.plataforma { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 26px 24px;
  border-radius: var(--radio); background: var(--fondo); border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.plataforma:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,18,21,.08); }
.plataforma h3 { margin: 0; font-size: 1.35rem; }
.plataforma p { margin: 4px 0 20px; color: var(--graphite); }
.plataforma .boton { width: 100%; }
.plataforma:not(.tuya) .boton.primario { background: var(--onyx); box-shadow: none; }
.plataforma small { margin-top: 12px; color: var(--graphite); font-size: .82rem; }
.plataforma .insignia { display: none; position: absolute; top: -12px; left: 24px; background: var(--sapphire); color: #fff;
  font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.plataforma.tuya { background: var(--blanco); border-color: var(--sapphire); box-shadow: 0 10px 30px rgba(23,107,222,.12); }
.plataforma.tuya .insignia { display: block; }
.plataforma.tuya .icono-so.grande { color: var(--sapphire); }
.otras { margin-top: 18px; text-align: center; }
dialog .cab h3 { display: flex; align-items: center; gap: 10px; }
.pasos-dl { counter-reset: paso; list-style: none; padding: 0 !important; }
.pasos-dl li { counter-increment: paso; position: relative; padding: 4px 0 12px 44px; }
.pasos-dl li::before { content: counter(paso); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ice); color: var(--onyx); font-weight: 900; display: grid; place-items: center; font-size: .95rem; }
@media (max-width: 860px) { .plataformas { grid-template-columns: 1fr; } }
