:root {
  --bg: #09090a;
  --bg-2: #121213;
  --card: rgba(255, 255, 255, 0.04);
  --text: #f5f3ee;
  --muted: #bcb8b0;
  --dim: #95928b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  /* Color de Al Día: esmeralda que pasa a turquesa (plata en orden, tranquilidad). */
  --acento: #10b981;
  --acento-suave: #6ee7b7;
  --acento-oscuro: #0d9488;
  --grad: linear-gradient(120deg, #34d399, #10b981 45%, #14b8a6);
  --sobre-acento: #022c22;
  --ambar: #f5b041;
  /* Dorado: solo como detalle de la marca Zojim. */
  --oro: #d6b264;
  --oro-grad: linear-gradient(120deg, #f6e8c3, #d6b264 50%, #9c7a35);
  --rojo: #f08b7a;
  --verde: #93d3a5;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --abajo: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; font-size: 112.5%; }
html.letra-grande { font-size: 137.5%; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-bottom: calc(96px + var(--abajo));
}
body.con-sheet { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(110px); }
.aurora i:nth-child(1) { width: 520px; height: 520px; background: #10b981; top: -320px; left: -220px; opacity: .16; }
.aurora i:nth-child(2) { width: 460px; height: 460px; background: #14b8a6; top: -260px; right: -260px; opacity: .12; }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(6, 40, 32, .82), rgba(9, 14, 13, .78));
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(16, 185, 129, .22);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1080px; }
.marca { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px 0 0; font-weight: 650; font-size: 1.2rem; letter-spacing: -.02em; }
.marca img { border-radius: 10px; }
.marca em, em.oro {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em;
}
.btn-mas {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--grad); color: var(--sobre-acento); font-weight: 700; font-size: .95rem;
  box-shadow: 0 8px 30px -10px rgba(16, 185, 129, .55);
}
.top-der { display: flex; align-items: center; gap: 8px; }
.btn-letra {
  min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(110, 231, 183, .55);
  color: var(--acento-suave); font-weight: 700; font-size: .95rem; background: rgba(16, 185, 129, .06);
}
.btn-letra { white-space: nowrap; padding: 0 14px; }
.btn-letra span { font-weight: 600; }
/* "A+ Letra" siempre con texto; "más grande" cuando hay lugar. */
.btn-letra .l2 { display: none; }
@media (max-width: 759px) { .btn-letra .l2 { display: inline; } }
@media (min-width: 1400px) { .btn-letra .l2 { display: inline; } }
@media (max-width: 400px) { .btn-letra .l2 { display: none; } }
html.letra-grande .btn-letra .l2 { display: none; }
/* En el celu, "Agregar" ya está grande en la pantalla; arriba dejamos la marca y la letra. */
@media (max-width: 759px) { .btn-mas { display: none; } }
body.vacia .btn-mas { display: none; }
.recuperar-copia { margin-top: 14px; color: var(--muted); font-size: .95rem; }
@media (max-width: 340px) { .marca span { display: none; } }
@media (max-width: 440px) { html.letra-grande .marca span { display: none; } }

/* Pestañas: abajo en el celu, arriba al centro en la PC */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(6px + var(--abajo));
  background: rgba(14, 14, 15, .9);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 6px; border-radius: 14px; color: var(--muted); font-size: .92rem; font-weight: 600;
}
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] svg { stroke: var(--acento); }
@media (min-width: 760px) {
  body { padding-bottom: 48px; }
  .tabs {
    top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; left: 50%; right: auto; transform: translateX(-50%);
    padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04);
  }
  .tab { flex-direction: row; gap: 8px; max-width: none; padding: 8px 16px; border-radius: 999px; font-size: .9rem; }
  .tab svg { width: 18px; height: 18px; }
  .tab[aria-current="page"] { background: rgba(255, 255, 255, .09); }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn:hover { border-color: rgba(255, 255, 255, .26); }
.btn svg { width: 20px; height: 20px; }
.btn-primario { background: var(--grad); color: var(--sobre-acento); border-color: transparent; font-weight: 700; box-shadow: 0 10px 40px -12px rgba(16, 185, 129, .6); }
.btn-primario:hover { border-color: transparent; filter: brightness(1.06); }
.btn-primario[disabled] { opacity: .6; }
.btn-peligro { color: var(--rojo); border-color: rgba(240, 139, 122, .35); }
.ancho { width: 100%; }
.btn-texto { display: inline-flex; align-items: center; min-height: 48px; color: var(--acento-suave); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(234, 215, 164, .4); padding: 0 6px; }

/* Mes */
.mes-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 14px; }
.mes-nav h1 { font-size: 1.45rem; font-weight: 650; letter-spacing: -.03em; text-align: center; line-height: 1.15; }
.mes-nav h1 small { display: block; font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--dim); }
.redondo { min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-weight: 600; font-size: .92rem; flex-shrink: 0; }
.redondo svg { width: 20px; height: 20px; }
.volver-hoy { display: flex; justify-content: center; margin: -6px 0 14px; }
.chip-oro { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: .95rem; font-weight: 650; color: var(--sobre-acento); background: var(--grad); }

