/* MiratechSpA — Mi cuenta (Cuenta.html): login clientes, seguimiento invitado, panel de cuenta */

.acct-main {
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(800px 460px at 110% -10%, var(--steel-50), transparent 60%),
    linear-gradient(180deg, var(--slate-50) 0%, var(--marine-50) 100%);
}

/* ===== Auth view ===== */
/* Fondo con degradado sutil entre dos tonos claros + un halo de marca, para que
   no se vea plano. Cubre toda la vista de auth (registro / login / recuperar). */
.auth-view {
  background:
    radial-gradient(900px 520px at 88% -8%, var(--steel-50), transparent 62%),
    radial-gradient(700px 500px at 8% 110%, var(--marine-50), transparent 60%),
    linear-gradient(180deg, var(--slate-50) 0%, var(--surface-page) 100%);
}
.auth-wrap {
  display: grid; grid-template-columns: 1fr 468px; gap: 64px; align-items: center;
  padding-top: 80px; padding-bottom: 96px;
}
.auth-intro { max-width: 460px; }
.auth-intro h1 {
  font-size: clamp(34px, 4vw, 50px); font-weight: var(--fw-extra);
  letter-spacing: var(--ls-tight); line-height: 1.05; margin-top: 20px;
}
.auth-intro p.sub { color: var(--text-muted); font-size: var(--fs-md); line-height: var(--lh-relaxed); margin-top: 18px; max-width: 430px; }
.auth-feats { list-style: none; margin-top: 38px; display: grid; gap: 18px; padding: 0; }
.auth-feats li { display: flex; align-items: center; gap: 14px; font-size: var(--fs-base); font-weight: var(--fw-medium); color: var(--text-strong); }
.auth-feats li .af-ico {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-accent-soft); color: var(--steel-600);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--steel-100);
}
.auth-feats li .af-ico .lucide, .auth-feats li .af-ico i { width: 18px; height: 18px; }

.auth-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(17, 42, 61, 0.04),
    0 12px 24px rgba(17, 42, 61, 0.06),
    0 32px 64px rgba(17, 42, 61, 0.10);
  overflow: hidden;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-sunken); padding: 6px; gap: 6px; border-bottom: 1px solid var(--border-subtle); }
.auth-tabs .tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 10px; border-radius: 10px;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted);
  transition: background 140ms, color 140ms, box-shadow 140ms;
}
.auth-tabs .tab .lucide, .auth-tabs .tab i { width: 16px; height: 16px; }
.auth-tabs .tab.active { background: var(--surface-card); color: var(--text-strong); box-shadow: 0 2px 8px rgba(17,42,61,.08); }
.auth-form { padding: 34px 34px 30px; display: grid; gap: 22px; }
.auth-card--register .auth-form { padding: 40px; gap: 28px; }
.auth-form[hidden], .df[hidden], .success-panel[hidden] { display: none; }
.auth-form .fld { display: grid; gap: 7px; }
.auth-form label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-strong); letter-spacing: var(--ls-snug); }
.auth-form input, .auth-form select {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid var(--border-default); background: var(--surface-card);
  font-size: var(--fs-sm); line-height: var(--lh-snug); color: var(--text-body);
  font-family: inherit; height: 49px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.auth-form input::placeholder { color: var(--text-subtle); }
@media (hover: hover) and (pointer: fine) {
  .auth-form input:hover, .auth-form select:hover { border-color: var(--border-strong); }
}
.auth-form select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234E5D69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.auth-form input:focus, .auth-form select:focus { outline: none; border-color: var(--brand-steel); box-shadow: 0 0 0 4px rgba(99, 157, 174, 0.16); }
.auth-form input:disabled, .auth-form select:disabled { background: var(--surface-sunken); color: var(--text-subtle); }
/* Botón de ancho completo compartido por login / recuperar (registro usa .auth-submit) */
.auth-form .btn { width: 100%; padding: 14px; font-size: var(--fs-base); margin-top: 4px; }
.auth-hint { font-size: var(--fs-xs); color: var(--text-subtle); text-align: center; }

/* Secciones visuales del registro (Información personal / Seguridad) */
.form-section { display: grid; gap: 16px; }
.form-section-title {
  font-size: var(--fs-2xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--text-subtle);
  padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle);
}

/* Botón principal con protagonismo: alto, redondeado, elevación al hover */
.auth-submit {
  width: 100%; padding: 15px; height: 52px; font-size: var(--fs-base); border-radius: 12px;
  margin-top: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .auth-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(17, 42, 61, 0.26); }
}
.auth-submit:active { transform: scale(0.98); }
.auth-submit i[data-lucide="arrow-right"] { transition: transform var(--dur-fast) var(--ease-out); }
.auth-submit:hover i[data-lucide="arrow-right"] { transform: translateX(3px); }

