/* LAT Suite · estilos compartidos de yape.latsuite.com (panel de pagos y panel de celulares) */
:root {
  color-scheme: light dark;
  --fondo: #f3f6fb; --panel: #ffffff; --panel-2: #f7f9fd; --texto: #0e1a2f; --suave: #5b6b85;
  --borde: #e1e7f0; --acento: #1d63ed; --acento-suave: #e8f0ff; --acento-texto: #1550c4;
  --ok: #12805c; --ok-suave: #e3f5ee; --aviso: #a15c00; --aviso-suave: #fff3dc; --mal: #c0362c; --mal-suave: #fdebea;
  --chip: #eef2f8; --dato: #1d63ed;
  --sombra: 0 1px 2px rgb(16 32 64 / .05), 0 6px 20px rgb(16 32 64 / .06);
  --radio: 14px;
  --marca-1: #070f22; --marca-2: #0c2152; --marca-3: #1048b0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0a1222; --panel: #111b2e; --panel-2: #0e1727; --texto: #e7eefb; --suave: #9aabc6;
    --borde: #1f2d47; --acento: #4d8eff; --acento-suave: #15264a; --acento-texto: #8db6ff;
    --ok: #3ccf91; --ok-suave: #10301f; --aviso: #f2b24c; --aviso-suave: #33260c; --mal: #ff7b72; --mal-suave: #3a1715;
    --chip: #18243b; --dato: #4d8eff;
    --sombra: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fondo); color: var(--texto); }
a { color: var(--acento-texto); }
[hidden] { display: none !important; }
.suave { color: var(--suave); }
.pequeno { font-size: 13px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- barra superior con el logo ---------- */
.barra-marca {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(120deg, var(--marca-1), var(--marca-2) 55%, var(--marca-3));
  color: #fff; box-shadow: 0 2px 12px rgb(4 12 32 / .35);
}
.marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.marca img { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 0 8px rgb(60 140 255 / .45)); }
.marca span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.marca b { font-size: 17px; letter-spacing: .3px; }
.marca small { font-size: 12px; color: #a9c4f5; letter-spacing: .4px; text-transform: uppercase; }
.barra-acciones { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-barra {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); color: #e6eeff;
  font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-barra:hover { background: rgb(255 255 255 / .16); }
.btn-barra.icono { width: 34px; padding: 0; justify-content: center; }
.btn-barra svg { width: 18px; height: 18px; }
.btn-barra[aria-pressed="false"] { opacity: .6; }
.pildora {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 14px;
  background: rgb(255 255 255 / .08); font-size: 13px; color: #cfe0ff; white-space: nowrap;
}
.pildora i { width: 8px; height: 8px; border-radius: 50%; background: #8a98b3; }
.pildora.vivo i { background: #3ee08f; box-shadow: 0 0 0 0 rgb(62 224 143 / .6); animation: latido 2s infinite; }
.pildora.error i { background: #ffb44d; }
@keyframes latido { 70% { box-shadow: 0 0 0 7px rgb(62 224 143 / 0); } 100% { box-shadow: 0 0 0 0 rgb(62 224 143 / 0); } }

/* ---------- controles ---------- */
input, select, textarea {
  height: 38px; padding: 0 11px; border: 1px solid var(--borde); border-radius: 10px;
  background: var(--panel); color: inherit; font: inherit; width: 100%;
}
textarea { height: auto; min-height: 70px; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--acento); outline-offset: 1px;
}
button, .boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 10px; background: var(--acento); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
}
button:hover, .boton:hover { filter: brightness(1.08); }
button.secundario, .boton.secundario { background: var(--panel); color: var(--texto); border-color: var(--borde); font-weight: 500; }
button.peligro { background: transparent; color: var(--mal); border-color: var(--borde); font-weight: 500; }
button.chico { height: 30px; padding: 0 11px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; filter: none; }
button svg, .boton svg { width: 17px; height: 17px; }

/* ---------- tarjetas ---------- */
.tarjeta { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); }
.tarjeta > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.tarjeta > header h2 { font-size: 15px; margin: 0; }
.tarjeta .cuerpo { padding: 14px 18px 18px; }

/* ---------- pantalla de acceso ---------- */
.acceso { max-width: 400px; margin: 10vh auto; padding: 32px 28px; text-align: center; }
.acceso img { width: 88px; height: 88px; filter: drop-shadow(0 4px 16px rgb(29 99 237 / .35)); }
.acceso h1 { font-size: 21px; margin: 12px 0 4px; }
.acceso form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.acceso .error { color: var(--mal); font-size: 13px; min-height: 1.2em; margin: 8px 0 0; }

/* ---------- diálogos ---------- */
dialog { border: 1px solid var(--borde); border-radius: 16px; padding: 0; width: min(480px, 94vw); background: var(--panel); color: var(--texto); box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
dialog::backdrop { background: rgb(5 12 28 / .55); backdrop-filter: blur(2px); }

.pie-marca { text-align: center; color: var(--suave); font-size: 12px; padding: 28px 16px 36px; }
.pie-marca img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
