@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Orbitron:wght@600;700&display=swap');

:root{
  --bg:#0B0F1A;
  --surface:#121A2B;
  --border:#23304A;

  --text:#E5E7EB;
  --muted:#A1A1AA;

  --primary:#7C3AED;
  --accent:#22D3EE;

  --success:#22C55E;
  --warning:#F59E0B;
  --danger:#EF4444;

  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow-soft: 0 8px 18px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(124,58,237,.18), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(34,211,238,.12), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:1200px; margin:0 auto; padding:0 18px}
.section{padding:28px 0 44px}

header.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,26,.68);
  border-bottom: 1px solid rgba(35,48,74,.6);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family: Orbitron, Inter, sans-serif;
  letter-spacing:.5px;
}
.brand-badge{
  width:38px; height:38px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,211,238,.85));
  box-shadow: 0 0 18px rgba(124,58,237,.35), 0 0 18px rgba(34,211,238,.25);
}
.brand-title{font-weight:700; font-size:18px}
.brand-sub{font-family:Inter; font-size:12px; color:var(--muted); margin-top:2px}

nav.site-nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.navlink{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  border: 1px solid transparent;
  transition: .18s ease;
  font-size:14px;
}
.navlink:hover{
  color:var(--text);
  border-color: rgba(34,211,238,.25);
  background: rgba(18,26,43,.35);
}

.actions{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(35,48,74,.8);
  background: rgba(18,26,43,.55);
  color: var(--text);
  cursor:pointer;
  transition: .18s ease;
  font-weight:600;
  font-size:14px;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--shadow-soft)}
.btn:active{transform: translateY(0px)}
.btn-primary{
  background: linear-gradient(135deg, rgba(124,58,237,.92), rgba(124,58,237,.72));
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 18px rgba(124,58,237,.25);
}
.btn-primary:hover{box-shadow: 0 0 28px rgba(124,58,237,.35), var(--shadow-soft)}
.btn-outline{
  background: transparent;
  border-color: rgba(34,211,238,.6);
  color: var(--accent);
}
.btn-outline:hover{
  background: rgba(34,211,238,.10);
  box-shadow: 0 0 20px rgba(34,211,238,.18), var(--shadow-soft);
}
.btn-danger{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.55);
  color: #fecaca;
}
.btn-danger:hover{box-shadow: 0 0 20px rgba(239,68,68,.18), var(--shadow-soft);}

.hero{
  display:grid;
  gap:18px;
  padding:28px 0;
}
.hero h1{
  font-family: Orbitron, Inter, sans-serif;
  font-size: 40px;
  margin:0;
  line-height:1.12;
}
.hero p{margin:0; color: var(--muted); max-width: 70ch; font-size:16px; line-height:1.65}

.grid{
  display:grid;
  gap:14px;
}

/* Responsive helper grids (forms) */
.grid.two-col{grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px;}
@media (max-width: 640px){
  .grid.two-col{grid-template-columns: 1fr;}
}
.grid.cards{grid-template-columns: repeat(3, minmax(0, 1fr));}
@media (max-width: 980px){ .grid.cards{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (max-width: 640px){ .grid.cards{grid-template-columns: 1fr;} }

.card{
  background: rgba(18,26,43,.78);
  border: 1px solid rgba(35,48,74,.85);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  transition: .18s ease;
  position: relative;
  overflow:hidden;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 26px rgba(34,211,238,.12), 0 16px 38px rgba(0,0,0,.28);
}
.card h3{
  font-family: Orbitron, Inter, sans-serif;
  font-size: 18px;
  margin: 0 0 8px;
}
.card p{margin: 0 0 12px; color: var(--muted); line-height:1.55}
.card .meta{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border: 1px solid rgba(34,211,238,.35);
  color: var(--accent);
  background: rgba(34,211,238,.10);
}
.card .row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.input{
  background: rgba(11,15,26,.65);
  border: 1px solid rgba(35,48,74,.85);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  outline:none;
  min-width: 220px;
}
.input:focus{
  border-color: rgba(124,58,237,.65);
  box-shadow: 0 0 0 4px rgba(124,58,237,.18);
}
.select{min-width: 180px}

.form-card{max-width: 760px}
.form{
  display:grid;
  gap:12px;
}
.form label{display:block; font-size:13px; color: var(--muted); margin-bottom:6px}
.form .field{display:grid; gap:6px}
.textarea{min-height: 110px; resize: vertical}

.notice{
  border-radius: 14px;
  border: 1px solid rgba(35,48,74,.9);
  background: rgba(18,26,43,.65);
  padding: 12px 14px;
  color: var(--muted);
}
.notice.success{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.08);
  color: #bbf7d0;
}
.notice.error{
  border-color: rgba(239,68,68,.45);
  background: rgba(239,68,68,.08);
  color: #fecaca;
}

footer.site-footer{
  border-top: 1px solid rgba(35,48,74,.6);
  padding: 22px 0;
  margin-top: 30px;
  color: var(--muted);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer-links{display:flex; gap:12px; flex-wrap:wrap}
.footer-links a{color: var(--muted)}
.footer-links a:hover{color: var(--text)}

/* ------------------------------
   Responsive navigation (mobile)
------------------------------ */
.menu-toggle{
  display:none;
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(35,48,74,.85);
  background: rgba(18,26,43,.55);
  color: var(--text);
  cursor:pointer;
  transition: .18s ease;
}
.menu-toggle:hover{box-shadow: var(--shadow-soft); transform: translateY(-1px)}
.menu-toggle:active{transform: translateY(0px)}
.menu-toggle svg{width:20px; height:20px}

@media (max-width: 820px){
  .header-inner{align-items:flex-start}
  nav.site-nav{
    width:100%;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding: 10px 0 0;
  }
  nav.site-nav.open{display:flex}
  .navlink{
    width:100%;
    justify-content:flex-start;
    padding:12px 12px;
    background: rgba(18,26,43,.35);
    border-color: rgba(35,48,74,.55);
  }
  .actions{margin-left:auto}
  .menu-toggle{display:inline-flex; align-items:center; justify-content:center}
  .brand{gap:10px}
  .brand-title{font-size:16px}
}

@media (max-width: 640px){
  .hero h1{font-size:30px}
  .container{padding:0 14px}
  .btn{width:100%}
  .actions .btn{width:auto} /* keep + Nuevo compact in header */
  .toolbar{gap:10px}
  .input{min-width: 0; width:100%}
  .toolbar > *{flex: 1 1 220px}
  .grid.cards{grid-template-columns: 1fr}
  .form-card{max-width: 100%}
}
