/* AlDía · Estilo: sistema de Apple con la marca de Bohemi Studio. Claro y oscuro según el aparato. */
:root {
  --fondo: #F2F2F7;
  --tarjeta: #FFFFFF;
  --elevado: #FFFFFF;
  --texto: #1C1C1E;
  --texto2: #6C6C72;
  --texto3: #8E8E93;
  --linea: rgba(60, 60, 67, .16);
  --relleno: rgba(118, 118, 128, .12);
  --relleno-seg: rgba(118, 118, 128, .14);
  --seg-on: #FFFFFF;
  --acento: #2C7388;
  --acento-suave: rgba(62, 138, 160, .14);
  --marino: #0D2036;
  --verde: #1F7A35;
  --verde-suave: rgba(52, 199, 89, .16);
  --rojo: #D70015;
  --rojo-suave: rgba(255, 59, 48, .12);
  --naranja: #A85200;
  --naranja-suave: rgba(255, 149, 0, .16);
  --gris-suave: rgba(118, 118, 128, .14);
  --vidrio: rgba(249, 249, 251, .82);
  --sombra: 0 1px 2px rgba(0, 0, 0, .04);
  --radio: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #000000;
    --tarjeta: #1C1C1E;
    --elevado: #2C2C2E;
    --texto: #F5F5F7;
    --texto2: #A1A1A6;
    --texto3: #8E8E93;
    --linea: rgba(84, 84, 88, .55);
    --relleno: rgba(118, 118, 128, .24);
    --relleno-seg: rgba(118, 118, 128, .24);
    --seg-on: #636366;
    --acento: #62B6CF;
    --acento-suave: rgba(98, 182, 207, .18);
    --verde: #30D158;
    --verde-suave: rgba(48, 209, 88, .18);
    --rojo: #FF6961;
    --rojo-suave: rgba(255, 69, 58, .2);
    --naranja: #FFB340;
    --naranja-suave: rgba(255, 159, 10, .2);
    --gris-suave: rgba(118, 118, 128, .26);
    --vidrio: rgba(22, 22, 24, .82);
    --sombra: none;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.con-hoja { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.ic { flex: none; display: block; }
.cargando { padding: 80px 20px; text-align: center; color: var(--texto2); }

/* ---------- armazón ---------- */
.lateral { display: none; }
.principal { min-height: 100vh; }
.contenido { max-width: 720px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 96px); }
.banda-prueba { background: var(--naranja-suave); color: var(--naranja); font-size: 13px; font-weight: 600; text-align: center; padding: calc(env(safe-area-inset-top) + 6px) 12px 6px; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
  padding: 6px 4px calc(env(safe-area-inset-bottom) + 4px);
  background: var(--vidrio); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--linea);
}
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; justify-content: center; color: var(--texto3); font-size: 10.5px; font-weight: 500; }
.tabs a.on { color: var(--acento); }