/* Avisos en login: correo sin verificar / reenvío hecho */
.auth-note {
  display: flex; align-items: flex-start; gap: 11px; margin: 20px 34px 0;
  padding: 13px 15px; border-radius: 12px; font-size: var(--fs-xs); line-height: var(--lh-snug);
}
/* El aviso trae su propio aire arriba; el form que le sigue reduce el suyo para
   no sumar 34px + 20px de separación entre ambos. */
.auth-note + .auth-form { padding-top: 22px; }
.auth-note + .auth-note { margin-top: 10px; }
.auth-note .lucide, .auth-note i { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.auth-note.warn { background: var(--warning-soft); border: 1px solid var(--amber-500); color: var(--amber-600); }
.auth-note.ok { background: var(--success-soft); border: 1px solid var(--green-500); color: var(--green-600); }
/* min-width:0 permite que el hijo flex (texto) encoja; overflow-wrap parte un
   email largo si no cabe, en vez de descuadrar el aviso. */
.auth-note > span, .auth-note > div { min-width: 0; overflow-wrap: anywhere; }
.auth-note strong { color: var(--text-strong); font-weight: var(--fw-semibold); }
.auth-note > div { display: flex; flex-direction: column; gap: 3px; }
.auth-note > div > span { color: var(--text-muted); }
.auth-note-form { margin-top: 8px; }
.auth-note-btn {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--amber-600);
  text-decoration: underline; transition: color var(--dur-fast) var(--ease-out);
}
.auth-note-btn:hover { color: var(--amber-500); }
/* Botón-enlace secundario (reenviar en la pantalla "revisa tu correo") */
.auth-alt-btn {
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-link);
  transition: color var(--dur-fast) var(--ease-out);
}
.auth-alt-btn:hover { color: var(--brand-steel); text-decoration: underline; }

/* Link "¿Ya tienes cuenta?" — separado del botón, más visible */
.auth-alt { text-align: center; font-size: var(--fs-sm); color: var(--text-muted); margin-top: 8px; }
.auth-alt a { font-weight: var(--fw-semibold); color: var(--text-link); transition: color var(--dur-fast) var(--ease-out); }
.auth-alt a:hover { color: var(--brand-steel); text-decoration: underline; }

/* Nombre + Apellido / Correo + Teléfono en una fila */
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
/* Campo de contraseña con toggle ver/ocultar */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  color: var(--text-subtle); transition: color var(--dur-fast), background var(--dur-fast);
}
.pw-toggle:hover { color: var(--brand-navy); background: var(--surface-sunken); }
.pw-toggle .lucide, .pw-toggle i { width: 17px; height: 17px; }
.auth-form .fld-help { font-size: var(--fs-2xs); color: var(--text-subtle); line-height: var(--lh-snug); }
/* Consentimiento de privacidad */
.auth-check { display: flex; align-items: flex-start; gap: 13px; font-size: var(--fs-sm); line-height: var(--lh-snug); color: var(--text-muted); cursor: pointer; font-weight: var(--fw-regular); }
.auth-check input { margin-top: 1px; flex: none; width: 19px; height: 19px; accent-color: var(--brand-navy); cursor: pointer; transition: transform var(--dur-fast) var(--ease-out); }
.auth-check input:active { transform: scale(0.9); }
.auth-check a { color: var(--text-link); font-weight: var(--fw-semibold); text-decoration: underline; transition: color var(--dur-fast) var(--ease-out); }
.auth-check a:hover { color: var(--brand-steel); }

/* Movimiento reducido: se conservan color/borde, se quitan desplazamientos */
@media (prefers-reduced-motion: reduce) {
  .auth-submit:hover, .auth-submit:active { transform: none; }
  .auth-submit:hover i[data-lucide="arrow-right"], .auth-check input:active { transform: none; }
}
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -6px; flex-wrap: wrap; }
.auth-links a { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-link); display: inline-flex; align-items: center; gap: 4px; }
.auth-links a:hover { color: var(--brand-steel); }
.auth-links a .lucide, .auth-links a i { width: 13px; height: 13px; }
.form-error { font-size: var(--fs-xs); color: var(--danger); display: none; }
.form-error.show { display: block; }
/* En el checkbox de consentimiento el borde/glow rojo de .is-invalid se ve mal
   (es un cuadro con accent-color): se anula y basta con el mensaje de error debajo. */
