:root{
  --bg:#f7f7f7; --fg:#212121; --muted:#6b7280;
  --card:#ffffff; --brand:#1f2937; --accent:#2563eb;
  --radius:14px; --shadow:0 2px 10px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--fg);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.container{max-width:1100px; margin:0 auto; padding:0 20px}

.site-header{
  background:var(--card); box-shadow:var(--shadow);
  padding:26px 0; margin-bottom:18px;
}
.site-title{
  margin:0 0 6px 0; color:var(--brand); font-size:clamp(20px,3vw,28px);
}
.site-subtitle{margin:0; color:var(--muted)}

.toolbar{
  display:flex; justify-content:flex-end; margin:6px 0 14px;
}
#search{
  width:100%; max-width:360px; padding:10px 12px; border-radius:10px;
  border:1px solid #e5e7eb; outline:none;
}
#search:focus{border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.15)}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.card{
  display:flex; align-items:center; justify-content:center;
  min-height:72px; padding:16px; text-align:center;
  background:var(--card); color:var(--brand); text-decoration:none;
  border:1px solid #e5e7eb; border-radius:var(--radius); box-shadow:var(--shadow);
  transition:transform .08s ease, box-shadow .08s ease, border-color .08s ease;
  font-weight:600;
}
.card:hover,.card:focus{
  transform:translateY(-1px);
  border-color:var(--accent);
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.card:active{transform:translateY(0)}

.site-footer{
  color:var(--muted); padding:24px 0; text-align:center;
}

/* Accesibilidad (ocultar solo visualmente) */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

@media (max-width:480px){
  #search{max-width:100%}
}
