/* ─────────────────────────────────────────────────────────────────────────
   portal.css — shared styles for the customer self-service portal.
   Loaded by /es/mudanzas/gestionar-reserva.html and EN/FR equivalents.
   Builds on top of byme-theme.css. Minimalist by design: hairline borders,
   single shadow tier, no gradients on content cards.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Tokens (portal-scoped) ── */
:root {
  --portal-border:        rgba(15, 23, 42, 0.07);
  --portal-border-strong: rgba(15, 23, 42, 0.12);
  --portal-bg-soft:       #fafbfc;
  --portal-shadow:        0 1px 2px rgba(15, 23, 42, 0.04);
  --portal-shadow-hover:  0 4px 12px rgba(15, 23, 42, 0.06);
  --portal-radius:        12px;
  --portal-radius-sm:     8px;
  /* ── Green system — one coherent set, no ad-hoc shades ──
     brand    = ByME official #62cc69 (--byme-green) → accents, hover, focus
     dark     = high-contrast green for text + icons on light backgrounds
     soft     = light tint background
     border   = light green hairline                                       */
  --portal-green:         #62cc69;
  --portal-green-rgb:     98, 204, 105;
  --portal-green-dark:    #15803d;
  --portal-green-soft:    #f0fdf4;
  --portal-green-border:  #bbf7d0;
  --portal-danger:        #b91c1c;
}

/* ── View toggling ── */
[data-portal-view][hidden] { display: none !important; }
[data-portal-view]         { display: block; }

/* ── Native <details> collapsible (glass card, matches /es/contacto/) ── */
.portal-collapsible {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  margin-bottom: .85rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.portal-collapsible[open] { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06); }
.portal-collapsible > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.portal-collapsible > summary::-webkit-details-marker { display: none; }
.portal-collapsible > summary::after {
  content: "\F282"; /* bi-chevron-down */
  font-family: "bootstrap-icons";
  font-weight: 400;
  font-size: .9rem;
  color: var(--text-muted);
  transition: transform .2s ease;
}
.portal-collapsible[open] > summary::after { transform: rotate(180deg); }
.portal-collapsible .portal-summary-icon {
  color: var(--text-muted);
  margin-right: .55rem;
  font-size: 1rem;
}
.portal-collapsible[open] .portal-summary-icon { color: var(--bs-primary); }
.portal-collapsible > .portal-collapsible-body { padding: 0 1.25rem 1.25rem 1.25rem; }

/* ── Reference pill ── */
.portal-ref-pill {
  display: inline-block;
  background: var(--portal-green-soft);
  border: 1px solid var(--portal-green-border);
  color: var(--portal-green-dark);
  padding: .3rem .75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .02em;
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

/* ── LOGIN VIEW ── */
.portal-login-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  max-width: 440px;
  margin: 0 auto;
}
.portal-login-card h1 {
  color: var(--text-primary);
  font-size: 1.15rem;
}
.portal-login-card .form-label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .3rem;
}
.portal-login-card .form-control {
  border-radius: var(--portal-radius-sm);
  padding: .6rem .8rem;
  font-size: .92rem;
  border-color: var(--portal-border-strong);
}
.portal-login-card .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 .15rem rgba(var(--portal-green-rgb), .15);
}
.portal-login-help {
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: .3rem;
}
.portal-login-error {
  color: #b91c1c;
  font-size: .85rem;
  min-height: 1.2em;
}
.portal-login-card .btn-success {
  border-radius: var(--portal-radius-sm);
  font-size: .92rem;
  padding: .65rem;
}

/* ── SELECTOR VIEW ── */
.portal-selector-grid {
  display: grid;
  gap: .75rem;
  max-width: 640px;
  margin: 0 auto;
}
.portal-quote-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 1.15rem 1.3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  width: 100%;
  display: block;
}
.portal-quote-card:hover {
  border-color: rgba(var(--portal-green-rgb), 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ── DASHBOARD VIEW ── */
/* Width aligned with the wizard's `.wz-container` (presupuesto page) so the
   two consumer flows feel visually equivalent — same gutter, same content
   width. Decision 2026-05-23 to keep equity across user-facing pages. */
.portal-dashboard-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

#portalDashboardHeader {
  padding: .25rem .25rem 1.25rem .25rem;
}
#portalDashboardHeader h1 {
  font-size: 1.4rem;
  letter-spacing: -.01em;
}

