/* Páginas de cuenta de ahnsa.com. Usa los tokens del sitio (ahnsa.css): --s0..s3, --t1, --t2, --azul, --azul2, --gut.
   Blanco, texto oscuro, un acento. Sin contenedores con borde, pastillas ni sombras. Toques de 48 px o más. */
.cta-main { font-family: Archivo, system-ui, sans-serif; max-width: 34rem; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gut, 16px) 96px; color: var(--t1, #1b1f2a); }
.cta-main.ancho { max-width: 52rem; }
.cta-main h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem); line-height: 1.08; margin: 0 0 .4em; font-weight: 700; }
.cta-main h2 { font-size: 1.25rem; margin: 2.6em 0 .7em; font-weight: 650; }
.cta-main p { line-height: 1.55; color: var(--t2, #4a5263); margin: 0 0 1em; }
.cta-main a { color: var(--azul, #2547a8); text-underline-offset: .18em; }

.cta-f { display: grid; gap: 18px; margin-top: 28px; }
.cta-f label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.cta-f input[type=email], .cta-f input[type=password], .cta-f input[type=text], .cta-f input[type=tel], .cta-f select {
  font: inherit; font-size: 17px; min-height: 52px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--s1, #eef0f3); color: var(--t1, #1b1f2a); width: 100%; box-sizing: border-box; }
.cta-f input:focus-visible, .cta-f select:focus-visible { outline: 3px solid var(--azul, #2547a8); outline-offset: 2px; }
.cta-f input[aria-invalid=true] { outline: 2px solid #b3261e; }
.cta-pass { position: relative; }
.cta-pass input { padding-right: 96px; }
.cta-ver { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 80px; border: 0;
  background: none; color: var(--azul, #2547a8); font: inherit; font-weight: 600; cursor: pointer; }
.cta-ayuda { font-weight: 400; font-size: .88rem; color: var(--t2, #4a5263); }
.cta-check { display: flex !important; grid-template-columns: none; gap: 12px; align-items: flex-start; font-weight: 400 !important; line-height: 1.45; }
.cta-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--azul, #2547a8); }

.cta-btn { box-sizing: border-box; font: inherit; font-weight: 650; font-size: 17px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 10px;
  background: var(--azul, #2547a8); color: #fff; cursor: pointer; width: 100%; }
.cta-btn:hover { background: var(--azul2, #1e3a8a); }
.cta-btn:disabled { opacity: .55; cursor: progress; }
.cta-btn-sec { background: var(--s1, #eef0f3); color: var(--t1, #1b1f2a); }
.cta-btn-peligro { background: #b3261e; }
/* La carga del dashboard de AHNSA (dashboard-f1/public/index.html: .spinner y ahnsaSpin) */
@keyframes ahnsaSpin { to { transform: rotate(360deg); } }
.cta-btn { position: relative; }
.cta-btn[aria-busy="true"], .cta-btn[aria-busy="true"]:disabled { color: transparent; opacity: 1; cursor: progress; }
.cta-btn[aria-busy="true"]::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  box-sizing: border-box; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: ahnsaSpin 1s linear infinite; }
.cta-btn-sec[aria-busy="true"]::after { border-color: #d8dee6; border-top-color: #1d4ed8; }
.cta-espera { display: block; width: 64px; height: 64px; box-sizing: border-box; border-radius: 50%; border: 6px solid #d8dee6;
  border-top-color: #1d4ed8; animation: ahnsaSpin 1s linear infinite; margin: 8px 0 20px; }
.cta-espera.cta-quieta { visibility: hidden; animation: none; }   /* deja su lugar: el texto no salta (CLS 0) */
/* CLS 0 medido (banco_carga): el error de dos renglones no empuja el pie; /cuenta/accion guarda el alto de su estado más
   alto; /cuenta muestra el anillo hasta que llegan sus datos y las secciones salen juntas (el pie queda fuera de la vista) */
.cta-f .cta-msg { min-height: 3em; }
.cta-main:has(#aEspera) { min-height: 34rem; }
.cta-main[aria-busy="true"] { min-height: 100vh; }
.cta-main[aria-busy="true"] > :not(h1):not(.cta-sr) { display: none; }
.cta-main[aria-busy="true"]::after { content: ""; display: block; width: 64px; height: 64px; box-sizing: border-box; margin: 32px auto;
  border-radius: 50%; border: 6px solid #d8dee6; border-top-color: #1d4ed8; animation: ahnsaSpin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .cta-btn[aria-busy="true"]::after, .cta-espera, .cta-main[aria-busy="true"]::after { animation: none; }
  /* TS: con movimiento reducido el botón ocupado conserva su texto (un arco quieto sobre texto transparente parecía un botón vacío) */
  .cta-btn[aria-busy="true"], .cta-btn[aria-busy="true"]:disabled { color: #fff; opacity: .7; }
  .cta-btn-sec[aria-busy="true"], .cta-btn-sec[aria-busy="true"]:disabled { color: var(--t1, #1b1f2a); }
  .cta-btn[aria-busy="true"]::after { display: none; } }
/* sólo para lectores de pantalla («Cargando su cuenta…», «Enviando…»): fuera del flujo, no mueve nada */
/* el aviso general de /cuenta reserva dos renglones: un aviso largo a 390 no empuja las secciones (CLS 0) */
#mGeneral { min-height: 3em; }
/* /baja (r1.6, CLS 0 medido): el resultado final ocupa la celda del bloque que pide la baja; el aviso de abajo reserva dos renglones */
.cta-capa { display: grid; }
.cta-capa > * { grid-area: 1 / 1; min-width: 0; }
.cta-invisible { visibility: hidden; }
#bMsg { min-height: 3.1em; }
.cta-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0; }
/* colores forzados (Windows): el texto del botón ocupado no se vuelve transparente; el anillo se quita */
@media (forced-colors: active) { .cta-btn[aria-busy="true"], .cta-btn[aria-busy="true"]:disabled { color: GrayText; }
  .cta-btn[aria-busy="true"]::after { display: none; } }
.cta-enl { display: inline-flex; align-items: center; min-height: 44px; font: inherit; background: none; border: 0; padding: 0;
  color: var(--azul, #2547a8); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

.cta-msg { min-height: 1.5em; margin: 4px 0 0; font-weight: 600; }
.cta-msg.cta-err { color: #b3261e; }
.cta-msg.cta-ok { color: #1d6b3a; }
.cta-pie { margin-top: 4px; display: grid; gap: 4px; }
.cta-aviso { background: var(--s1, #eef0f3); padding: 16px 18px; border-radius: 10px; margin: 0 0 24px; }
.cta-aviso p { margin: 0 0 8px; color: var(--t1, #1b1f2a); }

/* /cuenta */
.cta-sec { padding-top: 8px; }
.cta-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cta-lista li { background: var(--s0, #f7f8fa); border-radius: 10px; padding: 14px 16px; display: grid; gap: 4px; }
.cta-lista .cta-acc { display: flex; gap: 18px; flex-wrap: wrap; }
.cta-vacio { color: var(--t2, #4a5263); }
.cta-dos { display: grid; gap: 18px; }
@media (min-width: 640px) { .cta-dos { grid-template-columns: 1fr 1fr; } }
.cta-oculto { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .cta-btn { transition: background .15s ease; } }
.cta-btn-enlace { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 16px; }
/* /registro (r1.8): «Ir a Mi cuenta» ocupa la celda del botón de envío (.cta-capa) y aparece en su lugar si el perfil no quedó */
.cta-main a.cta-sigue { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; }
/* r1.8: un enlace con forma de botón lleva el texto blanco del botón (.cta-main a le ganaba: en /cuenta/accion «Ir a mi cuenta»
   salía azul sobre azul en r1.7) */
.cta-main a.cta-btn-enlace { color: #fff; }
.cta-may { text-transform: uppercase; }
details summary { list-style: none; } details summary::-webkit-details-marker { display: none; }

/* ── r1.10: /cuenta/accion en una tarjeta (cuentas_correo_r1_10, paso 1; borrador accion_propuesta.html). Excepción deliberada a «sin
   contenedores con borde»: es la página a la que llega el correo y lleva su misma jerarquía (ícono, título, una línea, botón grande,
   letra chica abajo). CLS 0: el <main> reserva el alto del estado más alto (la contraseña nueva con su mensaje), así el pie del sitio
   no se mueve; el ícono tiene su caja; en teléfono el título reserva dos renglones; lo que va debajo del texto (formulario, botones,
   letra chica) está oculto mientras se espera y aparece ya en su lugar */
.cta-main.cta-accion { max-width: 32rem; }
/* :has(#…) pesa como un id: con :has(#aTarjeta) esta regla le gana a la de arriba (.cta-main:has(#aEspera), 34rem) */
.cta-main.cta-accion:has(#aTarjeta) { min-height: 50rem; }
.cta-tarjeta { box-sizing: border-box; background: #fff; border: 1px solid #d8dee6; border-radius: 14px; padding: 32px 28px 24px; }
.cta-tarjeta h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 1.9rem); line-height: 1.2; margin: 0 0 10px; }
.cta-tarjeta p { margin: 0; }
.cta-tarjeta .cta-f { margin-top: 16px; }
.cta-ico { position: relative; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px; display: grid; place-items: center; }
.cta-tarjeta .cta-espera { position: absolute; inset: 0; width: 56px; height: 56px; margin: 0; border-width: 5px; }
.cta-i { display: none; width: 28px; height: 28px; }
.cta-tarjeta[data-icono="ok"] .cta-ico, .cta-tarjeta[data-icono="escudo"] .cta-ico { background: #e6f4ec; color: #1e7a46; }
.cta-tarjeta[data-icono="err"] .cta-ico { background: #fbeceb; color: #b3261e; }
.cta-tarjeta[data-icono="llave"] .cta-ico { background: #e8eefb; color: var(--azul, #2547a8); }
.cta-tarjeta[data-icono="ok"] .cta-i-ok, .cta-tarjeta[data-icono="err"] .cta-i-err, .cta-tarjeta[data-icono="llave"] .cta-i-llave,
.cta-tarjeta[data-icono="escudo"] .cta-i-escudo { display: block; }
.cta-correo { color: var(--t1, #1b1f2a); font-weight: 600; overflow-wrap: anywhere; }
.cta-tarjeta .cta-btn-enlace { margin-top: 24px; }
.cta-chico { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eef0f3; text-align: center; font-size: 13px; }
.cta-tarjeta .cta-chico p { font-size: 13px; line-height: 1.5; margin: 6px 0 0; }
.cta-main a.cta-sec { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; font-weight: 600; }
@media (max-width: 640px) { .cta-tarjeta h1 { min-height: 2.4em; } }
@media (max-width: 480px) { .cta-tarjeta { padding: 28px 20px 20px; } }