.resumen {
  position: relative; overflow: hidden; padding: 24px 22px; border-radius: 26px; border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 100% 0%, rgba(16, 185, 129, .2), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
}
.kicker { font-size: .88rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acento); font-weight: 650; }
.grande { margin-top: 6px; font-size: clamp(2.3rem, 11vw, 3.3rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.grande em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.progreso { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 18px 0 10px; }
.progreso i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .6s var(--ease); }
.resumen .sub { color: var(--muted); font-size: .95rem; }
.resumen .sub b { color: var(--text); font-weight: 600; }
.aviso-rojo { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; color: var(--rojo); background: rgba(240, 139, 122, .09); font-size: .92rem; font-weight: 550; }
.aviso-rojo svg { width: 18px; height: 18px; }

.btn-agregar {
  width: 100%; margin: 14px 0 6px; min-height: 56px; border-radius: 18px; gap: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(16, 185, 129, .45); color: var(--acento-suave); font-weight: 600; background: rgba(16, 185, 129, .05);
}

.grupo { margin-top: 26px; }
.grupo h2 { display: flex; align-items: baseline; justify-content: space-between; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 10px; padding: 0 4px; }
.grupo h2 span { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); font-size: .92rem; }
.grupo.rojo h2 { color: var(--rojo); }
.lista { display: flex; flex-direction: column; gap: 10px; }

.item {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s;
}
.item:hover { border-color: var(--line-2); }
.ico-caja {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--acento-suave);
}
.item-info { flex: 1; min-width: 0; }
.item-info b { display: block; font-weight: 600; font-size: 1.03rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.estado { display: block; font-size: .92rem; color: var(--muted); }
.item-der { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.monto { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.monto.vacio { color: var(--muted); font-weight: 500; font-size: .92rem; }
.btn-pagar {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--grad); color: var(--sobre-acento); font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.btn-pagar svg { width: 15px; height: 15px; stroke-width: 2.2; }
.btn-pagar.suave { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.tilde { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: rgba(147, 211, 165, .14); color: var(--verde); }
.tilde svg { width: 17px; height: 17px; stroke-width: 2.4; }
.item.vencida { border-color: rgba(240, 139, 122, .32); background: linear-gradient(90deg, rgba(240, 139, 122, .08), rgba(255, 255, 255, .02)); }
.item.vencida .estado { color: var(--rojo); font-weight: 550; }
.item.hoy .estado, .item.pronto .estado { color: var(--ambar); font-weight: 600; }
.item.hoy, .item.pronto { border-color: rgba(245, 176, 65, .3); }
.item.pagada { background: rgba(255, 255, 255, .015); }
.item.pagada b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .28); }
.item.pagada .ico-caja { color: var(--dim); }
.item.pagada .monto { color: var(--muted); }

.banner {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; border-radius: 18px;
  border: 1px solid rgba(16, 185, 129, .3); background: rgba(16, 185, 129, .06);
}
.banner p { flex: 1; font-size: .92rem; color: var(--muted); }
.banner p b { color: var(--text); display: block; }
.banner .btn-pagar { flex-shrink: 0; }
.banner .cerrar-banner { color: var(--muted); min-width: 48px; min-height: 48px; display: grid; place-items: center; }
.banner { flex-wrap: wrap; }

.vacio-mes { text-align: center; padding: 34px 20px; border: 1px dashed var(--line-2); border-radius: 22px; color: var(--muted); margin-top: 22px; }

@media (min-width: 980px) {
  .wrap.ancha { max-width: 1080px; }
  .columnas { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
  .columnas > .izq { position: sticky; top: 84px; }
  .columnas .grupo:first-child { margin-top: 0; }
}

/* Bienvenida */
.bienvenida { text-align: center; padding: 48px 4px 20px; }
.bienvenida .logo-grande { width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 20px 60px -20px rgba(16, 185, 129, .6); }
.bienvenida h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; max-width: 14ch; margin: 0 auto; }
.bienvenida h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.bienvenida > p { margin: 18px auto 0; max-width: 40ch; color: var(--muted); font-size: 1.06rem; }
.bienvenida .btn { margin-top: 30px; }
.rapidos { margin-top: 34px; }
.rapidos > span { display: block; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 14px; }
.rapidos div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rapido { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 550; }
.rapido svg { width: 18px; height: 18px; color: var(--acento-suave); }
.privado { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; color: var(--muted); font-size: .95rem; }
.privado svg { width: 17px; height: 17px; }

/* Paneles (Resumen y Ajustes) */
.titulo-vista { margin: 22px 0 16px; font-size: 1.7rem; font-weight: 650; letter-spacing: -.035em; }
.titulo-vista em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--acento-suave); }
.panel { padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); margin-bottom: 14px; }
.panel h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.panel h3 svg { color: var(--acento-suave); }
.panel > p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.panel .acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.panel .acciones .btn { flex: 1 1 200px; min-height: 48px; }
.panel.pro { border-color: rgba(214, 178, 100, .4); background: radial-gradient(120% 120% at 100% 0%, rgba(214, 178, 100, .14), transparent 60%), var(--card); }
.panel.pro h3 svg { color: var(--oro); }
.sello { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: #1a1306; background: var(--oro-grad); }
.clave { font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .04em; color: var(--text); user-select: all; }
.pie { text-align: center; color: var(--muted); font-size: .92rem; margin: 26px 0 8px; }
.pie a { text-decoration: underline; text-underline-offset: 3px; }

.ventajas { list-style: none; margin: 16px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.ventajas li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .97rem; }
.ventajas li b { color: var(--text); display: block; font-weight: 600; }
.ventajas li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--acento); stroke-width: 2.2; }