.auth-check input.is-invalid { border-color: var(--border-default) !important; box-shadow: none !important; }
.demo-note {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: var(--fs-xs); color: var(--text-muted);
  background: var(--surface-accent-soft); border: 1px dashed var(--steel-200);
  border-radius: 10px; padding: 11px 13px;
}
.demo-note .lucide, .demo-note i { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--steel-600); }
.demo-note code { font-family: var(--font-mono); color: var(--steel-700); background: rgba(255,255,255,.7); padding: 1px 6px; border-radius: 5px; }

/* ===== Success panel (Recuperar.html) ===== */
.success-panel { padding: 40px 30px 34px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.success-panel .sp-ico {
  width: 56px; height: 56px; border-radius: 50%; background: var(--success-soft); color: var(--success);
  display: grid; place-items: center;
}
.success-panel .sp-ico .lucide, .success-panel .sp-ico i { width: 26px; height: 26px; }
.success-panel h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text-strong); }
.success-panel p { font-size: var(--fs-sm); color: var(--text-muted); max-width: 320px; line-height: var(--lh-relaxed); }
.success-panel .mono-inline { font-family: var(--font-mono); color: var(--steel-700); }
.success-panel .btn { width: 100%; }

/* ===== Shared: logout / back link ===== */
.logout-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted);
  padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--border-default);
  background: var(--surface-card); transition: color 120ms, border-color 120ms;
}
.logout-btn:hover { color: var(--danger); border-color: var(--danger); }
.logout-btn .lucide, .logout-btn i { width: 16px; height: 16px; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--text-muted); margin-bottom: 22px; transition: color 120ms;
}
.back-link:hover { color: var(--brand-navy); }
.back-link .lucide, .back-link i { width: 15px; height: 15px; }

/* ===== Status pill ===== */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); font-family: var(--font-body);
  letter-spacing: 0; padding: 7px 14px; border-radius: 999px;
  background: var(--surface-accent-soft); border: 1px solid var(--steel-200); color: var(--steel-700);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--steel-500); box-shadow: 0 0 0 3px rgba(76,139,162,.22); animation: pulseDot 1.8s ease-in-out infinite; }
.status-pill.st-done { background: var(--success-soft); border-color: var(--green-500); color: var(--green-600); }
.status-pill.st-done .dot { background: var(--green-500); box-shadow: 0 0 0 3px rgba(46,158,107,.2); animation: none; }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ===== Tracking / order detail (shared: guest track view + dashboard order detail) ===== */
.track-view { padding: 56px 0 90px; }
.track-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.track-head .th-l .crumb { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-subtle); text-transform: uppercase; letter-spacing: var(--ls-wide); }
.track-head h1 { font-size: clamp(26px, 3vw, 36px); font-weight: var(--fw-extra); margin-top: 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.track-head .th-meta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 9px; }
.track-head .th-meta strong { font-family: var(--font-mono); font-weight: var(--fw-medium); color: var(--text-body); }

.track-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.panel {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 18px;
  padding: 28px; box-shadow: 0 10px 30px rgba(17,42,61,.06);
}
.panel-narrow { max-width: 640px; }
.panel h2 { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.panel h2 .lucide, .panel h2 i { width: 19px; height: 19px; color: var(--steel-600); }

/* Timeline */
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { position: relative; display: flex; gap: 16px; padding-bottom: 30px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px;
  background: var(--slate-200);
}
.tl li:last-child::before { display: none; }
.tl li.done::before { background: var(--steel-400); }
.tl .tl-ico {
  flex: none; width: 36px; height: 36px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center;
  background: var(--slate-100); color: var(--text-subtle); border: 2px solid var(--slate-200);
}
.tl .tl-ico .lucide, .tl .tl-ico i { width: 16px; height: 16px; }
.tl li.done .tl-ico { background: var(--steel-500); border-color: var(--steel-500); color: #fff; }
.tl li.current .tl-ico { background: var(--surface-card); border-color: var(--steel-500); color: var(--steel-600); box-shadow: 0 0 0 5px rgba(76,139,162,.16); }
.tl .tl-t { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-strong); }
.tl li:not(.done):not(.current) .tl-t { color: var(--text-subtle); font-weight: var(--fw-semibold); }
.tl .tl-s { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 3px; line-height: var(--lh-snug); }
.tl .tl-d { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-subtle); margin-top: 5px; }
.tl li.current .tl-t { color: var(--steel-700); }

