/*
 * Portal de cobro · stdiomx.com/portal · Editorial v3, modo claro, solo móvil (390).
 *
 * Los colores se copian UNA vez de app/src/theme/tokens.json (`v3`, valor `light`), que es el
 * export de las variables del .pen. Si allá cambian, se cambian aquí: ninguna otra regla de este
 * archivo lleva un hex.
 *
 * Fuentes en /fuentes/: Inter 400–700 y Playfair 400 (woff2 del landing), más Poppins 700 y
 * Playfair 600 copiados en TTF de app/node_modules/@expo-google-fonts (OFL; sin conversor a woff2
 * en el repo). Los títulos y cifras van en Playfair 400.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fuentes/inter-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fuentes/inter-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fuentes/inter-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fuentes/inter-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fuentes/playfair-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fuentes/playfair-600.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fuentes/poppins-700.ttf") format("truetype");
}

:root {
  /* Sombra de tarjeta en escritorio, literal del canvas (0 2 10 #0000000D). */
  --sombra-escritorio: 0 2px 10px #0000000D;

  /* ---- v3 · light (tokens.json) ---- */
  --v3-base: #FAF7F2;
  --v3-porcelain: #FFFFFF;
  --v3-surface: #FFFFFF;
  --v3-sand: #F3E9DE;
  --v3-sand-soft: #F3E9DE;
  --v3-line: #E5E7EB;
  --v3-ink: #1F2937;
  --v3-ink-secondary: #6B7280;
  --v3-ink-muted: #9CA3AF;
  --v3-ink-deep: #0F172A;
  --v3-on-ink: #FFFFFF;
  --v3-on-ink-muted: #FFFFFFB8;
  --v3-clay: #9A7B4F;
  --v3-clay-deep: #6F5634;
  --v3-cta-primary: #0F172A;
  --v3-cta-primary-on: #FFFFFF;
  --v3-focus-ring: #0F172A;
  --v3-side-row: #FFFFFF14;
  --v3-success: #0E5A78;
  --v3-success-soft: #E9F4ED;
  --v3-danger: #B3261E;
  --v3-danger-soft: #F9E3E1;
  --v3-danger-ink: #7D2825;
  --v3-warning: #8A5A12;
  --v3-scrim: #1F293799;
  --v3-shadow-ink: #1F29370F;
  --v3-logo-dot-on-deep: #C9AA72;
  /* `logoMark` en su valor oscuro: en el portal la marca siempre va sobre tinta. */
  --v3-logo-mark: #F5F1EA;

  /* ---- radios v3 ---- */
  --v3-radius-xs: 8px;
  --v3-radius-otp: 10px;
  --v3-input-radius: 12px;
  --v3-radius-btn: 14px;
  --v3-radius-pill: 999px;
  --radio-hoja: 28px;

  /* ---- familias ---- */
  --v3-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --v3-font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --v3-font-logo: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --duracion: 220ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--v3-base);
  color: var(--v3-ink);
  font-family: var(--v3-font-ui);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

svg {
  flex-shrink: 0;
}

.solo-lector {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--v3-focus-ring);
  outline-offset: 2px;
}

/* Sin diseño propio en desktop: la misma columna móvil, centrada. */
.pagina {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--v3-base);
}

/* ------------------------------------------------------------------ banda */

.banda {
  background: var(--v3-ink-deep);
  color: var(--v3-on-ink);
  padding: 22px 20px 26px;
}

.banda :focus-visible {
  outline-color: var(--v3-on-ink);
}

.banda__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.marca {
  font-family: var(--v3-font-logo);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--v3-logo-mark);
  margin: 0;
}

/* El punto del logotipo es un círculo de 5.6, no un glifo «.» (canvas corregido, 1-oct). */
.marca__punto {
  display: inline-block;
  width: 5.6px;
  height: 5.6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--v3-logo-dot-on-deep);
  vertical-align: baseline;
}