/* ── Payment CTA — glass card, matching the rest of the dashboard ── */
.portal-cta-pay {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
/* Blocked variant — amber hairline, indicates "awaiting admin review" */
.portal-cta-pay--blocked {
  border-color: rgba(252, 211, 77, 0.7);
}
/* Paid variant — soft success hairline */
.portal-cta-pay--paid {
  border-color: var(--portal-green-border);
}
/* Discount banner inside the CTA — minimal, just a green tag-line */
.portal-pay-discount {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--portal-green-soft);
  border: 1px solid var(--portal-green-border);
  color: var(--portal-green-dark);
  font-size: .82rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
}
/* Price breakdown collapsible inside payment CTA */
.portal-pay-breakdown { border-top: 1px dashed rgba(15,23,42,0.12); padding-top: .6rem; }
.portal-pay-breakdown > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.portal-pay-breakdown > summary::-webkit-details-marker { display: none; }
.portal-pay-breakdown > summary::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  font-size: .85rem;
  transition: transform .2s ease;
}
.portal-pay-breakdown[open] > summary::after { transform: rotate(180deg); }
.portal-pay-breakdown-toggle { text-decoration: underline; text-underline-offset: 3px; }
.portal-pay-breakdown-body {
  background: rgba(255,255,255,0.55);
  border-radius: 10px;
  padding: .65rem .9rem;
}

/* ── Mudanza section ── */
.portal-info-block {
  background: var(--portal-bg-soft);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-sm);
  padding: .9rem 1rem;
  height: 100%;
}
.portal-info-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: .3rem;
}
.portal-info-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: .92rem;
  line-height: 1.35;
}
.portal-info-meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .2rem;
}
.portal-info-list {
  list-style: none;
  padding-left: 0;
  margin: .35rem 0 0 0;
  font-size: .82rem;
  color: var(--text-secondary);
}
.portal-info-list li { padding: .1rem 0; }

/* ── Inventory section ── */
.portal-inv-room {
  padding: .6rem 0;
}
/* Separator BETWEEN rooms only — a trailing border-bottom on the last room
 * doubled up with the .portal-inv-actions border-top (the old :last-of-type
 * rule never matched because .portal-inv-actions is itself the last <div>). */
.portal-inv-room + .portal-inv-room {
  border-top: 1px solid var(--portal-border);
}
.portal-inv-room-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: .35rem;
}
.portal-inv-list { list-style: none; padding-left: 0; margin: 0; }
.portal-inv-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem 0;
  font-size: .88rem;
  color: var(--text-primary);
}
.portal-inv-name { flex: 1; min-width: 0; }
.portal-inv-qty {
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 1rem;
  min-width: 2.5em;
  text-align: right;
  font-size: .82rem;
}
.portal-inv-remove {
  margin-left: .5rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--portal-bg-soft);
  border: 1px solid var(--portal-border-strong);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
}
.portal-inv-remove:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* Selector de cantidad (− ×4 +) con un «Aplicar» que solo aparece cuando la
 * cifra difiere de la guardada. */
.portal-inv-stepper {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-left: 1rem; flex-shrink: 0;
}
.portal-inv-stepper .portal-inv-qty { margin-left: 0; min-width: 2.4em; text-align: center; }
.portal-inv-step {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--portal-bg-soft);
  border: 1px solid var(--portal-border-strong);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: all .15s ease;
}
.portal-inv-step:hover,
.portal-inv-step:focus-visible {
  border-color: var(--portal-green); color: var(--portal-green-dark);
  background: var(--portal-green-soft); outline: none;
}
.portal-inv-stepper.is-pending .portal-inv-qty { color: var(--portal-green-dark); }
.portal-inv-stepper.is-removing .portal-inv-qty { color: var(--portal-danger); text-decoration: line-through; }
.portal-inv-apply {
  margin-left: .35rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--portal-green);
  background: var(--portal-green);
  color: #fff;
  font-size: .78rem; font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease;
}
.portal-inv-apply:hover,
.portal-inv-apply:focus-visible { filter: brightness(.95); outline: none; }
.portal-inv-stepper.is-removing .portal-inv-apply { background: var(--portal-danger); border-color: var(--portal-danger); }
.portal-inv-actions {
  text-align: center;
  padding: 1rem .25rem .25rem .25rem;
  border-top: 1px solid var(--portal-border);
  margin-top: .5rem;
}

/* ── Next steps section ── */
.portal-steps { list-style: none; padding-left: 0; margin: 0; }
.portal-step {
  display: flex;
  gap: .9rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--portal-border);
  align-items: flex-start;
}
.portal-step:last-child { border-bottom: none; }
.portal-step-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  background: var(--portal-bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--portal-border);
}
.portal-step--done .portal-step-icon {
  background: var(--portal-green-soft);
  color: var(--portal-green-dark);
  border-color: var(--portal-green-border);
}
/* Active = current step — solid brand green, matching the status timeline's
 * active dot. (Was blue, off our palette.) */