/* Resumen del año */
.anio-nav { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: 22px 0 16px; }
.anio-nav h1 { font-size: 1.7rem; font-weight: 650; letter-spacing: -.035em; }
.lectura { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0 14px; color: var(--muted); font-size: .95rem; min-height: 1.5em; }
.lectura b { color: var(--text); font-variant-numeric: tabular-nums; }
.barras { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; height: 170px; border-bottom: 1px solid var(--line-2); }
.barra { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; }
.barra i { display: block; width: min(70%, 26px); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--acento); opacity: .85; transition: opacity .2s; }
.barra.vacia i { background: rgba(255, 255, 255, .12); }
.barra:hover i, .barra.activa i { opacity: 1; background: var(--acento-suave); }
.barras-etq { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 6px; }
.barras-etq span { text-align: center; font-size: .82rem; color: var(--muted); }
.fila-cat { margin-top: 14px; }
.fila-cat .linea { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; }
.fila-cat .linea span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.fila-cat .linea small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.fila-cat .riel { height: 8px; margin-top: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.fila-cat .riel i { display: block; height: 100%; border-radius: 99px; background: var(--acento); }
.tabla { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .95rem; }
.tabla td { padding: 10px 2px; border-top: 1px solid var(--line); }
.tabla td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla small { display: block; color: var(--muted); font-size: .9rem; }
.bloqueado { text-align: center; padding: 34px 22px; }
.bloqueado .ico-caja { margin: 0 auto 18px; width: 58px; height: 58px; border-radius: 18px; }

/* Ventanas (abajo en el celu, al centro en la PC) */
#capa { position: fixed; inset: 0; z-index: 60; display: none; }
#capa.abierta { display: block; }
.fondo { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: aparecer .2s ease; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 8px 20px calc(24px + var(--abajo));
  animation: subir .34s var(--ease);
  box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, .9);
}
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .18); margin: 0 auto 10px; }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) {
  .sheet {
    left: 50%; top: 50%; bottom: auto; width: min(560px, 92vw); max-height: 88vh;
    transform: translate(-50%, -50%); border-radius: 26px; border-bottom: 1px solid var(--line-2);
    padding: 26px 28px 28px; animation: centrar .3s var(--ease);
  }
  .sheet::before { display: none; }
  @keyframes centrar { from { transform: translate(-50%, -47%); opacity: 0; } }
}
.cab { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.cab h2 { flex: 1; font-size: 1.32rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
.cab h2 small { display: block; font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.cab h2 small.rojo { color: var(--rojo); }
.cab h2 small.oro { color: var(--ambar); }
.paso-n { font-size: .92rem; color: var(--acento); font-weight: 600; margin: -8px 0 12px; }
.sheet > p, .sheet form > p { color: var(--muted); margin-bottom: 16px; }
.sheet .pila { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.cat-titulo { font-size: .88rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 650; margin: 18px 0 10px; }
.cat-titulo:first-of-type { margin-top: 0; }
.mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.4rem), 1fr)); gap: 8px; }
.ficha {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card); font-size: .92rem; font-weight: 550; text-align: center; line-height: 1.2;
  transition: border-color .2s, background .2s;
}
.ficha:hover, .ficha:active { border-color: rgba(16, 185, 129, .45); background: rgba(16, 185, 129, .06); }
.ficha svg { color: var(--acento-suave); width: 24px; height: 24px; }