.sesion {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sesion__negocio {
  font-size: 12px;
  color: var(--v3-on-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.sesion__salir {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--v3-on-ink);
  font: 600 13px/1 var(--v3-font-ui);
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  cursor: pointer;
}

.banda__titulo {
  margin: 20px 0 0;
  font-family: var(--v3-font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: var(--v3-on-ink);
}

.banda__sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--v3-on-ink-muted);
}

.chip {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-side-row);
  color: var(--v3-on-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

/* ------------------------------------------------------------------ cuerpo */

.cuerpo {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tarjeta {
  margin: 0;
  background: var(--v3-porcelain);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 2px var(--v3-shadow-ink);
}

.tarjeta--arena {
  background: var(--v3-sand-soft);
  box-shadow: none;
}

.tarjeta--peligro {
  background: var(--v3-danger-soft);
  box-shadow: none;
  color: var(--v3-danger-ink);
  font-size: 14px;
}

.caja-ayuda {
  background: var(--v3-sand-soft);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: var(--v3-ink);
  margin: 0;
}

.rotulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--v3-clay-deep);
}

.cifra {
  margin: 0;
  font-family: var(--v3-font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  color: var(--v3-clay-deep);
}

.texto {
  margin: 0;
  font-size: 14px;
  color: var(--v3-ink);
}

.texto--sec {
  color: var(--v3-ink-secondary);
}

.ayuda {
  margin: 0;
  font-size: 12px;
  color: var(--v3-ink-secondary);
}

.micro {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--v3-ink-secondary);
  text-align: center;
}

.nota {
  margin: 0;
  font-size: 11px;
  color: var(--v3-ink-muted);
}

.pie {
  margin: 8px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--v3-clay-deep);
}

.pie a {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  padding: 12px 0;
}

.pie a:hover {
  text-decoration: underline;
}

.pies {
  display: flex;
  flex-direction: column;
}

.pies .pie {
  margin: 0;
}

.error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--v3-danger);
}

.error:empty {
  display: none;
}

/* ------------------------------------------------------------------ botones */

