:root {
  --bg: #070e08; --panel: #0b160c; --sup: #0f1c11; --sup2: #142518; --sup3: #1b3120;
  --lima: #c6f19d; --lima-f: #b4ea84; --lima-dim: rgba(198, 241, 157, .1); --lima-borde: rgba(198, 241, 157, .3);
  --ambar: #f5b84b; --rojo: #f26b5b; --texto: #eef5ea; --muted: #9fb39a; --dim: #66785f;
  --borde: rgba(198, 241, 157, .09); --borde2: rgba(198, 241, 157, .18);
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  --r: 14px; --suave: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--texto); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--lima); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 650; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 620; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.chico { font-size: .86rem; }
.ancho { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* barra */
.barra { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(7, 14, 8, .82); border-bottom: 1px solid var(--borde); }
.barra .ancho { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.12rem; color: var(--texto); text-decoration: none; letter-spacing: -.01em; }
.marca i { width: 30px; height: 30px; border-radius: 9px; background: var(--lima); color: #0b1a0d; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.marca span { color: var(--muted); font-weight: 500; font-size: .92rem; }

/* botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--borde2); background: var(--sup2); color: var(--texto);
  font: inherit; font-weight: 560; padding: 11px 18px; border-radius: 11px; cursor: pointer; text-decoration: none; transition: .2s var(--suave); white-space: nowrap; }
.btn:hover { border-color: var(--lima-borde); background: var(--sup3); }
.btn.prim { background: var(--lima); color: #0b1a0d; border-color: var(--lima); }
.btn.prim:hover { background: var(--lima-f); }
.btn.grande { padding: 15px 26px; font-size: 1.05rem; border-radius: 13px; }
.btn.peq { padding: 7px 12px; font-size: .88rem; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.peligro { color: var(--rojo); }
label { display: block; font-size: .88rem; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
input, select, textarea { width: 100%; font: inherit; color: var(--texto); background: var(--sup); border: 1px solid var(--borde2); border-radius: 10px; padding: 11px 13px; outline: none; transition: .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--lima-borde); box-shadow: 0 0 0 3px var(--lima-dim); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.campo { margin-bottom: 16px; }
.fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--texto); font-size: .95rem; cursor: pointer; }
.check input { width: auto; margin-top: 4px; accent-color: var(--lima); }

/* tarjetas */
.tarjeta { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--r); padding: 22px; }
.grilla { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: .8rem; font-weight: 560; background: var(--lima-dim); color: var(--lima); border: 1px solid var(--lima-borde); }
.chip.ambar { background: rgba(245, 184, 75, .1); color: var(--ambar); border-color: rgba(245, 184, 75, .3); }
.chip.rojo { background: rgba(242, 107, 91, .1); color: var(--rojo); border-color: rgba(242, 107, 91, .3); }
.chip.gris { background: rgba(255, 255, 255, .04); color: var(--muted); border-color: var(--borde2); }
.aviso { padding: 13px 16px; border-radius: 11px; border: 1px solid rgba(245, 184, 75, .3); background: rgba(245, 184, 75, .07); color: #f6d9a0; font-size: .93rem; }
.error { color: var(--rojo); font-size: .92rem; min-height: 1.2em; }
.barra-av { height: 9px; background: var(--sup2); border-radius: 99px; overflow: hidden; }
.barra-av > div { height: 100%; background: linear-gradient(90deg, var(--lima-f), var(--lima)); width: 0; transition: width .6s var(--suave); }
.oculto { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
hr.sep { border: 0; border-top: 1px solid var(--borde); margin: 22px 0; }
footer { border-top: 1px solid var(--borde); padding: 28px 0 40px; color: var(--dim); font-size: .86rem; margin-top: 60px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--borde); vertical-align: top; }
th { color: var(--muted); font-weight: 520; font-size: .82rem; }
@media (max-width: 640px) { .ancho { padding: 0 16px; } .tarjeta { padding: 18px; } }