.campo { display: block; margin-bottom: 20px; }
.campo > span { display: block; font-weight: 600; margin-bottom: 8px; }
.campo > span i { font-style: normal; font-weight: 400; color: var(--muted); }
.campo small { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }
.campo input:not([type=hidden]), .campo select {
  width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px; font-size: 1.1rem;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s;
}
.campo select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a09a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.campo select option { background: #18181a; }
.campo input:focus, .campo select:focus { border-color: var(--acento); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.campo input::placeholder { color: #7d7a74; }
.con-signo { position: relative; }
.con-signo b { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; font-size: 1.05rem; }
.campo .con-signo input { padding-left: 34px; font-variant-numeric: tabular-nums; }
.dias { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dias button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-weight: 550; font-variant-numeric: tabular-nums; }
.dias button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--grad); color: var(--sobre-acento); border-color: transparent; font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-weight: 550; font-size: .95rem; }
.chips.lista-v { flex-direction: column; }
.chips.lista-v button { border-radius: 16px; text-align: left; padding: 0 18px; min-height: 54px; font-size: 1.02rem; }
.chips + input { margin-top: 10px; }
.error { color: var(--rojo); font-weight: 550; margin: -6px 0 14px; }
.ok { color: var(--verde); font-weight: 550; margin: 0 0 14px; }

.monto-detalle { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.monto-detalle b { font-size: 1.9rem; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.monto-detalle b.vacio { font-size: 1.1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.datos { margin: 4px 0 16px; }
.datos div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.datos dt { color: var(--muted); }
.datos dd { text-align: right; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tres button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: .92rem; font-weight: 550; }
.tres button svg { color: var(--acento-suave); }
.tres button.peligro svg, .tres button.peligro { color: var(--rojo); }
.opcion { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); text-align: left; width: 100%; }
.opcion b { display: block; font-weight: 600; }
.opcion small { color: var(--muted); font-size: .92rem; }
.opcion > span { flex: 1; }
.pasos-ios { list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 14px; margin: 4px 0 20px; }
.pasos-ios li { counter-increment: p; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.pasos-ios li::before { content: counter(p); flex-shrink: 0; width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; background: var(--grad); color: var(--sobre-acento); font-weight: 700; font-size: .85rem; }
.pasos-ios b { color: var(--text); }

#toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--abajo)); z-index: 80; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 18px; border-radius: 16px; background: #f5f3ee; color: #0b0b0c; font-weight: 550; font-size: .95rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
#toast.ver { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { color: #065f46; font-weight: 700; min-height: 48px; min-width: 48px; padding: 0 10px; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) { #toast { bottom: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.legales { display: flex; flex-direction: column; margin-top: 10px; }
.legales a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 2px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 550; }
.legales a svg { color: var(--muted); width: 18px; height: 18px; }
.letra-chica { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.letra-chica a { color: var(--acento-suave); text-decoration: underline; text-underline-offset: 3px; }
.botones-paso { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.oro-zojim { color: var(--oro); }
.aviso-mes { display: flex; gap: 10px; align-items: flex-start; margin-top: 26px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.aviso-mes svg { width: 20px; height: 20px; color: var(--ambar); margin-top: 2px; }
/* El pie legal de Zojim trae su propio botón de letra; usamos el del encabezado. */
#letra-grande { display: none !important; }
#pie-legal, #pie-legal .pl-titular { font-size: 1rem !important; }
.chips .ver-mas { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; color: var(--acento-suave); }
.chips .ver-mas svg { width: 18px; height: 18px; }
#pie-legal { padding-bottom: 28px !important; margin-top: 40px; background: transparent !important; }