.portal-step--active .portal-step-icon {
  background: var(--portal-green-dark);
  color: #fff;
  border-color: var(--portal-green-dark);
}
.portal-step-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: .9rem;
  line-height: 1.3;
  margin-bottom: .12rem;
}
.portal-step-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.portal-step--done .portal-step-title { color: var(--portal-green-dark); }

/* ── T&C policy list (used by reschedule + cancel modals) ── */
.portal-policy-anchor {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: .65rem .85rem;
  font-size: .85rem;
  color: var(--text-primary);
  line-height: 1.45;
}
.portal-policy-anchor:empty { display: none; }
.portal-policy-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: .85rem;
  color: var(--text-secondary);
}
.portal-policy-list > li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding: .35rem 0;
}
.portal-policy-list > li > i {
  flex-shrink: 0;
  margin-top: .2rem;
}

/* ── Help cards (anchors + buttons) ── */
.portal-help-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: .95rem 1.05rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.portal-help-card:hover { color: inherit; text-decoration: none; }
.portal-help-card:hover:not(:disabled) {
  border-color: rgba(var(--portal-green-rgb), 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.portal-help-card:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.portal-help-card > i {
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.portal-help-card:hover:not(:disabled) > i { color: var(--bs-primary); }
.portal-help-card--danger:hover:not(:disabled) { border-color: #b91c1c; }
.portal-help-card--danger:hover:not(:disabled) > i { color: #b91c1c; }
.portal-help-card-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: .9rem;
  line-height: 1.25;
  margin-bottom: .15rem;
}
.portal-help-card-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Waitlist banner ── */
.portal-waitlist {
  background: var(--portal-bg-soft);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-sm);
  padding: .9rem 1.1rem;
  margin-top: 1.25rem;
}

/* ── Status pills (subtle) ── */
.badge.bg-warning-subtle,
.badge.bg-info-subtle,
.badge.bg-success-subtle,
.badge.bg-primary-subtle,
.badge.bg-secondary-subtle,
.badge.bg-danger-subtle {
  font-weight: 500;
  font-size: .72rem;
  padding: .3rem .65rem;
  letter-spacing: .01em;
}

/* ── Toast container ── */
#portalToastContainer {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 340px;
}

/* ── Stripe element wrapper ── */
#portalStripeElement {
  background: var(--portal-bg-soft);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-sm);
  padding: 1rem;
  min-height: 180px;
}

/* ── Payment success state (shown briefly in checkout modal) ── */
.portal-payment-success {
  animation: portal-pay-fade-in .3s ease-out;
}
.portal-success-check {
  width: 80px; height: 80px; margin: 0 auto;
  border-radius: 50%;
  background: var(--portal-green-soft);
  border: 3px solid var(--portal-green-border);
  display: flex; align-items: center; justify-content: center;
  animation: portal-pay-pop .5s ease-out;
}
.portal-success-check i {
  color: var(--portal-green-dark);
  font-size: 3rem;
  animation: portal-pay-check-in .4s ease-out .15s both;
}
@keyframes portal-pay-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes portal-pay-pop {
  0%   { transform: scale(.5); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes portal-pay-check-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Status timeline (under header, hidden for unpaid) ── */
.portal-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  margin-bottom: 1rem;
  overflow-x: auto;
}
.portal-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  min-width: 4.5rem;
  text-align: center;
}
.portal-timeline-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  background: var(--portal-bg-soft);
  border: 1.5px solid var(--portal-border-strong);
  color: var(--text-muted);
  transition: all .2s ease;
}
.portal-timeline-label {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
  max-width: 6.5rem;
}
.portal-timeline-conn {
  flex: 1 1 auto;
  min-width: 1rem;
  height: 2px;
  background: var(--portal-border-strong);
  margin: 0 -.25rem;
  margin-bottom: 1.3rem;
  align-self: center;
}

/* Done = behind the active step */
.portal-timeline-step--done .portal-timeline-dot {
  background: var(--portal-green-soft);
  border-color: var(--portal-green-border);
  color: var(--portal-green-dark);
}
.portal-timeline-step--done .portal-timeline-label {
  color: var(--portal-green-dark);
}
.portal-timeline-conn--done {
  background: var(--portal-green-border);
}

/* Active = current */
.portal-timeline-step--active .portal-timeline-dot {
  background: var(--portal-green-dark);
  border-color: var(--portal-green-dark);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(var(--portal-green-rgb), .2);
}
.portal-timeline-step--active .portal-timeline-label {
  color: var(--text-primary);
  font-weight: 600;
}

