
:root{--bg:#0f172a;--card:#ffffff;--ink:#1e293b;--muted:#64748b;--accent:#e8831a;--accent2:#ffb457}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;background:#f1f5f9;color:var(--ink);line-height:1.5}
header{background:linear-gradient(135deg,#0f172a,#1e3a5f);color:#fff;padding:2.5rem 1rem 2rem}
.header-inner{max-width:1200px;margin:0 auto}
h1{margin:0 0 .4rem;font-size:2.2rem;letter-spacing:-.02em}
header p{margin:.2rem 0;color:#cbd5e1;max-width:60ch}
nav{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:10}
nav div{max-width:1200px;margin:0 auto;padding:.7rem 1rem;display:flex;gap:1.2rem;flex-wrap:wrap}
nav a{color:#1e3a5f;text-decoration:none;font-weight:600;font-size:.95rem}
nav a:hover{color:var(--accent)}
main{max-width:1200px;margin:0 auto;padding:1.6rem 1rem 3rem}
section{margin-bottom:2.4rem}
h2{font-size:1.4rem;margin:0 0 .2rem}
.sub{color:var(--muted);margin:.2rem 0 1.1rem;font-size:.95rem}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1rem}
.card{background:var(--card);border:1px solid #e2e8f0;border-radius:12px;padding:1rem;display:flex;flex-direction:column;gap:.5rem;box-shadow:0 1px 3px rgba(15,23,42,.06)}
.card img{width:100%;height:170px;object-fit:contain;background:#fff}
.card h3{font-size:.9rem;margin:0;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:3.9rem}
.card a{color:inherit;text-decoration:none}
.card a:hover{color:var(--accent)}
.precio{font-size:1.25rem;font-weight:800;color:#0f766e;margin-top:auto}
.fecha{font-size:.75rem;color:var(--muted)}
.lista{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.9rem}
.lista a{display:block;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:1rem;text-decoration:none;color:var(--ink);font-weight:600}
.lista a:hover{border-color:var(--accent)}
.paginacion{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1.4rem;align-items:center}
.paginacion a,.paginacion span{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:.45rem .8rem;text-decoration:none;color:#1e3a5f;font-size:.9rem}
.paginacion .actual{background:#1e3a5f;color:#fff;border-color:#1e3a5f}
article{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.3rem;max-width:70ch}
article p{color:#475569}
footer{background:#0f172a;color:#94a3b8;text-align:center;padding:1.6rem 1rem;font-size:.85rem}
footer a{color:#cbd5e1}
.badge{display:inline-block;background:#fef3c7;color:#92400e;border-radius:99px;padding:.2rem .7rem;font-size:.78rem;font-weight:700}
@media(max-width:600px){h1{font-size:1.7rem}.card img{height:140px}}
