/* OFFERS – UI elegante, progresiva y sin JS */
:root{
  --bg:#0b0c10;
  --ink:#f2f3f8;
  --muted:#a9afbf;
  --panel:#121525;
  --panel-2:#0e1120;
  --stroke:#232846;
  --accent:#7ef9c6;
  --accent-2:#ff8ac3;
  --accent-3:#ffd760;
  --ok:#6ff7a9;
  --warn:#ffd760;
  --bad:#ff8a9a;
  --shadow:0 24px 60px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.45 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  background: radial-gradient(1100px 600px at 20% -10%, #151a33, #0b0c10);
  color:var(--ink);
}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; gap:20px;
  padding:12px 16px;
  background:linear-gradient(180deg,#0f1326, rgba(15,19,38,.85));
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.brand{display:flex;align-items:center;gap:8px;font-weight:800;letter-spacing:.5px}
.brand .mark{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#0b0c10;font-weight:900}
.brand em{font-weight:700;opacity:.5}
.crumbs{display:flex;gap:10px;flex-wrap:wrap}
.crumbs a{font-size:13px;opacity:.8;color:var(--ink);text-decoration:none;padding:6px 10px;border-radius:999px;background:#0e1226;border:1px solid rgba(255,255,255,.08)}
.crumbs a:hover{opacity:1}

/* Layout */
.grid{
  width:min(1200px,94vw);
  margin:20px auto;
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:18px;
}
.sheet{
  background:linear-gradient(180deg,#121525,#0e1120);
  border:1px solid var(--stroke);
  border-radius:24px;
  padding:18px;
  box-shadow: var(--shadow);
}
.side{display:grid;gap:16px}

.title{margin:.2rem 0 .2rem;font-size:28px}
.subtitle{margin:0 0 .6rem;color:var(--muted)}

.card{
  position:relative;
  border:1px solid var(--stroke);
  background:#0e1120;
  border-radius:18px;
  padding:14px;
  margin:12px 0;
  transition:transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
  outline:2px solid transparent;
}
.card:hover{transform: translateY(-1px); box-shadow:0 24px 40px rgba(0,0,0,.25)}

.card header{display:flex;align-items:baseline;gap:10px;justify-content:space-between}
.card h2{margin:0;font-size:18px;letter-spacing:.3px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:.1rem .5rem;border-radius:999px;background:#141734;border:1px solid #262a4d;color:#dfe4ff}
.hint{color:var(--muted)}

/* Fields */
.fields{display:grid;gap:10px;margin-top:8px}
.row{display:grid;grid-template-columns:repeat(2,1fr); gap:10px}
.row.compact{grid-template-columns:repeat(4,auto);gap:8px;flex-wrap:wrap}
.field{display:grid;gap:6px}
.field input,.field textarea,.field select{
  background:#0b0e1d; color:var(--ink);
  border:1px solid #1e2342; border-radius:12px; padding:10px 12px;
}
.field textarea{resize:vertical}
.input-money{display:grid;grid-template-columns:1fr auto; gap:6px; align-items:center}
.file input[type=file]{border-style:dashed;cursor:pointer}

.toggle{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;background:#0f1328;border:1px solid #1e2342;cursor:pointer}
.toggle input{accent-color:var(--accent)}
.choice{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:#0f1328;border:1px solid #1e2342;cursor:pointer}
.choice input{accent-color:var(--accent-2)}

.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}
button.primary,.ghost{
  border-radius:12px;border:1px solid rgba(255,255,255,.08);
  padding:10px 14px;background:#0f1328;color:var(--ink);text-decoration:none
}
button.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#0b0c10;font-weight:900}
button.primary:disabled{filter:grayscale(1);opacity:.7}

/* Side */
.meta{display:flex;gap:8px;flex-wrap:wrap}
.pill{background:#0f1328;border:1px solid rgba(255,255,255,.08);padding:8px 10px;border-radius:12px}
.helper,.mini-preview{
  background:linear-gradient(180deg,#0f1328,#0b0f22);
  border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:12px;
}
.helper details{margin-top:8px}
.helper summary{cursor:pointer}

.footer{width:min(1200px,94vw);margin:12px auto 30px auto;color:#9aa3bb}

/* Progressive focus using :target */
.card:target{outline-color:#3dd6b2; box-shadow: 0 0 0 3px rgba(61,214,178,.25) inset}
.sheet:has(.card:target) .card:not(:target){opacity:.55; transform:scale(.99)}

/* Expandable addon */
.addon{border:1px dashed #2b345d;border-radius:14px;padding:8px 10px;background:#0a0d1a}
.addon > summary{cursor:pointer; list-style:none}
.addon > summary::-webkit-details-marker{display:none}
.flavors{grid-template-columns:1fr 1fr 1fr}

/* Responsivo */
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
  .row{grid-template-columns:1fr}
  .row.compact{grid-template-columns:repeat(2,auto)}
}
