/* ==========================================================================
   Portal de Sovralta — estilos compartidos
   Mismo lenguaje visual del sitio público: fondo casi negro, acento dorado.
   ========================================================================== */

:root {
  --bg: #0A0B0E;
  --bg-2: #0C0E12;
  --bg-3: #101318;
  --bg-row-hover: #141820;
  --border: #232832;
  --border-soft: #1C2029;
  --ink: #EEEBE5;
  --mut: #9199A5;
  --mut-2: #6B7280;
  --mut-3: #5A6372;
  --gold: #D6A550;
  --gold-soft: #E8BE6E;
  --gold-bg: rgba(214, 165, 80, 0.14);
  --interno-border: #4A3A1E;
  --interno-bg: #15120B;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a { color: var(--gold); }
a:hover { color: var(--ink); }

.pw { max-width: 1160px; margin: 0 auto; padding-inline: 40px; }
.pw-narrow { max-width: 480px; margin: 0 auto; padding-inline: 24px; }

.d { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 500; letter-spacing: -0.02em; }
.mut { color: var(--mut); }
.eyebrow { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #8A919C; font-weight: 500; }
.card { border: 1px solid var(--border); border-radius: 3px; background: var(--bg-3); }
.interno { border: 1px solid var(--interno-border); border-radius: 3px; background: var(--interno-bg); }

.btn, .btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 3px;
  font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; border: 0;
  transition: transform 240ms cubic-bezier(.16,.84,.44,1), border-color 240ms ease;
}
.btn { background: var(--gold); color: var(--bg); }
.btn:hover { color: var(--bg); transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn2 { background: transparent; color: var(--ink); border: 1px solid #343B46; }
.btn2:hover { border-color: var(--gold); color: var(--ink); }
.btn--full { width: 100%; }

.campo {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid #2B313C; border-radius: 3px;
  color: var(--ink); font-family: inherit; font-size: 16px;
  transition: border-color 220ms ease;
}
.campo:focus { outline: none; border-color: var(--gold); }
label.d { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }

.suelta { border: 1.5px dashed #343B46; border-radius: 3px; padding: 36px 24px; text-align: center; transition: border-color 240ms ease, background 240ms ease; }
.suelta:hover { border-color: var(--gold); background: #0E1116; }
.suelta.arrastrando { border-color: var(--gold); background: #0E1116; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 3px; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 12px; font-weight: 500; white-space: nowrap; }
.punto { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }

.tab { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 0 2px 12px; margin-right: 26px; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 15px; font-weight: 500; color: #6B7280; cursor: pointer; transition: color 220ms ease, border-color 220ms ease; }
.tab:hover { color: var(--ink); }
.tab-on { color: var(--ink); border-bottom-color: var(--gold); }

.fila, .row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; width: 100%;
  text-align: left; padding: 18px 22px; background: transparent; border: 0;
  border-top: 1px solid var(--border-soft); cursor: pointer; font-family: inherit;
  color: inherit; text-decoration: none; transition: background 240ms ease;
}
a.fila, a.row { cursor: pointer; }
.fila:hover, .row:hover { background: var(--bg-row-hover); }
.estado { flex: 0 0 92px; text-align: right; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 13px; font-weight: 500; white-space: nowrap; }

.item { display: flex; align-items: flex-start; gap: 16px; width: 100%; text-align: left; padding: 18px 22px; background: transparent; border: 0; border-top: 1px solid var(--border-soft); cursor: pointer; font-family: inherit; color: inherit; transition: background 240ms ease; }
.item:hover { background: var(--bg-row-hover); }
.caja { width: 20px; height: 20px; border-radius: 3px; border: 1.5px solid #39414D; flex: 0 0 auto; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: background 240ms ease, border-color 240ms ease; }
.caja-on { background: var(--gold); border-color: var(--gold); }

.barra { height: 4px; border-radius: 2px; background: var(--border-soft); overflow: hidden; }
.barra-fill { height: 4px; background: var(--gold); border-radius: 2px; transition: width 620ms cubic-bezier(.16,.84,.44,1); }

/* Línea de tiempo */
.rail { position: relative; display: flex; gap: 0; margin-top: 8px; }
.step { flex: 1 1 0; min-width: 0; padding-top: 30px; position: relative; }
.step-line { position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--border); }
.step-line-on { background: var(--gold); }
.step-line-off { display: none; }
.luz { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #2B313C; background: var(--bg); box-sizing: border-box; }
.luz-on { border-color: var(--gold); background: var(--gold); }
.luz-now { border-color: var(--gold); background: var(--bg); box-shadow: 0 0 0 6px rgba(214,165,80,0.16); }
@keyframes lat { 0%,100% { box-shadow: 0 0 0 6px rgba(214,165,80,0.16); } 50% { box-shadow: 0 0 0 11px rgba(214,165,80,0.04); } }
.luz-now { animation: lat 2.4s ease-in-out infinite; }

.header-bar { border-bottom: 1px solid var(--border-soft); background: var(--bg-2); }
.header-bar .pw { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; min-height: 68px; padding-block: 14px; }
.logo-link { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); }

.skel { background: linear-gradient(90deg, #1C2029 25%, #232832 37%, #1C2029 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: 3px; }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.msg-error { color: #E8847E; font-size: 14px; margin: 0; }
.msg-ok { color: var(--gold-soft); font-size: 14px; margin: 0; }

@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.up { animation: up 640ms cubic-bezier(.16,.84,.44,1) both; }
@media (prefers-reduced-motion: reduce) { .up { animation: none; } .luz-now { animation: none; } .btn:hover { transform: none; } }
@media (max-width: 820px) {
  .pw { padding-inline: 16px; }
  .rail { flex-direction: column; gap: 22px; }
  .step { padding-top: 0; padding-left: 30px; }
  .step-line { display: none; }
  .ocultar { display: none !important; }
}