/* Future = grey */
.portal-timeline-step--future .portal-timeline-dot {
  background: var(--portal-bg-soft);
  border-color: var(--portal-border-strong);
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .portal-timeline { padding: .7rem .6rem; }
  .portal-timeline-step { min-width: 3.5rem; }
  .portal-timeline-label { font-size: .65rem; max-width: 4.5rem; }
  .portal-timeline-dot { width: 26px; height: 26px; font-size: .8rem; }
}

/* ── Modals — softer borders ── */
.modal-content[style*="border-radius:18px"] { border-radius: var(--portal-radius) !important; }

/* ── Modal de objetos: preguntas del armario («¿Es empotrado?» / «¿Te llevas
   lo de dentro?»). Misma pinta que el bloque + `.room-pill` del wizard
   (step-inventory.js), con los colores del wizard pasados a tokens.        ── */
.portal-add-question {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .5rem;
  border-radius: var(--portal-radius-sm);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  font-size: .75rem;
}
.portal-add-question + .portal-add-question { margin-top: .5rem; }
.portal-add-question-text { color: var(--text-secondary); }
/* Texto libre «¿No encuentras algo? Descríbelo»: el mismo borde en degradado
   que `.inv-ai-note` del wizard y `.lp-ai-btn` de la web — dice «aquí hay IA»
   sin escribirlo, y el cliente reconoce la casa en los dos sitios. Dos fondos:
   uno para el relleno y otro para el borde, porque un `border-image` no admite
   esquinas redondeadas. La animación `ai-border-flow` vive en byme-theme.css. */
.portal-ai-note {
  border: 1.5px solid transparent !important;
  background-image:
    linear-gradient(var(--bs-body-bg), var(--bs-body-bg)),
    linear-gradient(135deg, rgba(42,123,155,1), rgba(87,199,133,1), rgba(237,221,83,1), rgba(42,123,155,1));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 300% 300%;
  animation: ai-border-flow 6s linear infinite;
}
.portal-ai-note:focus {
  box-shadow: 0 2px 12px rgba(98, 204, 105, .18) !important;
}
.portal-ai-note::placeholder {
  font-style: italic;
  color: var(--text-secondary);
}

/* Bloque de precio del aviso («Cambios en tu presupuesto»): el número grande
   y el antes/diferencia en pequeño. Una sola cifra que leer. */
.portal-aviso-precio {
  padding: .85rem 1rem;
  border-radius: 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  margin: .25rem 0 .75rem;
}
.portal-aviso-precio-label {
  font-size: .75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.portal-aviso-precio-valor {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--portal-green-dark);
  font-variant-numeric: tabular-nums;
}
.portal-aviso-precio-antes {
  font-size: .85rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 28px;
  padding: 0 12px;
  border-radius: 12px;
  border: 2px solid var(--portal-border-strong);
  background: var(--bs-body-bg);
  font-weight: 700;
  font-size: .7rem;
  cursor: pointer;
  user-select: none;
  transition: all .15s;
}
.portal-pill:hover,
.portal-pill:focus-visible { border-color: var(--portal-green); outline: none; }
.portal-pill.selected {
  border-color: var(--portal-green);
  background: var(--portal-green-soft);
  color: var(--portal-green-dark);
}

/* ── Hasta cuándo vale el precio (cabecera, `_lineaDeValidez`) ──
   Discreta mientras queda tiempo; ámbar los últimos días. */
.portal-validez {
  margin-top: .35rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.portal-validez-urgente {
  color: var(--bs-warning-text-emphasis);
  font-weight: 600;
}

/* ── reCAPTCHA: sin el distintivo flotante ──
   Tapaba la esquina de la página (y más en móvil). Google permite ocultarlo
   SIEMPRE QUE la página enseñe su aviso, que va en el pie (`footer.recaptcha`).
   `visibility` y no `display`: con `display: none` deja de funcionar. */
.grecaptcha-badge { visibility: hidden; }
.portal-recaptcha-aviso {
  font-size: .72rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
  padding-bottom: 1rem;
}
.portal-recaptcha-aviso a { color: inherit; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .portal-login-card { padding: 1.5rem; max-width: 100%; }
  .portal-collapsible > summary { padding: .9rem 1rem; font-size: .9rem; }
  .portal-collapsible > .portal-collapsible-body { padding: 0 1rem 1rem 1rem; }
  .portal-cta-pay { padding: .9rem 1rem; }
  #portalDashboardHeader h1 { font-size: 1.15rem; }
}
/* Pregunta del armario sin responder al intentar añadir: las dos son
   obligatorias, como en el wizard (2026-10-07). */
.portal-add-question.is-pendiente { border-color: var(--bs-danger); }
.portal-add-question.is-pendiente .portal-add-question-text { color: var(--bs-danger); font-weight: 600; }