/* Order summary */
.ord-items { display: grid; gap: 0; }
.ord-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
.ord-item:first-child { padding-top: 0; }
.ord-item .oi-thumb {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-accent-soft); color: var(--steel-600);
  display: grid; place-items: center;
}
.ord-item .oi-thumb .lucide, .ord-item .oi-thumb i { width: 20px; height: 20px; }
.ord-item .oi-n { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.ord-item .oi-q { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-subtle); margin-top: 2px; }
.ord-item .oi-p { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-body); }
.ord-rows { margin-top: 16px; display: grid; }
.ord-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: var(--fs-sm); color: var(--text-muted); }
.ord-row strong { font-family: var(--font-mono); font-weight: var(--fw-medium); color: var(--text-body); }
.ord-row.total { border-top: 1px solid var(--border-subtle); margin-top: 8px; padding-top: 14px; font-weight: var(--fw-bold); color: var(--text-strong); }
.ord-row.total strong { color: var(--brand-navy); font-weight: var(--fw-semibold); font-size: var(--fs-md); }

.ship-card { margin-top: 20px; border-radius: 12px; background: var(--surface-sunken); padding: 16px 18px; display: grid; gap: 10px; }
.ship-card .sc-row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--text-muted); }
.ship-card .sc-row .lucide, .ship-card .sc-row i { width: 15px; height: 15px; color: var(--steel-600); flex: none; }
.ship-card .sc-row strong { color: var(--text-body); font-weight: var(--fw-semibold); }
.ship-card .sc-row code { font-family: var(--font-mono); color: var(--steel-700); }

/* ===== Dashboard (cliente registrado) ===== */
.dash-view { padding: 48px 0 90px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-head .crumb { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-subtle); text-transform: uppercase; letter-spacing: var(--ls-wide); }
.dash-head h1 { font-size: clamp(24px, 2.8vw, 34px); font-weight: var(--fw-extra); margin-top: 8px; }

.dash-tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; border-bottom: 1px solid var(--border-subtle); padding-bottom: 2px; }
.dtab {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px 10px 0 0;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted);
  border-bottom: 2px solid transparent; transition: color 120ms, border-color 120ms;
}
.dtab .lucide, .dtab i { width: 16px; height: 16px; }
.dtab:hover { color: var(--text-strong); }
.dtab.active { color: var(--brand-navy); border-bottom-color: var(--brand-steel); }

.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 18px; box-shadow: 0 6px 20px rgba(17,42,61,.05);
  transition: transform 140ms, box-shadow 140ms, border-color 140ms;
}
.dash-card:hover { transform: translateY(-2px); border-color: var(--steel-300); box-shadow: 0 10px 26px rgba(17,42,61,.09); }
.dash-card .dc-ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-accent-soft); color: var(--steel-600); display: grid; place-items: center;
}
.dash-card .dc-ico .lucide, .dash-card .dc-ico i { width: 19px; height: 19px; }
.dash-card .dc-body { min-width: 0; }
.dash-card .dc-t { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-strong); }
.dash-card .dc-s { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-card .dc-chev { margin-left: auto; width: 16px; height: 16px; color: var(--text-subtle); flex: none; }

/* Forms (mis datos / dirección) */
.df { display: grid; gap: 18px; }
/* align-items:start evita que una celda con .fld-help (ej. Referencia) estire la
   celda vecina sin ayuda (Región): así ambos controles quedan pegados a su label,
   a la misma altura, y la ayuda cuelga debajo sin descuadrar nada. */
.df-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.df .fld { display: grid; gap: 7px; }
.df label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-strong); letter-spacing: var(--ls-snug); }
.df input, .df select, .df textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--border-default); background: var(--surface-card);
  font-size: var(--fs-sm); line-height: var(--lh-snug); color: var(--text-body);
  font-family: inherit; height: 46px;
  transition: border-color 120ms, box-shadow 120ms;
}
.df textarea { height: auto; min-height: 92px; resize: vertical; }
/* Checkbox en línea dentro de un .df: el .df input global le pone width:100%/height,
   así que hay que resetearlo para que quede como casilla + texto, no como campo. */
.check-inline { display: flex; align-items: center; gap: 11px; margin-top: 4px; font-size: var(--fs-sm); color: var(--text-body); cursor: pointer; }
.check-inline input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand-navy); cursor: pointer;
}
/* El <select> nativo calcula su alto distinto y trae su propia flecha:
   reseteamos la apariencia y ponemos una flecha propia para que quede igual a los inputs. */
.df select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234E5D69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.df input:focus, .df select:focus, .df textarea:focus { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 3px rgba(99, 157, 174, 0.22); }
.df input:disabled, .df select:disabled { background: var(--surface-sunken); color: var(--text-subtle); }
.df-actions { display: flex; gap: 10px; }