/* ---------- encabezado ---------- */
.enc { margin-bottom: 14px; }
.enc-volver { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; color: var(--acento); margin-left: -6px; }
.enc-sup { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; margin-bottom: 2px; }
.enc-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.enc-sobre { color: var(--texto2); font-size: 15px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enc h1 { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.5px; min-width: 0; }
.redondo { width: 38px; height: 38px; border-radius: 50%; background: var(--acento); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
@media (prefers-color-scheme: dark) { .redondo { color: #06222C; } }
.redondo.gris { background: var(--relleno); color: var(--acento); }
.redondo.chico { width: 32px; height: 32px; }
.pildora { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--texto2); white-space: nowrap; }
.pildora i { width: 7px; height: 7px; border-radius: 50%; background: var(--texto3); }
.pildora.ok i { background: #34C759; }
.pildora.sube i { background: #FF9F0A; }
.pildora.off i { background: #8E8E93; }
.pildora.mal { color: var(--rojo); }
.pildora.mal i { background: var(--rojo); }
.pildora.prueba i { background: #FF9F0A; }
.enc-pil { display: inline-flex; flex: none; }
@media (min-width: 900px) { .enc-pil { display: none; } .enc-sup:has(.enc-sobre:empty) { display: none; } }

/* ---------- tarjetas ---------- */
.tarjeta { display: block; background: var(--tarjeta); border-radius: var(--radio); padding: 16px; margin-bottom: 14px; box-shadow: var(--sombra); }
.tarjeta.tocable { transition: opacity .12s; }
.tarjeta.tocable:active { opacity: .7; }
.tarjeta-et { font-size: 14px; font-weight: 500; color: var(--texto2); margin-bottom: 4px; }
.tarjeta-sub { font-size: 14px; color: var(--texto2); margin-top: 6px; }
.tarjeta .boton { margin-top: 12px; }
.tarjeta-otra { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.numero { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.numero.rojo { color: var(--rojo); }
.saldo + .saldo { margin-top: 16px; padding-top: 14px; border-top: .5px solid var(--linea); }
.mini { display: flex; gap: 22px; margin: 10px 0 0; flex-wrap: wrap; }
.mini dt { font-size: 12.5px; color: var(--texto2); }
.mini dd { margin: 1px 0 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.prox { background: var(--marino); color: #fff; }
.prox-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prox-et { font-size: 13.5px; font-weight: 600; color: #8FC7D8; }
.prox-falta { font-size: 13px; font-weight: 600; background: rgba(62, 138, 160, .32); color: #D5EEF5; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.prox h2 { font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.3px; margin-top: 8px; overflow-wrap: anywhere; }
.prox-sub { color: #B9C7D4; font-size: 15px; margin-top: 4px; overflow-wrap: anywhere; }
.prox-acciones { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.prox-atras { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: #FFB4AE; }

.banner { display: flex; align-items: center; gap: 12px; background: var(--acento-suave); border-radius: var(--radio); padding: 12px 14px; margin-bottom: 14px; color: var(--acento); }
.banner > span { flex: 1; min-width: 0; color: var(--texto); }
.banner b { display: block; font-size: 15px; font-weight: 600; }
.banner small { display: block; font-size: 13px; color: var(--texto2); }
.banner-x { color: var(--texto2); width: 28px; height: 28px; text-align: center; font-size: 14px; flex: none; }

.cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cifra { background: var(--tarjeta); border-radius: var(--radio); padding: 12px 14px; box-shadow: var(--sombra); min-width: 0; }
.cifra span { display: block; font-size: 13px; color: var(--texto2); }
.cifra b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.2px; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cifra small { display: block; font-size: 12px; color: var(--texto2); }

/* ---------- listas agrupadas ---------- */
.grupo-t { font-size: 13px; font-weight: 500; color: var(--texto2); margin: 20px 16px 7px; }
.grupo { background: var(--tarjeta); border-radius: var(--radio); overflow: hidden; margin-bottom: 14px; box-shadow: var(--sombra); }
.grupo.solo { margin-bottom: 14px; }
.grupo.pad { padding: 12px 16px; }
.grupo-p { font-size: 13px; line-height: 1.35; color: var(--texto2); margin: -7px 16px 16px; }
.grupo-t:first-child { margin-top: 2px; }
.fila { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 9px 14px 9px 16px; position: relative; color: inherit; }
.fila + .fila::before, .fila + .campo::before, .campo + .fila::before, .campo + .campo::before, .campo + div[data-cobra]::before, div[data-cobra] > .campo + .campo::before, div[data-cobra] + .campo::before, datalist + .campo::before, datalist + .fila::before, div[data-lista-cat] + .campo::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--linea);
}
div[data-cobra] { position: relative; }
button.fila, a.fila, .fila-abre { cursor: pointer; }
button.fila:active, a.fila:active, .fila-abre:active { background: var(--relleno); }
@media (hover: hover) { button.fila:hover, a.fila:hover, .fila-abre:hover { background: var(--relleno); } }
.fila.quieta { cursor: default; }
.fila > .ic:last-child { color: var(--texto3); opacity: .7; }
.fila-txt { flex: 1; min-width: 0; display: block; }
.fila-txt b { display: block; font-weight: 400; overflow-wrap: anywhere; }
.fila-txt small { display: block; font-size: 13.5px; color: var(--texto2); overflow-wrap: anywhere; }
.fila-val { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; max-width: 45%; text-align: right; overflow-wrap: anywhere; }
.fila-val.gris { color: var(--texto2); font-weight: 400; }
.fila-ic { width: 30px; height: 30px; border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--acento-suave); color: var(--acento); }
.fila-ic.verde { background: var(--verde-suave); color: var(--verde); }
.fila-ic.gris { background: var(--gris-suave); color: var(--texto2); }
.fila.accion { color: var(--acento); justify-content: flex-start; }
.fila.accion.rojo { color: var(--rojo); }
.fila.dato { justify-content: space-between; gap: 16px; min-height: 46px; }
.fila.dato > span { color: var(--texto2); flex: none; }
.fila.dato > b { font-weight: 400; text-align: right; overflow-wrap: anywhere; min-width: 0; flex: 1; }
.con-check { padding: 0 0 0 14px; gap: 2px; }
.con-boton { padding: 0 14px 0 0; }
.fila-abre { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 50px; padding: 9px 14px 9px 10px; color: inherit; }
.con-boton .fila-abre { padding-left: 16px; }
.check { width: 44px; height: 44px; margin-left: -8px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: transparent; position: relative; }
.check::before { content: ''; position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 1.7px solid var(--texto3); }
.check .ic { position: relative; }
.check.on { color: #fff; }
.check.on::before { background: var(--acento); border-color: var(--acento); }
.tachado { text-decoration: line-through; color: var(--texto2); }
.punto { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--texto3); }
.punto.rojo { background: var(--rojo); }
.punto.naranja { background: #FF9500; }
.punto.verde { background: #34C759; }
.txt-rojo { color: var(--rojo) !important; }
.txt-verde { color: var(--verde) !important; }
.chip { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--gris-suave); color: var(--texto2); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.chip.rojo { background: var(--rojo-suave); color: var(--rojo); }
.chip.naranja { background: var(--naranja-suave); color: var(--naranja); }
.chip.verde { background: var(--verde-suave); color: var(--verde); }
.chip.azul { background: var(--acento-suave); color: var(--acento); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-b { flex: none; padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; background: var(--tarjeta); color: var(--texto); box-shadow: var(--sombra); min-height: 36px; }
.chip-b.on { background: var(--acento); color: #fff; }
@media (prefers-color-scheme: dark) { .chip-b.on { color: #06222C; } }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--marino); color: #fff; font-weight: 600; }
.avatar.grande { width: 72px; height: 72px; font-size: 30px; }
.vacio { text-align: center; padding: 44px 24px; color: var(--texto2); }
.vacio .ic { margin: 0 auto 12px; color: var(--texto3); }
.vacio h3 { color: var(--texto); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.vacio p { font-size: 15px; max-width: 340px; margin: 0 auto; }
.vacio .boton { margin-top: 18px; }
.sin-mov { text-align: center; color: var(--texto2); padding: 22px 12px; font-size: 15px; }
.pie-app { text-align: center; font-size: 12.5px; color: var(--texto3); padding: 8px 0 18px; }

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 18px; border-radius: 12px; font-size: 16px; font-weight: 600; text-align: center; background: var(--relleno); color: var(--acento); }
.boton:active { opacity: .7; }
.boton:disabled { opacity: .5; }
.boton.lleno { background: var(--acento); color: #fff; }
@media (prefers-color-scheme: dark) { .boton.lleno { color: #06222C; } }
.boton.gris { background: var(--relleno); color: var(--acento); }
.boton.claro { background: #fff; color: var(--marino); }
.boton.transparente { background: rgba(255, 255, 255, .13); color: #fff; }
.boton.peligro { background: var(--rojo-suave); color: var(--rojo); }
.boton.chico { min-height: 36px; padding: 6px 13px; font-size: 14px; border-radius: 10px; flex: none; }
.boton.ancho { display: flex; width: 100%; margin-bottom: 12px; }
.botonera { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.botonera .boton { flex: 1 1 auto; }
.link { color: var(--acento); font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.link.fuerte { font-weight: 600; }
.link.gris { color: var(--texto2); font-size: 14px; }

/* ---------- segmentado ---------- */
.seg { display: flex; padding: 2px; border-radius: 10px; background: var(--relleno-seg); margin-bottom: 14px; }
.seg label, .seg button { flex: 1; min-width: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg button { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 4px 8px; border-radius: 8px; font-size: 14px; font-weight: 500; text-align: center; cursor: pointer; }
.seg input:checked + span, .seg button.on { background: var(--seg-on); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.seg input:focus-visible + span { outline: 2px solid var(--acento); }

/* ---------- campos ---------- */
.campo { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px; position: relative; cursor: text; }
.campo-et { flex: none; width: 118px; font-size: 16px; line-height: 1.2; }
.campo input:not([type=checkbox]):not([type=radio]), .campo select, .campo textarea {
  flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; font-size: 17px; text-align: right; padding: 6px 0; color: var(--texto);
}
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 0; }
.campo:focus-within .campo-et { color: var(--acento); }
.campo input::placeholder, .campo textarea::placeholder { color: var(--texto3); }
.campo input[type=date], .campo input[type=time] { min-height: 34px; }
.campo select { text-align-last: right; cursor: pointer; }
.campo select option { background: var(--elevado); color: var(--texto); }
.campo.grande input { font-size: 26px !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.campo.alto { align-items: flex-start; flex-direction: column; gap: 2px; }
.campo.alto textarea { text-align: left; resize: vertical; }
.campo.alto .campo-et { width: auto; color: var(--texto2); font-size: 14px; padding-top: 4px; }
.campo.con-seg { align-items: center; }
.campo.con-seg .seg { flex: 1; margin: 0; min-width: 0; }
.campo.con-seg .campo-et { width: auto; min-width: 58px; }
.campo.con-seg .seg span { font-size: 13px; padding: 4px; }
.campo.interruptor { justify-content: space-between; cursor: pointer; }
.campo.interruptor .campo-et { width: auto; flex: 1; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--relleno-seg); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + span { background: #34C759; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.buscador { display: flex; align-items: center; gap: 8px; background: var(--relleno); border-radius: 11px; padding: 0 11px; margin-bottom: 14px; color: var(--texto2); }
.buscador input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; min-height: 38px; font-size: 16px; color: var(--texto); -webkit-appearance: none; appearance: none; }
.nota { font-size: 14px; color: var(--texto2); padding: 12px 16px; background: var(--acento-suave); border-radius: 12px; margin-bottom: 14px; }
.grupo .nota { margin: 0; background: none; }

/* ---------- plata ---------- */
.mes-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.mes-nav b { font-size: 17px; font-weight: 600; }
.fila-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fila-resumen + .fila-resumen { margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--linea); }
.fila-resumen span { font-size: 12.5px; color: var(--texto2); min-width: 0; }
.fila-resumen b { display: block; color: var(--texto); font-size: 14px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---------- hojas ---------- */
.fondo { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .4); display: flex; align-items: flex-end; justify-content: center; animation: aparece .18s ease-out; }
.hoja { width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh; display: flex; flex-direction: column; background: var(--fondo); border-radius: 14px 14px 0 0; animation: sube .28s cubic-bezier(.2, .8, .25, 1); }
.hoja-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 16px; min-height: 54px; border-bottom: .5px solid var(--linea); flex: none; }
.hoja-top h2 { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hoja-top > :first-child, .hoja-top > :last-child { flex: none; min-width: 64px; }
.hoja-top > :last-child { justify-content: flex-end; text-align: right; }
.hoja-hueco { display: block; }
.hoja-cuerpo { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(env(safe-area-inset-bottom) + 20px); }
.detalle-top { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2px 0 14px; text-align: center; }
.detalle-top .chip { max-width: 100%; }
.detalle-sub { font-size: 14px; color: var(--texto2); }
.acciones-c { display: flex; gap: 8px; margin-bottom: 14px; }
.accion-c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 6px 9px; background: var(--tarjeta); border-radius: 12px; color: var(--acento); font-size: 12.5px; font-weight: 500; }
.fondo.menu { padding: 10px 10px calc(env(safe-area-inset-bottom) + 10px); }
.menu-caja { width: 100%; max-width: 420px; animation: sube .26s cubic-bezier(.2, .8, .25, 1); }
.menu-caja .grupo { margin-bottom: 8px; background: var(--elevado); }
.menu-t { display: none; }
.menu-t.fuerte { display: block; text-align: center; }
.menu-t.fuerte { color: var(--texto); font-size: 15px; font-weight: 600; padding: 14px 16px; }
.menu-t small { display: block; font-weight: 400; font-size: 13px; color: var(--texto2); margin-top: 3px; }
.opcion { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 16px; font-size: 18px; color: var(--acento); text-align: center; position: relative; background: var(--elevado); }
.opcion + .opcion::before, .menu-t + .opcion::before { content: ''; position: absolute; top: 0; left: 0; right: 0; border-top: .5px solid var(--linea); }
.opcion:active { background: var(--relleno); }
.opcion-ic { display: none; }
.opcion.peligro { color: var(--rojo); font-weight: 500; }
.opcion.cancelar { border-radius: var(--radio); font-weight: 600; }
@keyframes aparece { from { opacity: 0; } }
@keyframes sube { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .fondo, .hoja, .menu-caja { animation: none; } }

#toast { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 76px); display: flex; justify-content: center; pointer-events: none; }
body.con-hoja #toast { bottom: auto; top: calc(env(safe-area-inset-top) + 12px); left: 16px; }
.toast { background: rgba(28, 28, 30, .94); color: #fff; font-size: 15px; font-weight: 500; padding: 11px 17px; border-radius: 13px; max-width: 460px; text-align: center; animation: sube .22s ease-out; box-shadow: 0 6px 24px rgba(0, 0, 0, .22); }
.toast.malo { background: #B3000F; }

/* ---------- ingreso ---------- */
.ingreso { max-width: 400px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 52px) 20px 40px; text-align: center; }
.ingreso-ic { width: 84px; height: 84px; border-radius: 19px; display: block; margin: 0 auto 16px; }
.ingreso h1 { font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.ingreso-sub { color: var(--texto2); margin: 4px 0 26px; }
.ingreso .grupo { text-align: left; }
.ingreso .campo-et { width: 92px; }
.ingreso input { text-align: left !important; }
.ingreso .boton { width: 100%; }
.ingreso .grupo.solo { margin-bottom: 14px; }
.ingreso-links { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 12px; }
.error-caja { background: var(--rojo-suave); color: var(--rojo); border-radius: 12px; padding: 11px 14px; font-size: 14.5px; margin-bottom: 14px; }

.boton.red { background: var(--tarjeta); color: var(--texto); border: .5px solid var(--linea); box-shadow: var(--sombra); }
.separador { display: flex; align-items: center; gap: 10px; color: var(--texto2); font-size: 13px; margin: 4px 0 14px; }
.separador::before, .separador::after { content: ''; flex: 1; border-top: .5px solid var(--linea); }
.acepto { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 14px; line-height: 1.35; color: var(--texto2); margin: 0 4px 14px; cursor: pointer; }
.acepto input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--acento); }
.acepto a, .legal a { color: var(--acento); text-decoration: underline; }
.legal { font-size: 12.5px; color: var(--texto2); margin-top: 2px; }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin-top: 22px; font-size: 12.5px; }
.pie-legal a { color: var(--texto2); text-decoration: underline; min-height: 28px; display: inline-flex; align-items: center; }

.pasos { margin: 0 0 14px; padding: 14px 16px 14px 36px; background: var(--tarjeta); border-radius: var(--radio); box-shadow: var(--sombra); font-size: 16px; }
.pasos li { padding: 5px 0; }
#instalar-cuerpo .seg { margin-bottom: 14px; }

/* ---------- plan ---------- */
.candado { display: inline-flex; color: var(--texto3); font-style: normal; margin-left: auto; }
.fila > .candado { margin-left: 0; }
.pro { text-align: center; padding: 22px 18px; }
.pro-ic { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--acento-suave); color: var(--acento); }
.pro h2 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 10px; }
.pro ul { list-style: none; margin: 0 auto 14px; padding: 0; max-width: 300px; text-align: left; }
.pro li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 15px; }
.pro li .ic { color: var(--verde); }
.pro-precio { font-size: 19px; font-weight: 700; margin: 8px 0 12px; }
.grupo-p.sola { margin: 2px 4px 0; }
.uso-plan { font-size: 13.5px; color: var(--texto2); margin: -6px 2px 12px; }

/* ---------- compu ---------- */
.columnas { display: block; }
@media (min-width: 900px) {
  body { font-size: 15px; }
  .tabs { display: none; }
  .lateral {
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: 236px; padding: 18px 12px 14px;
    background: var(--vidrio); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-right: .5px solid var(--linea);
  }
  .marca { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; font-size: 18px; }
  .marca img { width: 30px; height: 30px; border-radius: 7px; }
  .lateral-mas { margin: 0 4px 12px; min-height: 36px; font-size: 14px; padding: 6px; }
  .lateral nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .lateral nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; color: var(--texto); }
  .lateral nav a .ic { color: var(--acento); }
  .lateral nav a:hover { background: var(--relleno); }
  .lateral nav a.on { background: var(--acento); color: #fff; font-weight: 600; }
  .lateral nav a.on .ic { color: #fff; }
  @media (prefers-color-scheme: dark) { .lateral nav a.on, .lateral nav a.on .ic { color: #06222C; } }
  .lateral-pie { padding: 8px; }
  .principal { margin-left: 236px; }
  .contenido { max-width: 880px; padding: 30px 32px 50px; }
  .enc-volver { display: none; }
  .enc h1 { font-size: 30px; }
  .redondo { width: 34px; height: 34px; }
  .columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .cifras { grid-template-columns: repeat(4, 1fr); }
  .fila, .fila-abre, .campo { min-height: 42px; }
  .fila-txt small { font-size: 12.5px; }
  .campo input:not([type=checkbox]):not([type=radio]), .campo select, .campo textarea { font-size: 15px; }
  .campo-et { font-size: 14.5px; }
  .seg-a { max-width: 420px; }
  .fondo { align-items: center; padding: 20px; }
  .hoja { border-radius: 14px; max-height: 86vh; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
  .boton { min-height: 38px; font-size: 14.5px; }
  .opcion { min-height: 44px; font-size: 15px; }
  .fondo.menu { align-items: center; }
  .menu-caja { max-width: 320px; }
  #toast { bottom: 24px; left: 236px; }
}
