:root{
  --bg:#0b0f1a;
  --card:#121a2a;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --accent:#22c55e;
  --accent2:#60a5fa;
  --warn:#f59e0b;
  --danger:#ef4444;
  --border:rgba(148,163,184,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --max:1100px;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background: url("imgs/fondoWeb.png") center/cover no-repeat fixed, var(--bg); color:var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:28px 18px 80px;}
.nav{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 0 26px;}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.3px; text-decoration:none;}
.logo{
  width:36px; height:36px; border-radius:12px;
  background: #0b0f1a url("imgs/CosteRealCoche.png") center/contain no-repeat;
  box-shadow: var(--shadow);
}
.logo img{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
}
.badge{font-size:12px; color:var(--muted); padding:6px 10px; border:1px solid var(--border); border-radius:999px; backdrop-filter: blur(8px);}
.grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px;}
@media (max-width: 920px){ .grid{grid-template-columns:1fr;} }
.hero{
  padding:22px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.h1{font-size:38px; line-height:1.05; margin:0 0 12px; letter-spacing:-.6px;}
.sub{color:var(--muted); margin:0 0 18px; font-size:15px; line-height:1.5;}
.pills{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px;}
.pill{font-size:12px; padding:7px 10px; border:1px solid var(--border); border-radius:999px; color:#cbd5e1; background:rgba(255,255,255,.02);}

.card{
  padding:18px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18,26,42,.72);
  box-shadow: var(--shadow);
}
.card h2{margin:0 0 10px; font-size:16px; color:#e2e8f0;}
form{display:grid; gap:12px; margin-top:10px;}
.row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
@media (max-width: 620px){ .row{grid-template-columns:1fr;} }
label{display:flex; flex-direction:column; gap:6px; font-size:12px; color:#cbd5e1;}
input, select{
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(11,15,26,.7);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{border-color: rgba(96,165,250,.7); box-shadow: 0 0 0 4px rgba(96,165,250,.15);}
.help{font-size:12px; color:var(--muted);}
.btn{
  padding:13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34,197,94,.35);
  background: linear-gradient(135deg, rgba(34,197,94,.92), rgba(96,165,250,.75));
  color:#07101d;
  font-weight:800;
  letter-spacing:.2px;
  cursor:pointer;
}
.btn:active{transform:translateY(1px);}
.secondary{
  padding:12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight:700;
  cursor:pointer;
}
.actions{display:flex; gap:10px; flex-wrap:wrap;}
.kpis{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px;}
@media (max-width: 620px){ .kpis{grid-template-columns:1fr;} }
.kpi{
  padding:14px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.kpi .label{font-size:12px; color:var(--muted);}
.kpi .value{font-size:22px; font-weight:900; margin-top:6px;}
hr.sep{border:none; border-top:1px solid var(--border); margin:16px 0;}
.small{font-size:12px; color:var(--muted); line-height:1.55;}
.footer{margin-top:26px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; color:var(--muted); font-size:12px;}
.links{display:flex; gap:12px; flex-wrap:wrap;}
.toast{
  position:fixed; left:50%; bottom:18px; transform:translateX(-50%);
  max-width: min(760px, calc(100% - 24px));
  padding:12px 14px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(18,26,42,.9);
  box-shadow: var(--shadow);
  display:none;
}
.toast.show{display:flex; gap:10px; align-items:flex-start;}
.toast .text{color:#cbd5e1; font-size:12px; line-height:1.45;}
.toast .mini-actions{margin-left:auto; display:flex; gap:10px; flex-wrap:wrap;}
.toast button{border:none}
.ad-placeholder{
  height: 250px;
  border-radius: 16px;
  border:1px dashed rgba(148,163,184,.35);
/**  display:flex; */
  display: none;
  align-items:center;
  justify-content:center;
  color:rgba(148,163,184,.8);
  background: rgba(255,255,255,.02);
  font-size:12px;
  text-align:center;
  padding:10px;
}
.table{width:100%; border-collapse:collapse; margin-top:10px; font-size:13px;}
.table th, .table td{padding:10px 8px; border-bottom:1px solid var(--border); text-align:left;}
.table th{color:#cbd5e1; font-weight:700; font-size:12px;}
.highlight{color:#e2e8f0; font-weight:800;}