/* Direcciones */
.empty-addr { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1.5px dashed var(--border-default); border-radius: 12px; background: var(--surface-sunken); }
.empty-addr p { font-size: var(--fs-sm); color: var(--text-muted); }
.addr-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface-sunken); }
.addr-card .ac-l { display: flex; align-items: flex-start; gap: 12px; }
.addr-card .ac-l .lucide, .addr-card .ac-l i { width: 18px; height: 18px; color: var(--steel-600); margin-top: 2px; flex: none; }
.addr-card .ac-line { font-size: var(--fs-sm); color: var(--text-strong); font-weight: var(--fw-semibold); }
.addr-card .ac-line.muted { color: var(--text-muted); font-weight: var(--fw-regular); margin-top: 2px; }

/* Orders list rows (shared: resumen + pedidos) */
.orders-list { display: grid; gap: 10px; }
.order-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--border-subtle); background: var(--surface-sunken);
  cursor: pointer; transition: border-color 120ms, background 120ms;
}
.order-row:hover { border-color: var(--steel-300); background: var(--surface-card); }
.order-row .or-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.order-row .or-ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-accent-soft); color: var(--steel-600); display: grid; place-items: center;
}
.order-row .or-ico .lucide, .order-row .or-ico i { width: 17px; height: 17px; }
.order-row .or-id { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.order-row .or-date { font-size: var(--fs-2xs); color: var(--text-subtle); margin-top: 2px; }
.order-row .status-pill { margin-left: auto; }
.order-row .or-total { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-body); min-width: 90px; text-align: right; }
.order-row .or-chev { width: 16px; height: 16px; color: var(--text-subtle); flex: none; }

/* Slim footer */
.slim-foot { padding: 26px 0; border-top: 1px solid var(--border-subtle); background: var(--surface-page); }
.slim-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-subtle); }
.slim-foot a { color: var(--text-muted); }
.slim-foot a:hover { color: var(--brand-steel); }

/* ============================================================
   Mi cuenta v2 — hero, sidebar, KPIs, dashboard denso, empty states
   ============================================================ */

/* ----- Hero ----- */
.acct-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 28px; margin-bottom: 24px; border-radius: 18px;
  background:
    radial-gradient(600px 300px at 100% -40%, var(--surface-accent-soft), transparent 70%),
    var(--surface-card);
  border: 1px solid var(--border-subtle); box-shadow: 0 10px 30px rgba(17,42,61,.06);
}
.acct-hero .ah-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.acct-hero .ah-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-notice {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 13px 18px; border-radius: 12px;
  background: var(--surface-brand-soft); border: 1px solid var(--steel-200);
  font-size: var(--fs-sm); color: var(--text-body);
}
.admin-notice .lucide, .admin-notice i { width: 17px; height: 17px; flex: none; color: var(--marine-600); }

/* Aviso "confirma tu correo" */
.verify-notice {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  padding: 13px 18px; border-radius: 12px;
  background: var(--warning-soft); border: 1px solid var(--amber-500);
  font-size: var(--fs-sm); color: var(--amber-600);
}
.verify-notice > .lucide, .verify-notice > i { width: 20px; height: 20px; flex: none; color: var(--amber-600); }
.verify-notice .vn-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.verify-notice .vn-copy strong { color: var(--text-strong); }
.verify-notice .vn-copy span { color: var(--text-muted); }
.verify-notice .vn-copy strong:last-of-type { color: inherit; }
.verify-notice .vn-form { margin-left: auto; flex: none; }
.acct-facts .af-ic.warn { background: var(--warning-soft); color: var(--amber-600); }

/* Página de resultado de verificación */
.verify-ico { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; }
.verify-ico.ok { background: var(--success-soft); color: var(--green-600); }
.verify-ico.err { background: var(--warning-soft); color: var(--amber-600); }
.verify-ico .lucide, .verify-ico i { width: 34px; height: 34px; }
.admin-notice a { color: var(--text-link); font-weight: var(--fw-semibold); }
.admin-notice a:hover { color: var(--brand-steel); }
.acct-hero .ah-avatar {
  flex: none; width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px; font-weight: var(--fw-extra); color: #fff; letter-spacing: 0;
  background: linear-gradient(140deg, var(--steel-500), var(--brand-navy));
  box-shadow: 0 8px 20px rgba(17,42,61,.18);
}
.acct-hero .crumb { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-subtle); text-transform: uppercase; letter-spacing: var(--ls-wide); }
.acct-hero h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: var(--fw-extra); margin-top: 5px; line-height: 1.15; }
.acct-hero .ah-meta { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-top: 11px; }
.acct-hero .ah-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); color: var(--text-muted); }
.acct-hero .ah-meta .lucide, .acct-hero .ah-meta i { width: 14px; height: 14px; color: var(--text-subtle); }
.acct-hero .ah-ok { color: var(--green-600) !important; font-weight: var(--fw-semibold); }
.acct-hero .ah-ok .lucide, .acct-hero .ah-ok i { color: var(--green-500) !important; }

