/* Portal de alumnas
   Autor: Sebastian Navarro */

.portal {
  --negro: #fff;
  --carbon: #fff;
  --carbon-2: #f2f2f2;
  --crema: #0a0a0a;
  --texto: #0a0a0a;
  --texto-suave: rgba(10, 10, 10, .62);
  --linea: rgba(10, 10, 10, .14);
  --ambar: #0a0a0a;
  --ambar-suave: transparent;
  --arena: #a3a3a3;
  --madera: #fff;
  --radio: 0px;
  --fuente: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  /* Modificacion: Sebastian Navarro - 06/11/2026. Ver README_modificaciones_mejoras.md
     Codigo anterior: --titulo: "Mona Sans", "Helvetica Neue", Arial, sans-serif; */
  --titulo: "Snowflake Sans", "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  color: #0a0a0a;
}
body.portal h1, body.portal h2, body.portal h3 { font-family: var(--titulo); font-weight: 500; font-stretch: 100%; letter-spacing: -.04em; }
.saludo h1 em { font-family: inherit; font-style: normal; font-weight: 500; color: inherit; }
.dy-lineas { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.dy-lineas i { border-right: 1px solid rgba(0, 0, 0, .06); }
.portal .etiqueta::before { box-shadow: none; }
.portal .btn-brillo { background: #0a0a0a; color: #fff; box-shadow: none; }
.portal .btn-brillo::after { display: none; }
.portal .btn-vidrio { background: #fff; border: 1px solid #0a0a0a; backdrop-filter: none; -webkit-backdrop-filter: none; }
.portal .vidrio, .kpi-anillo, .dialogo-caja { background: #fff; border: 1px solid #0a0a0a; backdrop-filter: none; -webkit-backdrop-filter: none; }
.avatar { background: #0a0a0a; color: #fff; }
.progreso i { background: #0a0a0a; }
.kpi-renovar { justify-self: start; font-size: .85rem; font-weight: 600; border-bottom: 1.5px solid currentColor; }
.barra-nav { display: none; gap: 26px; font-size: .88rem; font-weight: 500; }
.barra-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 960px) { .barra-nav { display: flex; } }


/* Modificacion: Sebastian Navarro - 06/11/2026. Ver README_modificaciones_mejoras.md
   Codigo anterior: .logo-p, .logo-f { display: block; font-family: var(--titulo); font-weight: 800; font-size: .85rem; line-height: .95; letter-spacing: -.02em; } */
.logo-marca { display: block; width: 72px; height: auto; }

.vidrio {
  background: linear-gradient(160deg, rgba(10, 10, 10, .07), rgba(10, 10, 10, .02));
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.modo-ligero .vidrio { background: var(--carbon); }

.btn-ancho { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ===== Ingreso ===== */
.ingreso {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 30vh 1fr;
  background: #fff;
}
.ingreso-fondo { position: relative; overflow: hidden; }
.ingreso-fondo img { width: 100%; height: 100%; object-fit: cover; }
.ingreso-volver { position: absolute; z-index: 2; top: max(16px, env(safe-area-inset-top)); left: 16px; padding: 8px 14px; border-radius: 999px; background: #fff; color: #0a0a0a; font-size: .82rem; font-weight: 600; }
.ingreso-volver:hover { background: #0a0a0a; color: #fff; }
.ingreso-enlaces { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.ingreso-enlaces a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .ingreso { grid-template-rows: none; grid-template-columns: 1.25fr 1fr; }
}

.ingreso-tarjeta {
  width: min(420px, 100%);
  place-self: center;
  padding: 32px 20px;
  display: grid;
  gap: 16px;
}
.ingreso-logo { margin-bottom: 10px; }
.ingreso-tarjeta h1 { font-size: 2.6rem; line-height: 1; }
.ingreso-sub { color: var(--texto-suave); font-size: .92rem; margin-top: -6px; }

.campo { display: grid; gap: 6px; font-size: .8rem; color: var(--texto-suave); }
.campo input {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px evita el zoom automatico en iPhone */
  color: var(--texto);
  padding: 14px 16px;
  border-radius: 0;
  background: rgba(10, 10, 10, .05);
  border: 1px solid var(--linea);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.campo input:focus { border-color: rgba(10, 10, 10, .7); }
.campo-clave { position: relative; }
.campo-clave button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; font-size: .78rem; color: var(--texto-suave); }

.ingreso-error { min-height: 1.2em; font-size: .85rem; color: #b3261e; }
.ingreso-demo {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px dashed rgba(10, 10, 10, .35);
  font-size: .82rem;
  color: var(--texto-suave);
}
.ingreso-demo strong { color: var(--ambar); font-weight: 600; }
.ingreso-demo button { justify-self: start; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; color: var(--texto); font-size: .82rem; }

/* ===== Barra superior ===== */
.panel { position: relative; z-index: 2; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.barra {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--linea);
}
.modo-ligero .barra { background: var(--negro); }
.barra-derecha { display: flex; align-items: center; gap: 10px; }
.barra-modo { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--texto-suave); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--linea); }
.barra-modo .punto { width: 7px; height: 7px; border-radius: 50%; background: rgba(10, 10, 10, .3); }
.modo-ligero .barra-modo { color: var(--ambar); border-color: rgba(10, 10, 10, .4); }
.modo-ligero .barra-modo .punto { background: var(--ambar); }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: #0a0a0a;
}
.barra-salir { font-size: .85rem; color: var(--texto-suave); }
.barra-salir:hover { color: var(--texto); }
@media (max-width: 420px) { .barra-modo-txt { display: none; } }

.panel-contenido { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: grid; gap: 56px; }

/* ===== Resumen ===== */
.resumen { padding-top: 28px; display: grid; gap: 22px; scroll-margin-top: 80px; }
.saludo h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); font-weight: 800; font-stretch: 80%; letter-spacing: -.03em; line-height: 1; margin-top: 10px; }

.kpis { display: grid; gap: 14px; }
.kpi { padding: 22px; border-radius: var(--radio); }
.kpi-titulo { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--texto-suave); }

.kpi-anillo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
}
.anillo {
  --p: 0;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--carbon) 80%, transparent 81%),
    conic-gradient(var(--ambar) calc(var(--p) * 1turn), rgba(10, 10, 10, .08) 0);
  transition: --p 1s var(--ease);
}
@property --p { syntax: "<number>"; initial-value: 0; inherits: false; }
.anillo-centro { text-align: center; line-height: 1.05; }
.anillo-centro b { font-size: 2.8rem; font-weight: 900; display: block; }
.anillo-centro span { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-suave); }

