:root {
  --navy: #0a1a3f;
  --accent: #1a4fd8;
  --bg: #f3f5f9;
  --panel: #ffffff;
  --border: #e4e7ee;
  --text: #10182b;
  --muted: #667085;
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family: 'Segoe UI', system-ui, sans-serif; }

header {
  background: var(--panel);
  padding: 28px 40px;
  border-bottom: 1px solid var(--border);
}
header h1 { margin:0; font-size: 28px; font-weight: 800; color: var(--navy); }
.header-top { display: flex; align-items: center; gap: 14px; }
.logo { height: 60px; width: auto; border-radius: 6px; }
header .sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.aviso-financiacion { font-size: 12px; margin: 8px 0 0; color: var(--text); }

.layout { display:flex; }

.sidebar {
  width: 240px;
  padding: 24px 20px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar ul { list-style:none; padding:0; margin:0 0 24px; }
.sidebar li a {
  color: var(--text);
  text-decoration:none;
  display:block;
  padding:10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.sidebar li a span { color: var(--muted); font-weight: 400; font-size: 12px; }
.sidebar li a:hover { background: var(--bg); color: var(--accent); }

.novedades { font-size: 13px; color: var(--muted); }
.novedades summary { cursor:pointer; font-weight:600; color: var(--navy); text-transform: uppercase; font-size: 11px; letter-spacing: .5px; }
.novedades ul { max-height: 300px; overflow:auto; padding-left: 16px; margin-top: 10px; }

main { flex:1; padding: 32px 40px; }

section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  text-decoration:none;
  color:var(--text);
  display:flex;
  flex-direction:column;
  box-shadow: 0 1px 3px rgba(10,26,63,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10,26,63,0.12);
}
.card img { width:100%; height:170px; object-fit:contain; background:#fff; padding: 10px; }
.card-body { padding: 14px; border-top: 1px solid var(--border); }
.card-body h3 { font-size: 14px; margin: 0 0 10px; line-height:1.35; font-weight: 600; }
.precio { font-size: 19px; font-weight:800; color: var(--accent); margin:0 0 8px; }
.cuotas { font-size: 12px; color: #1c8a3e; font-weight: 600; margin: 0 0 8px; }

.badge-envio, .badge-baja {
  display:inline-block;
  font-size: 11px;
  font-weight: 600;
  padding:3px 8px;
  border-radius: 6px;
  margin-right: 4px;
}
.badge-envio { background:#e7f3ea; color:#1c8a3e; }
.badge-baja { background:#fbe9e9; color:#c62828; }

.nota { font-size: 12px; color: var(--muted); margin-top:8px; }
.card-baja { opacity:0.5; }

@media (max-width: 780px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border); }
}