.boton {
  appearance: none;
  border: 0;
  width: 100%;
  height: 52px;
  border-radius: var(--v3-radius-btn);
  padding: 0 20px;
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  gap: 8px;
  font: 600 15px/1 var(--v3-font-ui);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.boton--primario {
  height: 54px;
  font-size: 16px;
  background: var(--v3-cta-primary);
  color: var(--v3-cta-primary-on);
}

.boton--secundario {
  background: var(--v3-sand-soft);
  color: var(--v3-ink);
}

.boton:disabled,
.boton[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.boton__texto {
  grid-column: 2;
}

.boton__flecha {
  grid-column: 3;
  width: 20px;
  height: 20px;
}

.enlace {
  appearance: none;
  border: 0;
  background: transparent;
  align-self: center;
  min-height: 44px;
  padding: 0 8px;
  font: 600 13px/1 var(--v3-font-ui);
  color: var(--v3-clay-deep);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.enlace:disabled {
  color: var(--v3-ink-secondary);
  cursor: default;
}

.enlace--peligro {
  color: var(--v3-danger);
}

/* ------------------------------------------------------------------ campos */

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo__etiqueta {
  font-size: 13px;
  font-weight: 500;
  color: var(--v3-ink);
}

.campo__fila {
  display: flex;
  gap: 10px;
}

.campo__caja {
  flex: 1;
  min-width: 0;
  height: 52px;
  border-radius: var(--v3-input-radius);
  background: var(--v3-porcelain);
  border: 1px solid var(--v3-line);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--v3-ink-secondary);
}

.campo__caja:focus-within {
  outline: 2px solid var(--v3-focus-ring);
  outline-offset: 1px;
}

.campo__caja--error {
  border-color: var(--v3-danger);
}

.campo__caja input,
.campo__caja select {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: 400 16px var(--v3-font-ui);
  color: var(--v3-ink);
  padding: 0;
}

.campo__caja select {
  appearance: none;
  cursor: pointer;
}

.campo__caja input::placeholder {
  color: var(--v3-ink-secondary);
}

/* ------------------------------------------------------------------ OTP */

.otp {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.otp input {
  width: 48px;
  height: 56px;
  min-width: 0;
  border-radius: var(--v3-radius-otp);
  background: var(--v3-porcelain);
  border: 1px solid var(--v3-line);
  text-align: center;
  font: 500 24px var(--v3-font-ui);
  color: var(--v3-ink);
  padding: 0;
  caret-color: var(--v3-ink-deep);
}

.otp input:focus {
  border: 2px solid var(--v3-ink-deep);
  outline: none;
}

.otp input:disabled {
  opacity: 0.5;
}

/* ------------------------------------------------------------------ filas */

.fila {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.fila__textos {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fila__titulo {
  font-size: 15px;
  font-weight: 600;
  color: var(--v3-ink);
}

.fila__titulo--14 {
  font-size: 14px;
}

.fila__sub {
  font-size: 11px;
  color: var(--v3-ink-secondary);
}

.fila__monto {
  font-size: 15px;
  font-weight: 600;
  color: var(--v3-ink);
  text-align: right;
}

.fila__monto--gratis {
  color: var(--v3-success);
}

.fila__monto--sin-precio {
  font-size: 12px;
  color: var(--v3-ink-secondary);
}

.fila__sub--reembolso {
  color: var(--v3-warning);
}

/* La puerta: porcelana r12, alto 56. */
.puerta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--v3-porcelain);
  color: var(--v3-ink);
  text-decoration: none;
}

.puerta__icono {
  width: 20px;
  height: 20px;
  color: var(--v3-ink);
}

.puerta__chevron {
  width: 16px;
  height: 16px;
  color: var(--v3-ink-muted);
}

.puertas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ------------------------------------------------------------------ W3 · Stdio AI por sucursal (D-6) */

.tarjeta--sucursales {
  padding: 4px 16px;
  gap: 0;
  border-radius: 16px;
  box-shadow: var(--sombra-escritorio);
}

.sucursal-ai {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 12px;
}

.sucursal-ai--pedida {
  background: var(--v3-sand-soft);
}

.sucursal-ai__textos {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.sucursal-ai__nombre {
  font-size: 15px;
  font-weight: 600;
  color: var(--v3-ink);
}

.sucursal-ai__linea {
  font-size: 12px;
  color: var(--v3-ink-secondary);
}

.sucursal-ai__linea--aviso {
  color: var(--v3-warning);
}

.sucursal-ai--suspendida .sucursal-ai__nombre {
  color: var(--v3-ink-secondary);
}

.chip-pedida {
  padding: 3px 8px;
  border-radius: var(--v3-radius-xs);
  background: var(--v3-porcelain);
  color: var(--v3-clay-deep);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

/* Enlace de 12 con diana de 44: el padding crece hacia fuera sin mover la línea. */
.sucursal-ai__mantener {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 14px 0;
  margin: -12px 0;
  font: 600 12px/1.3 var(--v3-font-ui);
  color: var(--v3-clay-deep);
  cursor: pointer;
}

.resumen-ai__hoy {
  margin: 0;
  font-size: 13px;
  color: var(--v3-ink-secondary);
}

.resumen-ai__cambios {
  gap: 4px;
}

.resumen-ai__cambio {
  font-size: 14px;
  font-weight: 600;
}

.resumen-ai__cambio--mas {
  color: var(--v3-clay-deep);
}

.resumen-ai__cambio--menos {
  color: var(--v3-ink-secondary);
}

.resumen-ai__rotulo {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--v3-ink-secondary);
}

.resumen-ai .cifra {
  font-size: 34px;
}

.resumen-ai .boton {
  margin-top: 6px;
}

.resumen-ai__plan {
  align-self: center;
  font-weight: 600;
}

/* ------------------------------------------------------------------ interruptor */

.interruptor {
  appearance: none;
  border: 0;
  width: 51px;
  height: 31px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-sand);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duracion);
  /* Diana de 44: el borde invisible agranda el área sin moverla. */
  outline-offset: 2px;
  box-shadow: 0 0 0 7px transparent;
}

.interruptor::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--v3-porcelain);
  box-shadow: 0 1px 2px var(--v3-shadow-ink);
  transition: transform var(--duracion);
}

.interruptor[aria-checked="true"] {
  background: var(--v3-cta-primary);
}

.interruptor[aria-checked="true"]::after {
  transform: translateX(20px);
}

.interruptor:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* W3: 44×26. */
.interruptor--chico {
  width: 44px;
  height: 26px;
  box-shadow: 0 0 0 9px transparent;
}

.interruptor--chico::after {
  width: 20px;
  height: 20px;
}

.interruptor--chico[aria-checked="true"]::after {
  transform: translateX(18px);
}

/* ------------------------------------------------------------------ esqueleto y spinner */

.esqueleto {
  border-radius: 14px;
  background: var(--v3-sand-soft);
  animation: latido 1.2s ease-in-out infinite;
}

.esqueleto--chico {
  height: 120px;
}

