/* Páginas de cuenta del cliente: iniciar sesión (login.php) y crear cuenta (registro.php).
   La tarjeta es un cupón: el talón separado por una línea perforada lleva a la otra página. */
.acc {
  --acc-navy: #2D3444;
  --acc-amber: #F9A600;
  --acc-amber-deep: #D98E00;
  --acc-cream: #FFF9EC;
  --acc-perf: #E9C877;
  --acc-muted: #5F6473;
  --acc-line: #DCE0E6;
  --acc-error: #B42318;
  --acc-ok: #1E7A46;
  padding: 64px 16px 96px;
  background: #fff;
  font-family: 'Lato', sans-serif;
  color: var(--acc-navy);
}
.acc-ticket { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--acc-line); border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(45, 52, 68, .35); }
.acc-ticket--wide { max-width: 680px; }
.acc-body { padding: 36px 36px 30px; }
.acc-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; color: var(--acc-navy); margin: 0 0 8px; }
.acc-lead { font-size: 15px; line-height: 1.6; color: var(--acc-muted); margin: 0 0 28px; max-width: 60ch; }
.acc-lead a, .acc-link { color: var(--acc-navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--acc-amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.acc-lead a:hover, .acc-link:hover { color: var(--acc-amber-deep); }

/* Campos */
.acc-field { display: block; margin: 0 0 18px; }
.acc-field > span { display: block; font-size: 14px; font-weight: 700; color: var(--acc-navy); margin: 0 0 6px; }
.acc-field small { display: block; font-weight: 400; font-size: 13px; color: var(--acc-muted); margin-top: 6px; }
.acc input[type=text], .acc input[type=email], .acc input[type=password], .acc select {
  display: block; width: 100%; height: 48px; padding: 0 14px; margin: 0;
  font: 400 15px/1.2 'Lato', sans-serif; color: #161C27; background: #fff;
  border: 1px solid #C9CFD8; border-radius: 8px; box-shadow: none;
}
.acc select { padding-right: 40px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232D3444' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.acc select:disabled { background-color: #F5F6F8; color: var(--acc-muted); cursor: not-allowed; }
.acc input:focus, .acc select:focus { outline: none; border-color: var(--acc-amber); box-shadow: 0 0 0 3px rgba(249, 166, 0, .28); }
/* WhatsApp: el código de Panamá queda a la vista dentro del campo */
.acc .acc-phone { display: flex; align-items: stretch; margin: 0; font-weight: 400; }
.acc .acc-phone b { display: flex; align-items: center; padding: 0 12px; font-size: 15px; font-weight: 700; color: var(--acc-navy); background: #F5F6F8; border: 1px solid #C9CFD8; border-right: 0; border-radius: 8px 0 0 8px; }
.acc .acc-phone input { border-radius: 0 8px 8px 0; min-width: 0; }
.acc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Grupos del registro */
.acc-group { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.acc-group + .acc-group { margin-top: 26px; }
.acc-group legend { float: none; width: auto; padding: 0; margin: 0 0 4px; font-family: 'Lexend', sans-serif; font-size: 18px; font-weight: 600; color: var(--acc-navy); }
.acc-group legend + * { margin-top: 0; }
.acc-hint { font-size: 13px; line-height: 1.55; color: var(--acc-muted); margin: 0 0 14px; }

/* Línea de "recordarme / olvidé" */
.acc-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -4px 0 20px; font-size: 14px; }
.acc-meta a { color: var(--acc-muted); text-decoration: underline; text-underline-offset: 3px; }
.acc-meta a:hover { color: var(--acc-navy); }

/* Casillas */
.acc-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 0 0 16px; cursor: pointer; font-size: 14px; line-height: 1.55; color: var(--acc-navy); font-weight: 400; }
.acc-check input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; padding: 0; border: 2px solid var(--acc-navy); border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-content: center; }
.acc-check input[type=checkbox]::after { content: ""; width: 11px; height: 6px; border: solid var(--acc-navy); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.acc-check input[type=checkbox]:checked { background: var(--acc-amber); border-color: var(--acc-amber); }
.acc-check input[type=checkbox]:checked::after { opacity: 1; }
.acc-check input[type=checkbox]:focus-visible { outline: 3px solid rgba(249, 166, 0, .5); outline-offset: 2px; }
.acc-check a { color: var(--acc-navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--acc-amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.acc-check em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.acc-need { background: var(--acc-navy); color: #fff; }
.acc-opt { background: #fff; color: var(--acc-muted); border: 1px solid #E7E3D8; }
.acc-meta .acc-check { margin: 0; }

/* Intereses: fichas que se marcan; aparecen al aceptar las comunicaciones */
.acc-interests { margin: -4px 0 18px 34px; padding: 16px 16px 6px; background: #fff; border: 1px solid #F0DFB4; border-radius: 10px; }
.acc-interests[hidden] { display: none; }
.acc-interests p { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--acc-navy); }
.acc-interests p span { display: block; font-weight: 400; font-size: 13px; color: var(--acc-muted); }
.acc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.acc-chip { position: relative; display: inline-block; margin: 0; }
.acc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid #C9CFD8; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--acc-navy); cursor: pointer; user-select: none; }
.acc-chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #9AA1AE; }
.acc .acc-chip input:checked + span { background: #2D3444; border-color: #2D3444; color: #fff; }
.acc .acc-chip input:checked + span::before { background: #F9A600; border-color: #F9A600; }
.acc-chip input:focus-visible + span { outline: 3px solid rgba(249, 166, 0, .5); outline-offset: 2px; }
.acc-chip span:hover { border-color: var(--acc-navy); }

/* Botones */
.acc .acc-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 20px; border: 2px solid var(--acc-amber); border-radius: 999px; background: var(--acc-amber); color: var(--acc-navy); font: 700 16px/1.2 'Lato', sans-serif; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.acc .acc-btn:hover { background: var(--acc-amber-deep); border-color: var(--acc-amber-deep); color: var(--acc-navy); }
.acc .acc-btn:focus-visible { outline: 3px solid var(--acc-navy); outline-offset: 3px; }
.acc .acc-btn--ghost { background: transparent; border-color: var(--acc-navy); }
.acc .acc-btn--ghost:hover { background: var(--acc-navy); border-color: var(--acc-navy); color: #fff; }
.acc-guard { margin: 4px 0 18px; }

/* Avisos */
.acc-alert { margin: 0 0 22px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; border-left: 4px solid; }
.acc-alert--error { background: #FEF3F2; border-color: var(--acc-error); color: #7A271A; }
.acc-alert--ok { background: #ECFDF3; border-color: var(--acc-ok); color: #0F4D2C; }
.acc-alert a { color: inherit; font-weight: 700; text-decoration: underline; }

/* Talón del cupón: perforación con muescas a los lados */
.acc-stub { position: relative; padding: 26px 36px 30px; background: var(--acc-cream); border-top: 2px dashed var(--acc-perf); border-radius: 0 0 14px 14px; }
.acc-stub::before, .acc-stub::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--acc-line); }
.acc-stub::before { left: -13px; clip-path: inset(0 0 0 50%); }
.acc-stub::after { right: -13px; clip-path: inset(0 50% 0 0); }
.acc-stub h2 { font-family: 'Lexend', sans-serif; font-size: 18px; font-weight: 600; margin: 0 0 4px; color: var(--acc-navy); }
.acc-stub p { font-size: 14px; line-height: 1.55; color: var(--acc-muted); margin: 0 0 16px; }

/* En el registro el talón cierra el formulario con los acuerdos */
.acc-stub--terms { padding-top: 28px; }
.acc-stub--terms h2 { margin-bottom: 14px; }
.acc-after { text-align: center; font-size: 14px; color: var(--acc-muted); margin: 18px 0 0; }

@media (max-width: 575px) {
  .acc { padding: 32px 12px 64px; }
  .acc-body { padding: 28px 20px 24px; }
  .acc-stub { padding: 24px 20px 26px; }
  .acc-title { font-size: 26px; }
  .acc-row { grid-template-columns: 1fr; }
  .acc-interests { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .acc .acc-btn { transition: none; } }

/* ---------- Verificación en dos pasos (/verificacion.php, /seguridad-cuenta.php) ---------- */
.tfa-page { margin: 0; background: #F5F6F8; font-family: 'Lato', sans-serif; color: #2D3444; }
.tfa-page *, .tfa-page *::before, .tfa-page *::after { box-sizing: border-box; }
.tfa-page .acc { background: transparent; padding-top: 40px; }
.tfa-top { display: flex; justify-content: center; padding: 18px 16px; background: #fff; border-bottom: 1px solid #E7E3D8; }
.tfa-top img { display: block; height: 44px; width: auto; }

/* El código de 6 dígitos se escribe grande, como el número de un cupón */
.acc .tfa-code { height: 64px; text-align: center; font: 700 30px/1 'Lexend', sans-serif; letter-spacing: .3em; padding: 0 0 0 .3em; }
.acc .tfa-code::placeholder { color: #C3C8D1; letter-spacing: .3em; }
.tfa-remember { margin: 4px 0 20px; }
.tfa-switch { display: inline-block; margin: 0 0 18px; padding: 0; border: 0; background: none; font: 700 14px 'Lato', sans-serif; color: #2D3444; text-decoration: underline; text-decoration-color: #F9A600; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

.tfa-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; margin: 0 0 18px; }
.tfa-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tfa-state--on { background: #ECFDF3; color: #1E7A46; }
.tfa-state--off { background: #F5F6F8; color: #5F6473; }

.tfa-steps { margin: 0 0 22px; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.tfa-steps li + li { margin-top: 6px; }
.tfa-qr { display: grid; place-items: center; width: 212px; height: 212px; margin: 0 auto 14px; padding: 12px; background: #fff; border: 1px solid #DCE0E6; border-radius: 12px; }
.tfa-qr img, .tfa-qr canvas { display: block; width: 186px; height: 186px; }
.tfa-key { margin: 0 0 22px; text-align: center; font-size: 13px; color: #5F6473; }
.tfa-key code { display: block; margin-top: 6px; font: 700 16px/1.5 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .08em; color: #2D3444; word-break: break-all; user-select: all; }

.tfa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 18px; padding: 16px; list-style: none; background: #fff; border: 1px dashed #E9C877; border-radius: 10px; }
.tfa-codes li { font: 700 17px/1.4 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .06em; text-align: center; color: #2D3444; }
.tfa-actions { display: grid; gap: 10px; }
.tfa-section + .tfa-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid #EEF0F3; }
.tfa-section h2 { font-family: 'Lexend', sans-serif; font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.tfa-section p { font-size: 14px; line-height: 1.55; color: #5F6473; margin: 0 0 14px; }
.acc .acc-btn--danger { background: transparent; border-color: #B42318; color: #B42318; }
.acc .acc-btn--danger:hover { background: #B42318; border-color: #B42318; color: #fff; }
@media print { .tfa-top, .tfa-actions, .acc-stub { display: none !important; } .acc-ticket { box-shadow: none; border: 0; } }
.tfa-section-title { font-family: 'Lexend', sans-serif; font-size: 20px; font-weight: 600; margin: 0 0 6px; }