/* ----- Layout con sidebar ----- */
.acct-layout { display: grid; grid-template-columns: 232px 1fr; gap: 24px; align-items: start; }
.acct-nav {
  display: flex; flex-direction: column; gap: 3px; position: sticky; top: 90px;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px;
  padding: 10px; box-shadow: 0 6px 20px rgba(17,42,61,.05);
}
.anav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted);
  transition: background 130ms, color 130ms;
}
.anav-item > span:first-of-type { flex: 1; }
.anav-item .lucide, .anav-item i { width: 17px; height: 17px; flex: none; }
.anav-item:hover { background: var(--surface-sunken); color: var(--text-strong); }
.anav-item { position: relative; }
.anav-item.active { background: var(--surface-accent-soft); color: var(--brand-navy); }
.anav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-steel); }
.anav-item.active .lucide, .anav-item.active i { color: var(--steel-600); }
.anav-badge {
  flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; font-size: var(--fs-2xs); font-weight: var(--fw-bold);
  background: var(--steel-500); color: #fff;
}
.acct-content { min-width: 0; }

/* ----- KPIs ----- */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi {
  display: flex; flex-direction: column; gap: 4px; position: relative;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px;
  padding: 20px; box-shadow: 0 6px 20px rgba(17,42,61,.05);
  transition: transform 140ms, box-shadow 140ms, border-color 140ms;
}
.kpi:hover { transform: translateY(-2px); border-color: var(--steel-300); box-shadow: 0 12px 28px rgba(17,42,61,.1); }
.kpi .kpi-ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 8px;
  background: var(--surface-accent-soft); color: var(--steel-600); display: grid; place-items: center;
}
.kpi .kpi-ico .lucide, .kpi .kpi-ico i { width: 20px; height: 20px; }
.kpi .kpi-num { font-size: 30px; font-weight: var(--fw-extra); color: var(--text-strong); letter-spacing: var(--ls-tight); line-height: 1; }
.kpi .kpi-lbl { font-size: var(--fs-xs); color: var(--text-muted); }
.kpi .kpi-bar { height: 5px; border-radius: 999px; background: var(--slate-100); overflow: hidden; margin-top: 8px; }
.kpi .kpi-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--steel-500), var(--brand-navy)); transition: width 500ms cubic-bezier(.16,1,.3,1); }

/* ----- Splits del dashboard ----- */
.dash-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.dash-aside { display: grid; gap: 22px; align-content: start; }
.split-form { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }

/* h2 con acción a la derecha */
.panel h2 .panel-link { margin-left: auto; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-link); display: inline-flex; align-items: center; }
.panel h2 .panel-link:hover { color: var(--brand-steel); }
.panel h2 .h2-count { margin-left: 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--steel-600); background: var(--surface-accent-soft); border-radius: 999px; padding: 2px 9px; }
.panel-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-link); }
.panel-cta:hover { color: var(--brand-steel); }
.panel-cta .lucide, .panel-cta i { width: 15px; height: 15px; }

/* ----- Mini dirección (resumen) ----- */
.mini-addr { display: grid; gap: 3px; }
.ma-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-bottom: 8px; font-size: var(--fs-2xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--steel-700); background: var(--surface-accent-soft); border: 1px solid var(--steel-200); border-radius: 999px; padding: 3px 10px; }
.ma-badge .lucide, .ma-badge i { width: 12px; height: 12px; }
.ma-line { font-size: var(--fs-sm); color: var(--text-strong); font-weight: var(--fw-semibold); }
.ma-line.muted { color: var(--text-muted); font-weight: var(--fw-regular); }
.aside-empty { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---- Perfiles de facturación ---- */
.bill-list { display: grid; gap: 12px; margin-bottom: 28px; }
.bill-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface-card);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.bill-card.is-default { border-color: var(--steel-300); background: var(--surface-accent-soft); }
.bill-main { min-width: 0; }
.bill-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.bill-tag { font-size: var(--fs-2xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-wide); padding: 3px 9px; border-radius: 6px; }
.bill-tag.factura { background: var(--surface-brand-soft); color: var(--marine-600); }
.bill-tag.boleta { background: var(--surface-sunken); color: var(--text-muted); }
.bill-default { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-2xs); font-weight: var(--fw-semibold); color: var(--steel-600); }
.bill-default .lucide, .bill-default i { width: 12px; height: 12px; }
.bill-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.bill-sub { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.bill-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.bill-actions form { display: inline-flex; }
.bill-link {
  width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center;
  color: var(--text-subtle); transition: background var(--dur-fast), color var(--dur-fast);
}
.bill-link:hover { background: var(--surface-sunken); color: var(--brand-navy); }
.bill-link.danger:hover { background: var(--danger-soft); color: var(--danger); }
.bill-link .lucide, .bill-link i { width: 16px; height: 16px; }
.bill-form-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-strong); margin-bottom: 14px; }

