:root {
    --brand: #b52ea7;
    --brand-dark: #7e1f75;
    --bg: #faf7fa;
    --text: #2b2b2b;
    --muted: #767676;
    --border: #e6e0e5;
    --ok: #1e8a4c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

a { color: var(--brand-dark); }

.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--brand); }
.search { display: flex; gap: 6px; }
.search input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; min-width: 200px; }
.search button { padding: 8px 14px; border: none; border-radius: 6px; background: var(--brand); color: #fff; cursor: pointer; }

.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; font-size: .92rem; }
.filters a { text-decoration: none; padding: 4px 10px; border-radius: 999px; background: #f1e7ef; }
.filters a:hover { background: #e3cde0; }
.filters .sep { color: var(--border); }

main.wrap { padding-top: 28px; padding-bottom: 60px; min-height: 60vh; }

h1 { font-size: 1.6rem; margin-bottom: .3rem; }
.lead { color: var(--muted); max-width: 70ch; }
.muted { color: var(--muted); }

.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }

.ahorro-badge { display: inline-block; background: #e7f7ee; color: var(--ok); border: 1px solid #bfe8cf; padding: 8px 14px; border-radius: 8px; margin: 10px 0; }

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

.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card-images { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: #fff5fb; }
.card-images img { width: 64px; height: 64px; object-fit: contain; }
.card-images .vs { font-size: .75rem; color: var(--muted); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { margin: 4px 0 0; font-size: 1.05rem; }
.card-body h3 a { text-decoration: none; color: var(--text); }
.badge { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 999px; margin-right: 4px; }
.badge-muted { background: #e7e0e5; color: var(--text); }
.price { font-weight: 700; margin: 4px 0; }
.btn { display: inline-block; margin-top: 6px; text-decoration: none; font-size: .9rem; color: var(--brand-dark); font-weight: 600; }

.compare-images { display: flex; gap: 24px; margin: 20px 0; flex-wrap: wrap; }
.compare-images figure { margin: 0; text-align: center; }
.compare-images img { width: 120px; height: 120px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.compare-images figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; max-width: 160px; }

.compare-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; }
.compare-table th, .compare-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.compare-table th { background: #f6eef4; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }

.note { font-size: .85rem; color: var(--muted); background: #fff8e6; border: 1px solid #f0e2b6; padding: 10px 12px; border-radius: 8px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 0; font-size: .8rem; color: var(--muted); }