.esqueleto--grande {
  height: 180px;
}

.esqueleto--puerta {
  height: 56px;
  border-radius: 12px;
}

@keyframes latido {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.giro {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--v3-sand);
  border-top-color: var(--v3-clay-deep);
  animation: giro 0.9s linear infinite;
  align-self: center;
  margin: 12px 0;
}

@keyframes giro {
  to {
    transform: rotate(360deg);
  }
}

.centrado {
  text-align: center;
  align-items: center;
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--v3-ink-deep);
  color: var(--v3-on-ink);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duracion), transform var(--duracion);
  z-index: 20;
}

.toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------ hoja de confirmación
 * Regla dura 5c: el velo entra con fade (opacidad) y la hoja sube aparte, misma duración.
 */

.dialogo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.dialogo::backdrop {
  background: transparent;
}

.dialogo__velo {
  position: absolute;
  inset: 0;
  background: var(--v3-scrim);
  opacity: 0;
  transition: opacity var(--duracion) ease-out;
}

.dialogo__hoja {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  transform: translate(-50%, 100%);
  transition: transform var(--duracion) ease-out;
  background: var(--v3-base);
  border-radius: var(--radio-hoja) var(--radio-hoja) 0 0;
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialogo--abierto .dialogo__velo {
  opacity: 1;
}

.dialogo--abierto .dialogo__hoja {
  transform: translate(-50%, 0);
}

.dialogo__titulo {
  margin: 0;
  font-family: var(--v3-font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--v3-ink);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------ utilitarios */

.pila,
.bloque {
  display: flex;
  flex-direction: column;
}

.pila {
  gap: 14px;
}

.bloque {
  gap: 8px;
}

.lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.puertas {
  list-style: none;
  margin: 0;
  padding: 0;
}

.puerta--boton {
  appearance: none;
  border: 0;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.boton--peligro {
  background: var(--v3-danger);
  color: var(--v3-on-ink);
}

.fila__accion {
  margin-left: auto;
}

/* «‹ Mi plan»: no está en el handoff; se añadió para no dejar callejones en web (ver README). */
.volver {
  align-self: flex-start;
  padding-left: 0;
  margin: -12px 0 -8px;
}

/* Un campo suelto (sin fila de país) no se estira: en columna, flex:1 lo aplastaba. */
.campo > .campo__caja {
  flex: none;
}

/* Una lista que es tarjeta conserva el padding de la tarjeta. */
.tarjeta.lista {
  padding: 14px;
}

/* El título recibe foco por script para anunciarse; no lleva anillo. */
[tabindex="-1"]:focus {
  outline: none;
}

/* ------------------------------------------------------------------ móvil / escritorio */

.solo-escritorio {
  display: none !important;
}

.columnas,
.columnas__izq,
.columnas__der {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/*
 * ESCRITORIO ≥1024 · calcado del canvas a 1440: banda a sangre con márgenes laterales de 152
 * (contenido de hasta 1136), título Playfair 44. Entre 1024 y 1440 el margen baja en proporción.
 */
@media (min-width: 1024px) {
  :root {
    --margen: max(clamp(40px, 10.56vw, 152px), calc((100% - 1136px) / 2));
  }

  .solo-escritorio {
    display: revert !important;
  }

  .fila.solo-escritorio {
    display: flex !important;
  }

  .solo-movil {
    display: none;
  }

  .pagina {
    max-width: none;
  }

  .banda {
    padding: 28px var(--margen) 40px;
  }

  .banda__titulo {
    margin-top: 24px;
    font-size: 44px;
    line-height: 1.1;
  }

  .banda__sub {
    margin-top: 8px;
    font-size: 15px;
  }

  .cuerpo {
    padding: 32px var(--margen) 48px;
  }

  /* Columnas centradas: W1/W1b/W1c/W1d/W1e/W8 a 460; W4/W5 a 640; W6 a 760. */
  .cuerpo--460,
  .cuerpo--640,
  .cuerpo--760 {
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
  }

  .cuerpo--460 {
    max-width: 460px;
  }

  .cuerpo--640 {
    max-width: 640px;
  }

  .cuerpo--760 {
    max-width: 760px;
  }

  /* W2: izquierda «Tu próximo pago» + desglose; derecha de 420, Pagar + micro + puertas de 64. */
  .columnas {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .columnas__izq {
    flex: 1;
    min-width: 0;
  }

  .columnas__der {
    width: 420px;
    flex-shrink: 0;
  }

  .columnas__der .puerta {
    min-height: 64px;
  }

  /* W3: lista a la izquierda, Resumen de 420 a la derecha y pegado al hacer scroll. */
  .columnas--ai .columnas__der {
    position: sticky;
    top: 24px;
  }

  /* W6: tabla · fecha · concepto/estado · monto. */
  .fila--pago {
    gap: 24px;
    min-height: 60px;
  }

  .fila__fecha {
    width: 96px;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--v3-ink-secondary);
  }

  .fila--cabecera {
    min-height: 36px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--v3-clay-deep);
  }

  .fila--cabecera .fila__fecha,
  .fila--cabecera .fila__monto {
    font-size: 11px;
    font-weight: 700;
    color: var(--v3-clay-deep);
  }

  /* W7: campos de a dos. */
  .cuerpo--factura {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 18px;
    align-items: start;
  }

  .cuerpo--factura > :not(.campo) {
    grid-column: 1 / -1;
  }

  .cuerpo--factura > .boton {
    justify-self: end;
    width: 320px;
  }

  /* Hoja de confirmación: en escritorio, centrada en vez de pegada abajo. */
  .dialogo__hoja {
    bottom: 50%;
    max-width: 460px;
    border-radius: var(--radio-hoja);
    transform: translate(-50%, 50%) scale(0.96);
    opacity: 0;
    transition: transform var(--duracion) ease-out, opacity var(--duracion) ease-out;
  }

  .dialogo--abierto .dialogo__hoja {
    transform: translate(-50%, 50%) scale(1);
    opacity: 1;
  }
}

.ayuda--privacidad a {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  font-weight: 600;
  color: var(--v3-clay-deep);
}


/* ------------------------------------------------------------------ correcciones del guard · 1-oct */

.campo__prefijo {
  font-size: 16px;
  color: var(--v3-ink);
}

.caja-ayuda--chica {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--v3-ink-secondary);
}

.enlace--chico {
  font-size: 12px;
  font-weight: 400;
}

#proximo-fecha {
  font-size: 12px;
}

/* El desglose en móvil va sin sombra; en escritorio la recupera (abajo). */
#desglose {
  box-shadow: none;
}