.section-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 18px; }

/* Cabecera del listado con botón "Agregar" a la derecha */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.list-head .btn-sm { flex: none; }
/* Form de agregar/editar: separado del listado con un divisor */
.bill-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.bill-form[hidden] { display: none; }

/* Tabs Boleta / Factura (solo navegan) */
.doc-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 24px; }
.doc-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 2px; font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.doc-tab:hover { color: var(--text-strong); }
.doc-tab .lucide, .doc-tab i { width: 16px; height: 16px; }
.doc-tab.active { color: var(--text-strong); font-weight: var(--fw-bold); }
.doc-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-navy); border-radius: 2px; }
.doc-tab .doc-star { display: inline-grid; place-items: center; color: var(--brand-steel); }
.doc-tab .doc-star .lucide, .doc-tab .doc-star i { width: 13px; height: 13px; fill: currentColor; }
.doc-panel[hidden] { display: none; }

/* Info de boleta (sin datos) */
.doc-info {
  display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--surface-sunken); border: 1px solid var(--border-subtle);
}
.doc-info > .lucide, .doc-info > i { width: 20px; height: 20px; flex: none; color: var(--steel-600); margin-top: 1px; }
.doc-info strong { font-size: var(--fs-sm); color: var(--text-strong); }
.doc-info p { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 3px; line-height: var(--lh-snug); }

/* Estado "es tu preferido" y formulario de marcar preferencia */
.doc-pref-actual { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--green-600); margin-bottom: 20px; }
.doc-pref-actual .lucide, .doc-pref-actual i { width: 15px; height: 15px; fill: currentColor; }
.doc-pref-form { margin-bottom: 24px; }