.kpi-plan { display: grid; gap: 10px; }
.kpi-chip { justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(10, 10, 10, .14); color: var(--ambar); font-size: .8rem; font-weight: 600; }
.kpi-plan p { font-size: .88rem; color: var(--texto-suave); }

/* Una rayita por cada clase del plan */
.barra-clases { display: flex; gap: 4px; flex-wrap: wrap; }
.barra-clases i { flex: 1 0 8px; max-width: 26px; height: 8px; border-radius: 4px; background: rgba(10, 10, 10, .1); }
.barra-clases i.hecha { background: var(--arena); }
.barra-clases i.mia { background: var(--ambar); }

.kpi-vence { display: grid; gap: 10px; align-content: start; }
.kpi-numero { display: flex; align-items: baseline; gap: 8px; }
.kpi-numero b { font-size: 3.4rem; font-weight: 900; font-stretch: 80%; line-height: 1; }
.kpi-numero span { color: var(--texto-suave); }
.progreso { height: 8px; border-radius: 999px; background: rgba(10, 10, 10, .08); overflow: hidden; }
.progreso i { display: block; height: 100%; width: 0; border-radius: inherit; background: #0a0a0a; transition: width 1s var(--ease); }
.kpi-pie { font-size: .82rem; color: var(--texto-suave); }
.kpi-vence.urgente .kpi-numero b { color: #b3261e; }
.kpi-vence.urgente .progreso i { background: #b3261e; }

.kpi-consejo { display: grid; gap: 10px; align-content: start; }
.kpi-consejo p { font-size: 1rem; line-height: 1.4; }
.kpi-consejo b { color: var(--ambar); }

@media (min-width: 640px) {
  .anillo { width: 150px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-anillo { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .kpis { grid-template-columns: 1.6fr 1fr 1fr; }
  .kpi-anillo { grid-column: auto; }
}

/* ===== Agenda ===== */
.agenda, .mis-clases { scroll-margin-top: 80px; }
.agenda-cabeza { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.agenda-cabeza h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; font-stretch: 80%; letter-spacing: -.02em; line-height: 1; }
.leyenda { display: flex; gap: 14px; font-size: .76rem; color: var(--texto-suave); flex-wrap: wrap; }
.leyenda span { display: flex; align-items: center; gap: 6px; }
.leyenda i { width: 8px; height: 8px; border-radius: 50%; }
.l-mia { background: var(--ambar); }
.l-hecha { background: var(--arena); }
.l-vence { background: #b3261e; }

.agenda-grid { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .agenda-grid { grid-template-columns: 420px 1fr; align-items: start; }
  .calendario { position: sticky; top: 90px; }
}

.calendario { padding: 18px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav h3 { font-size: 1.05rem; font-weight: 700; text-transform: capitalize; }
.cal-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(10, 10, 10, .06);
  transition: background .3s;
}
.cal-nav button:hover:not([disabled]) { background: rgba(10, 10, 10, .2); }
.cal-nav button[disabled] { opacity: .3; cursor: default; }
.cal-semana, .cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-semana { font-size: .72rem; color: var(--texto-suave); margin-bottom: 6px; }

.dia {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  transition: background .25s, color .25s, box-shadow .25s;
}
.dia:hover:not([disabled]) { background: rgba(10, 10, 10, .07); }
.dia[disabled] { color: rgba(10, 10, 10, .22); cursor: default; }
.dia.fuera { visibility: hidden; }
.dia.hoy { box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .35); }
.dia.elegido { background: var(--crema); color: var(--negro); font-weight: 700; }
.dia.vence { box-shadow: inset 0 0 0 1px #b3261e; }
.dia.vence::before { content: ""; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #b3261e; }
.dia.despues-vence { text-decoration: line-through; text-decoration-color: rgba(255, 122, 92, .4); }
.dia .marca { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; }
.dia .marca.reservada { background: var(--ambar); }
.dia .marca.asistida { background: var(--arena); }
.dia.elegido .marca.reservada { background: var(--madera); box-shadow: none; }

/* Horarios del dia */
.horarios-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 0 4px; }
.horarios-cabeza h3 { font-size: 1.15rem; font-weight: 700; }
.horarios-cabeza h3::first-letter { text-transform: uppercase; }
.horarios-cabeza span { font-size: .8rem; color: var(--texto-suave); }

.lista-horarios { list-style: none; display: grid; gap: 10px; }
.horario {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 16px;
  border-radius: 0;
  background: rgba(10, 10, 10, .04);
  border: 1px solid var(--linea);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
  animation: aparecer .45s var(--ease) both;
}
.horario:hover { border-color: rgba(10, 10, 10, .22); }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } }
.h-hora { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; grid-column: 1; grid-row: 1 / span 2; }
.h-tipo, .h-info { grid-column: 2; }
.h-hora small { display: block; font-size: .68rem; font-weight: 400; color: var(--texto-suave); }
.h-tipo { font-weight: 600; }
.h-info { font-size: .8rem; color: var(--texto-suave); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cupos { display: inline-flex; gap: 2px; }
.cupos i { width: 6px; height: 10px; border-radius: 2px; background: rgba(10, 10, 10, .5); }
.cupos i.libre { background: rgba(10, 10, 10, .12); }
.h-accion { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
.h-accion .btn { padding: .7em 1.2em; font-size: .85rem; }
.h-estado { font-size: .78rem; padding: 6px 10px; border-radius: 999px; background: rgba(10, 10, 10, .06); color: var(--texto-suave); white-space: nowrap; }

.horario.mia { border-color: rgba(10, 10, 10, .55); background: linear-gradient(90deg, rgba(10, 10, 10, .12), rgba(10, 10, 10, .02)); }
.horario.no-disponible { opacity: .5; }

.horarios-vacio {
  padding: 40px 20px;
  text-align: center;
  color: var(--texto-suave);
  border: 1px dashed var(--linea);
  border-radius: 0;
}

@media (max-width: 420px) {
  .horario { grid-template-columns: 56px 1fr; }
  .h-accion { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; }
  .h-accion .btn { width: 100%; justify-content: center; }
}

/* ===== Mis clases ===== */
.pestanas { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(10, 10, 10, .06); }
.pestanas button { padding: 8px 16px; border-radius: 999px; font-size: .85rem; color: var(--texto-suave); transition: background .3s, color .3s; }
.pestanas button.activa { background: var(--crema); color: var(--negro); font-weight: 600; }

.lista-reservas { list-style: none; display: grid; gap: 10px; }
@media (min-width: 760px) { .lista-reservas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lista-reservas { grid-template-columns: repeat(3, 1fr); } }
.reserva {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 0;
  background: rgba(10, 10, 10, .04);
  border: 1px solid var(--linea);
  animation: aparecer .45s var(--ease) both;
}
.r-fecha { width: 58px; text-align: center; padding: 8px 0; border-radius: 0; background: rgba(10, 10, 10, .06); line-height: 1.1; }
.r-fecha b { display: block; font-size: 1.5rem; font-weight: 900; }
.r-fecha span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-suave); }
.reserva.proxima .r-fecha { background: rgba(10, 10, 10, .14); color: var(--ambar); }
.r-texto strong { display: block; font-weight: 600; }
.r-texto span { font-size: .8rem; color: var(--texto-suave); }
.r-cancelar { font-size: .8rem; color: var(--texto-suave); text-decoration: underline; text-underline-offset: 3px; }
.r-cancelar:hover { color: #b3261e; }
.r-check { color: var(--arena); font-size: .8rem; }

.lista-vacia { color: var(--texto-suave); padding: 30px; text-align: center; border: 1px dashed var(--linea); border-radius: 0; grid-column: 1 / -1; }
.politica { margin-top: 16px; font-size: .82rem; color: var(--texto-suave); }
.reiniciar { margin-top: 30px; font-size: .75rem; color: rgba(10, 10, 10, .35); text-decoration: underline; }

/* ===== Navegacion inferior (celular) ===== */
.nav-movil {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--linea);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px -10px #000;
}
.nav-movil a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .82rem;
  color: var(--texto-suave);
  transition: background .3s, color .3s;
}
.nav-movil a { white-space: nowrap; }
.nav-movil a.activa { background: var(--crema); color: var(--negro); font-weight: 600; }
.ico { width: 16px; height: 16px; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-inicio { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11 12 3l9 8v10h-6v-6H9v6H3z'/%3E%3C/svg%3E"); }
.ico-agenda { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3zm-1 8v10h12V10z'/%3E%3C/svg%3E"); }
.ico-lista { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h3v3H4zm5 0h11v3H9zM4 10.5h3v3H4zm5 0h11v3H9zM4 16h3v3H4zm5 0h11v3H9z'/%3E%3C/svg%3E"); }
@media (min-width: 960px) {
  .nav-movil { display: none; }
  .panel { padding-bottom: 60px; }
}

/* ===== Dialogo y avisos ===== */
.dialogo { margin: auto; border: 0; background: none; color: var(--texto); width: min(420px, calc(100vw - 32px)); }
.dialogo::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialogo[open] .dialogo-caja { animation: aparecer .35s var(--ease); }
.dialogo-caja { padding: 28px 24px 22px; display: grid; gap: 12px; }
.dialogo-caja h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 85%; line-height: 1.1; }
.dialogo-caja p:not(.etiqueta) { color: var(--texto-suave); }
.dialogo-botones { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

.toast {
  position: fixed;
  left: 50%;
  top: max(16px, env(safe-area-inset-top));
  transform: translate(-50%, -160%);
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--crema);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  transition: transform .5s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.visible { transform: translate(-50%, 0); }
.toast.error { background: #b3261e; }

/* Esqueleto mientras cargan los datos */
.cargando { position: relative; color: transparent !important; }
.cargando::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, .05), rgba(10, 10, 10, .12), rgba(10, 10, 10, .05));
  background-size: 200% 100%;
  animation: brillo-carga 1.2s linear infinite;
}
@keyframes brillo-carga { to { background-position: -200% 0; } }

/* Modificacion: Sebastian Navarro - 05/11/2026. Ver README_modificaciones_mejoras.md
   Pagos por transferencia y panel del estudio. */
.pagos { scroll-margin-top: 80px; }
.pago-aviso { margin-bottom: 12px; padding: 14px 16px; border: 1px solid #0a0a0a; font-size: .9rem; }
.lista-pagos { list-style: none; display: grid; gap: 10px; margin-bottom: 8px; }
.pago {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: rgba(10, 10, 10, .04);
  border: 1px solid var(--linea);
}
.pago strong { display: block; font-weight: 600; }
.pago div > span { display: block; font-size: .8rem; color: var(--texto-suave); }
.pago .pago-motivo { color: #b3261e; }
.pago > div:first-child { flex: 1 1 220px; }
.pago-lado { display: grid; justify-items: end; gap: 6px; align-content: start; margin-left: auto; }
.pago-lado b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.pago .pago-estado { padding: 4px 10px; border-radius: 999px; background: rgba(10, 10, 10, .08); color: var(--texto); font-size: .75rem; font-weight: 600; }
.pago .pago-estado.confirmado { background: #0a0a0a; color: #fff; }
.pago .pago-estado.rechazado { background: #b3261e; color: #fff; }
.pago-ver { font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.pago-acciones { display: flex; gap: 8px; flex-wrap: wrap; flex-basis: 100%; }
.pago-acciones .btn { padding: .7em 1.2em; font-size: .85rem; }
.pago-miniatura { display: block; width: 72px; height: 96px; padding: 0; overflow: hidden; border: 1px solid var(--linea); }
.pago-miniatura img { width: 100%; height: 100%; object-fit: cover; }

.dialogo-pago { max-height: calc(100dvh - 32px); }
.dialogo-pago .dialogo-caja { max-height: calc(100dvh - 32px); overflow-y: auto; }
.pago-cabeza { display: flex; align-items: center; justify-content: space-between; }
.pago-cabeza button { width: 36px; height: 36px; font-size: 1.5rem; line-height: 1; }
.pago-paso { display: grid; gap: 14px; }
.pago-planes { display: grid; gap: 8px; }
.pago-plan {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--linea);
  cursor: pointer;
}
.pago-plan:has(input:checked) { border-color: #0a0a0a; box-shadow: inset 0 0 0 1px #0a0a0a; }
.pago-plan input { grid-row: 1 / span 2; accent-color: #0a0a0a; }
.pago-plan span { font-weight: 600; }
.pago-plan small { grid-column: 2; color: var(--texto-suave); }
.pago-plan b { grid-column: 3; grid-row: 1 / span 2; font-variant-numeric: tabular-nums; }
.pago-destino { display: grid; gap: 8px; }
.pago-destino div { padding: 12px 14px; border: 1px solid var(--linea); }
.pago-destino dt { font-size: .75rem; color: var(--texto-suave); }
.pago-destino dd { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.pago-destino button { font-size: .8rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pago-destino button[disabled] { opacity: .35; cursor: default; }
.pago-archivo { display: block; padding: 18px; border: 1px dashed rgba(10, 10, 10, .4); text-align: center; font-weight: 600; cursor: pointer; }
.pago-archivo input { display: block; width: 100%; margin-top: 8px; font-size: .8rem; }
.pago-vista { max-width: 100%; max-height: 50dvh; margin: 0 auto; object-fit: contain; }
.campo-motivo { width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; border: 1px solid var(--linea); }

.estudio-resumen { padding-top: 28px; display: grid; gap: 8px; }
.estudio-resumen h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1; }
.estudio-resumen p:last-child { color: var(--texto-suave); max-width: 60ch; }

@media (max-width: 480px) {
  .nav-movil a { gap: 4px; padding: 10px; font-size: .74rem; }
  .nav-movil .ico { width: 14px; height: 14px; }
}
.ico-pago { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 3v2h16V8zm0 6v3h7v-3z'/%3E%3C/svg%3E"); }
