/* T84 Recargas (página pública). Usa las variables de tv.css (diseño C, claro de día y oscuro de noche con data-tv-tema).
   Celular: pantalla completa, solo el centro se desliza y el botón queda fijo abajo. PC: resumen del pedido al lado. */
:root { --rc-chip: #eef1f6; --rc-sel: rgb(232 87 42 / .08); --rc-apagado: #e6e9f0; --rc-apagado-letra: #6b7690; --rc-mal: #b91c1c; }
:root[data-tv-tema="oscuro"] { --rc-chip: #22304f; --rc-sel: rgb(255 122 69 / .13); --rc-apagado: #2a3550; --rc-apagado-letra: #8590aa; --rc-mal: #f87171; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
.rc-pagina { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: var(--tv-fondo); color: var(--tv-texto);
  font-family: var(--tv-letra); color-scheme: light; }
:root[data-tv-tema="oscuro"] .rc-pagina { color-scheme: dark; }
.rc-pagina button, .rc-pagina input { font: inherit; color: inherit; }
.rc-pagina button { cursor: pointer; }
.rc-pagina button:disabled { cursor: default; }
.rc-pagina :focus-visible { outline: 3px solid var(--tv-acento); outline-offset: 2px; }
.rc-pagina h1 { margin: 0; font-size: clamp(1.4rem, 6.5vw, 1.75rem); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; outline: none; }
.rc-sub { margin: .5rem 0 1.25rem; font-size: .9rem; color: var(--tv-suave); }
.rc-resalta { color: var(--tv-acento-letra); }

.rc-barra { flex: none; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1060px; margin-inline: auto; padding: .75rem 1.25rem .35rem; }
.rc-logo { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; color: var(--tv-texto); }
.rc-logo span { color: var(--tv-acento-letra); }

.rc { flex: 1; min-height: 0; display: flex; width: 100%; max-width: 1060px; margin-inline: auto; }
.rc-lado { display: none; }
.rc-app { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

.rc-pasos { flex: none; display: flex; align-items: center; gap: .65rem; padding: .6rem 1.25rem 0; }
.rc-pasos > div { flex: 1; }
.rc-atras { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--tv-borde); background: transparent; font-size: 1.15rem; }
.rc-atras.oculto { visibility: hidden; }
.rc-paso-texto { font-size: .8rem; font-weight: 600; color: var(--tv-suave); }
.rc-rayas { display: flex; gap: 5px; margin-top: .4rem; }
.rc-rayas span { flex: 1; height: 5px; border-radius: 3px; background: var(--tv-borde); }
.rc-rayas span.lleno { background: var(--tv-acento); }

.rc-cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem 1.25rem 1rem; scrollbar-width: thin; }

/* 1 operadora */
.rc-operadoras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.rc-op { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; border-radius: 20px;
  border: 2px solid var(--tv-borde); background: var(--tv-superficie); font-weight: 800; font-size: 1rem; }
.rc-letra { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--op, #14213d); color: #fff; font-size: .95rem; text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.rc-pagina :is(.rc-op, .rc-combo, .rc-saldo)[aria-pressed="true"] { border-color: var(--tv-acento); background: var(--rc-sel); }

/* 2 recarga */
.rc-tabs { display: flex; gap: 3px; padding: 3px; margin-top: 1.1rem; border-radius: 14px; background: var(--tv-superficie); border: 1px solid var(--tv-borde); }
.rc-tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: var(--tv-suave); font-weight: 700; font-size: .9rem; }
.rc-pagina .rc-tabs button[aria-pressed="true"] { background: var(--tv-fondo); color: var(--tv-texto); box-shadow: 0 1px 5px rgb(0 0 0 / .14); }
.rc-pagina .rc-tabs button:disabled { opacity: .4; }
.rc-filtros { display: flex; gap: .4rem; margin-top: .85rem; flex-wrap: wrap; }
.rc-filtros button { min-height: 36px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--tv-borde); background: transparent; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.rc-pagina .rc-filtros button[aria-pressed="true"] { background: var(--tv-texto); border-color: var(--tv-texto); color: var(--tv-fondo); }
.rc-combos { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; margin-top: .75rem; }
.rc-combo { display: flex; align-items: center; gap: .9rem; text-align: left; padding: .95rem 1rem; border-radius: 18px; border: 2px solid var(--tv-borde); background: var(--tv-superficie); }
.rc-combo-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.rc-combo-info > b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; overflow-wrap: anywhere; }
.rc-combo-info small { margin-top: .1rem; font-size: .8rem; color: var(--tv-suave); }
.rc-combo-precio { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.rc-combo-precio b { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rc-combo-precio em { padding: .18rem .6rem; border-radius: 999px; background: var(--rc-chip); font-style: normal; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.rc-top { display: inline-block; margin-bottom: .35rem; padding: .12rem .5rem; border-radius: 6px; background: var(--tv-acento); color: var(--tv-acento-texto); font-size: .68rem; font-weight: 800; }
.rc-saldos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.rc-saldo { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .6rem; border-radius: 18px; border: 2px solid var(--tv-borde); background: var(--tv-superficie); }
.rc-saldo b { font-size: 1.6rem; font-weight: 800; }
.rc-saldo small { font-size: .75rem; color: var(--tv-suave); }
.rc-saldo .rc-top { margin: .35rem 0 0; }
.rc-vacio { text-align: center; color: var(--tv-suave); font-size: .88rem; padding: 1.5rem 0; }

/* 3 número */
[data-paso="3"] { max-width: 380px; margin-inline: auto; text-align: center; }
[data-paso="3"] .rc-sub { margin-bottom: 0; }
.rc-numero { margin-top: 1rem; min-height: 52px; font-size: clamp(1.9rem, 10vw, 2.4rem); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  border-bottom: 2px solid var(--tv-borde); white-space: nowrap; }
.rc-numero i { display: inline-block; width: 3px; height: .9em; margin-left: 3px; vertical-align: -.08em; background: var(--tv-acento); animation: rc-cursor 1s steps(1) infinite; }
@keyframes rc-cursor { 50% { opacity: 0; } }
.rc-estado { margin: .55rem 0 0; font-size: .82rem; color: var(--tv-suave); }
.rc-estado.bien { color: var(--tv-verde); font-weight: 700; }
.rc-teclado { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .85rem; }
.rc-teclado button { min-height: 56px; border-radius: 16px; border: 0; background: var(--tv-superficie); font-size: 1.5rem; font-weight: 600; touch-action: manipulation; user-select: none; }
.rc-teclado button:active { background: var(--rc-chip); transform: scale(.97); }
.rc-otro { margin-top: .75rem; }
.rc-enlace { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .5rem; border: 0; background: transparent; color: var(--tv-acento-letra) !important; font-weight: 700; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }
.rc-otro label { display: flex; flex-direction: column; gap: .35rem; margin-top: .35rem; text-align: left; font-size: .82rem; color: var(--tv-suave); }
.rc-otro input { min-height: 48px; padding: 0 .9rem; border-radius: 14px; border: 2px solid var(--tv-borde); background: var(--tv-superficie); color: var(--tv-texto) !important; font-size: 1.15rem; font-weight: 700; }
@media (max-height: 700px) { .rc-teclado button { min-height: 46px; } .rc-numero { margin-top: .4rem; min-height: 44px; } .rc-teclado { margin-top: .5rem; gap: .4rem; } .rc-cuerpo { padding-top: .75rem; } }

/* 4 pago */
.rc-pago { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-top: 1.1rem; }
.rc-cuadro { padding: 1.1rem; border-radius: 22px; background: var(--tv-marino); color: #fff; }
.rc-cuadro-detalle { font-size: .82rem; opacity: .85; }
.rc-linea { display: flex; justify-content: space-between; gap: 1rem; margin-top: .35rem; font-size: .85rem; opacity: .9; }
.rc-linea:first-of-type { margin-top: .75rem; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgb(255 255 255 / .2); }
.rc-total strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.rc-cuenta { margin-top: .85rem; padding: .75rem .9rem; border-radius: 14px; background: rgb(255 255 255 / .1); font-size: .8rem; line-height: 1.5; }
.rc-cuenta-nro { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.rc-cuenta-nro b { font-size: 1.15rem; letter-spacing: .04em; user-select: all; }
.rc-pagina .rc-cuenta button { min-height: 36px; padding: 0 .8rem; border-radius: 10px; border: 1px solid rgb(255 255 255 / .4); background: transparent; color: #fff; font-size: .78rem; font-weight: 700; }
.rc-cuenta small { display: block; opacity: .85; font-size: .72rem; }
.rc-subir { display: flex; flex-direction: column; }
.rc-foto { flex: 1; width: 100%; min-height: 96px; display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .75rem; border-radius: 20px;
  border: 2px dashed var(--tv-borde); background: var(--tv-superficie); font-weight: 700; font-size: .95rem; }
.rc-pagina .rc-foto.lista { border-color: var(--tv-verde); background: transparent; color: var(--tv-verde); }
.rc-foto img { width: 58px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.rc-foto svg { flex: none; }
.rc-aviso-a { margin: .6rem 0 0; text-align: center; font-size: .8rem; }
.rc-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rc-error { margin-top: .75rem; padding: .8rem 1rem; border-radius: 14px; border: 1.5px solid var(--rc-mal); color: var(--rc-mal); font-size: .88rem; font-weight: 600; }

/* final */
.rc-listo { text-align: center; padding-top: clamp(1rem, 8vh, 4rem); }
.rc-check { width: 96px; height: 96px; margin: 0 auto 1.6rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tv-acento); color: var(--tv-acento-texto); }
.rc-listo p { max-width: 26rem; margin: .75rem auto 0; font-size: .95rem; line-height: 1.55; color: var(--tv-suave); }
.rc-listo p b { color: var(--tv-texto); }

.rc-pie { flex: none; padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--tv-borde); background: var(--tv-fondo); }
.rc-pagina .rc-boton { width: 100%; min-height: 56px; border: 0; border-radius: 16px; background: var(--tv-acento); color: var(--tv-acento-texto); font-weight: 800; font-size: 1.03rem; }
.rc-pagina .rc-boton:disabled { background: var(--rc-apagado); color: var(--rc-apagado-letra); }

/* tableta: columna centrada */
@media (min-width: 600px) {
  .rc-app { max-width: 640px; margin-inline: auto; }
  .rc-operadoras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rc-saldos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* computadora: resumen a la izquierda, asistente en una tarjeta */
@media (min-width: 920px) {
  .rc { gap: 1.25rem; padding: .75rem 1.25rem 1.5rem; max-height: 820px; margin-block: auto; }
  .rc-lado { flex: none; width: 340px; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.6rem; border-radius: 22px; background: var(--tv-marino); color: #fff; overflow-y: auto; }
  .rc-lado h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
  .rc-resumen { margin: 0; display: grid; gap: .5rem; }
  .rc-resumen div { padding: .65rem .85rem; border-radius: 14px; background: rgb(255 255 255 / .1); }
  .rc-resumen dt { font-size: .72rem; opacity: .75; }
  .rc-resumen dd { margin: .1rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
  .rc-resumen .rc-resumen-total dd { font-size: 1.8rem; font-weight: 800; color: #ffb48f; }
  .rc-como { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .84rem; opacity: .9; }
  .rc-ayuda { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 14px; border: 1.5px solid rgb(255 255 255 / .45); color: #fff; font-weight: 700; font-size: .86rem; text-decoration: none; }
  .rc-app { max-width: none; border: 1px solid var(--tv-borde); border-radius: 22px; overflow: hidden; }
  .rc-pasos { padding-top: 1.1rem; }
  .rc-cuerpo { padding: 1.5rem 1.75rem 1rem; }
  .rc-combos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-operadoras .rc-op { min-height: 124px; }
  .rc-pago { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .rc-foto { flex-direction: column; text-align: center; }
  .rc-foto img { width: 110px; height: 150px; }
  .rc-pie { padding: 1rem 1.75rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .rc-numero i { animation: none; } }