/* ----- Mini lista de datos ----- */
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); font-size: var(--fs-sm); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li span { color: var(--text-muted); }
.mini-list li strong { color: var(--text-strong); font-weight: var(--fw-semibold); max-width: 60%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----- Estado de cuenta (mis datos) ----- */
.acct-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.acct-facts li { display: flex; align-items: center; gap: 12px; }
.acct-facts .af-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-sunken); color: var(--text-muted); display: grid; place-items: center; }
.acct-facts .af-ic.ok { background: var(--success-soft); color: var(--green-600); }
.acct-facts .af-ic .lucide, .acct-facts .af-ic i { width: 16px; height: 16px; }
.acct-facts strong { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.acct-facts small { font-size: var(--fs-xs); color: var(--text-muted); }
.acct-facts small a { color: var(--text-link); font-weight: var(--fw-semibold); }
.acct-facts small a:hover { color: var(--brand-steel); }
.panel-tip { display: flex; align-items: center; gap: 16px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
a.panel-tip:hover { border-color: var(--brand-steel); box-shadow: var(--shadow-sm); }
.panel-tip .tip-num { flex: none; font-size: 26px; font-weight: var(--fw-extra); color: var(--steel-600); display: grid; place-items: center; }
.panel-tip .tip-num .lucide, .panel-tip .tip-num i { width: 26px; height: 26px; }
.panel-tip strong { font-size: var(--fs-sm); color: var(--text-strong); }
.panel-tip p { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 3px; line-height: var(--lh-snug); display: inline-flex; align-items: center; gap: 5px; }
.panel-tip p .lucide, .panel-tip p i { width: 13px; height: 13px; transition: transform var(--dur-fast) var(--ease-out); }
a.panel-tip:hover p i { transform: translateX(3px); }
.panel-tip.is-done .tip-num { color: var(--green-600); }

/* CTA de perfil en el Resumen: barra de progreso + siguiente dato a completar */
.profile-cta {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--surface-accent-soft); border: 1px solid var(--steel-200);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.profile-cta:hover { border-color: var(--brand-steel); box-shadow: var(--shadow-sm); }
.profile-cta .pc-bar { flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(var(--brand-steel) var(--pct, 0deg), var(--surface-sunken) 0);
  display: grid; place-items: center; }
.profile-cta .pc-bar::after { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-accent-soft); }
.profile-cta .pc-bar { position: relative; }
.profile-cta .pc-pct { position: relative; z-index: 1; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: var(--fw-bold); color: var(--steel-600); }
.profile-cta .pc-pct::after { content: "%"; font-size: 8px; }
.profile-cta .pc-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-cta .pc-copy strong { font-size: var(--fs-sm); color: var(--text-strong); font-weight: var(--fw-semibold); }
.profile-cta .pc-copy small { font-size: var(--fs-xs); color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.profile-cta .pc-copy small .lucide, .profile-cta .pc-copy small i { width: 13px; height: 13px; transition: transform var(--dur-fast) var(--ease-out); }
.profile-cta:hover .pc-copy small i { transform: translateX(3px); }

/* ----- Form: ayudas y opcional ----- */
.fld-help { font-size: var(--fs-2xs); color: var(--text-subtle); line-height: var(--lh-snug); }
.lbl-opt { font-weight: var(--fw-regular); color: var(--text-subtle); text-transform: none; letter-spacing: 0; }

/* ----- Feedback de guardado ----- */
.save-flash {
  display: flex; align-items: center; gap: 9px; margin-bottom: 20px;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--green-600);
  background: var(--success-soft); border: 1px solid var(--green-500); border-radius: 12px; padding: 12px 15px;
  animation: flashIn 320ms cubic-bezier(.16,1,.3,1);
}
.save-flash .lucide, .save-flash i { width: 17px; height: 17px; flex: none; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ----- Tarjeta de dirección enriquecida ----- */
.addr-card {
  display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; position: relative;
  padding: 22px; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--surface-sunken);
}
.addr-card .ac-badge { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--steel-700); background: var(--surface-card); border: 1px solid var(--steel-200); border-radius: 999px; padding: 4px 11px; }
.addr-card .ac-badge .lucide, .addr-card .ac-badge i { width: 12px; height: 12px; color: var(--amber-500); }
.addr-card .ac-body { flex: 1; min-width: 220px; }
.addr-card .ac-line.strong { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text-strong); margin-bottom: 14px; }
.addr-card .ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 20px; }
.addr-card .ac-grid > div { font-size: var(--fs-sm); color: var(--text-body); }
.addr-card .ac-k { display: block; font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--text-subtle); margin-bottom: 3px; }
.addr-card .btn { align-self: flex-start; }
.addr-hint { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--fs-xs); color: var(--text-subtle); }
.addr-hint .lucide, .addr-hint i { width: 14px; height: 14px; flex: none; }

/* ----- Empty state ----- */
.empty-state { text-align: center; padding: 40px 24px; display: grid; justify-items: center; gap: 6px; }
.empty-state .es-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--surface-accent-soft); color: var(--steel-500); display: grid; place-items: center; margin-bottom: 8px; }
.empty-state .es-ico .lucide, .empty-state .es-ico i { width: 30px; height: 30px; }
.empty-state h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text-strong); }
.empty-state p { font-size: var(--fs-sm); color: var(--text-muted); max-width: 380px; line-height: var(--lh-relaxed); }
.empty-state .btn { margin-top: 12px; }

/* ===== Responsive ===== */
@media (max-width: 1040px) {
  .acct-layout { grid-template-columns: 1fr; }
  .acct-nav {
    position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding: 8px;
    scrollbar-width: none;
  }
  .acct-nav::-webkit-scrollbar { display: none; }
  .anav-item { white-space: nowrap; }
  .anav-item > span:first-of-type { flex: none; }
  .anav-item.active::before { display: none; }
  .dash-split, .split-form { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  /* En móvil: primero el formulario, luego el bloque informativo */
  .auth-wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 64px; justify-items: center; }
  .auth-card { max-width: 480px; width: 100%; order: -1; }
  .auth-intro { max-width: 480px; text-align: center; }
  .auth-intro p.sub { margin-left: auto; margin-right: auto; }
  .auth-feats { max-width: 340px; margin-left: auto; margin-right: auto; }
  .track-grid { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr; }
  .df-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .auth-card--register .auth-form { padding: 26px 22px; gap: 22px; }
  .auth-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .acct-hero { padding: 20px; }
}
@media (max-width: 560px) {
  .order-row { flex-wrap: wrap; }
  .order-row .status-pill { margin-left: 0; order: 3; }
  .order-row .or-total { margin-left: auto; }
}

/* El bloque .erut-actual / .erut-ok / .erut-pend se movió a store.css: lo usan tanto
   la cuenta del cliente como /gestion/ (usuarios y card de documento), y el shell del
   dashboard no carga este archivo. */