@media (min-width: 1024px) {
  .banda {
    padding: 24px var(--margen) 44px;
  }

  .banda__titulo {
    margin-top: 28px;
  }

  .banda__sub,
  .chip {
    margin-top: 10px;
  }

  .chip {
    font-size: 13px;
  }

  .sesion {
    gap: 16px;
  }

  .sesion__negocio {
    font-size: 14px;
    max-width: 320px;
  }

  .sesion__salir {
    font-size: 14px;
  }

  .cuerpo {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .micro {
    font-size: 12px;
  }

  /* W2 */
  .columnas {
    gap: 32px;
  }

  .columnas__izq {
    gap: 16px;
  }

  .columnas__der {
    gap: 12px;
  }

  .columnas .tarjeta {
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--sombra-escritorio);
  }

  .columnas .tarjeta--arena,
  .columnas .tarjeta--peligro {
    box-shadow: none;
  }

  .columnas #desglose {
    padding: 16px 22px;
    box-shadow: var(--sombra-escritorio);
  }

  .columnas .cifra {
    font-size: 44px;
  }

  .banda__sub {
    font-size: 17px;
    line-height: 1.45;
  }

  #proximo-fecha {
    font-size: 14px;
    color: var(--v3-ink-secondary);
  }

  #desglose .fila {
    min-height: 58px;
  }

  #desglose .fila__titulo,
  #desglose .fila__monto {
    font-size: 16px;
  }

  #desglose .fila__sub {
    font-size: 12px;
  }

  .columnas__der .puerta {
    border-radius: 14px;
    padding: 0 18px;
    gap: 14px;
    box-shadow: var(--sombra-escritorio);
  }

  .columnas__der .puerta .fila__titulo {
    font-size: 15px;
  }

  .columnas__der .puerta .fila__sub {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  /* W3: `.columnas .tarjeta` pide padding 22; la de sucursales es 4/16 (canvas). */
  .columnas .tarjeta--sucursales {
    padding: 4px 16px;
  }

  .columnas .resumen-ai .cifra {
    font-size: 34px;
  }
}
