/* TiendaGlobal.eu V3 — Design System (Sin Node.js, WCAG AAA, Editorial Moderno) */
:root {
  --bg-page: #F8FAFC;
  --surface: #FFFFFF;
  --nav-primary: #131921;
  --nav-secondary: #232F3E;
  --text-main: #0F172A;
  --text-muted: #475569;
  --cta-gold: #FFD814;
  --cta-gold-hover: #F7CA00;
  --cta-border: #F2C200;
  --cta-text: #0F1111;
  --badge-deal: #CC0C39;
  --badge-success: #059669;
  --badge-warning: #D97706;
  --border: #E2E8F0;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, .font-heading { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

/* Header Storefront ES */
.header-top { background: var(--nav-primary); color: #fff; padding: 0.85rem 0; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: baseline; gap: 0.35rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-tld { color: var(--cta-gold); }
.badge-market { background: var(--nav-secondary); color: #F1F5F9; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; margin-left: 0.4rem; }
.search-form { flex: 1; max-width: 540px; display: flex; }
.search-input { width: 100%; border: none; padding: 0.6rem 0.9rem; border-radius: 0.5rem 0 0 0.5rem; font-size: 0.9rem; color: var(--text-main); }
.search-btn { background: var(--cta-gold); color: var(--cta-text); border: none; font-weight: 700; padding: 0.6rem 1.1rem; border-radius: 0 0.5rem 0.5rem 0; cursor: pointer; font-size: 0.9rem; }
.search-btn:hover { background: var(--cta-gold-hover); }
.header-sub { background: var(--nav-secondary); color: #F8FAFC; font-size: 0.82rem; padding: 0.55rem 0; }
.sub-links { display: flex; gap: 1.35rem; overflow-x: auto; white-space: nowrap; }
.sub-links a:hover { color: var(--cta-gold); }

/* Hero & Sections */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2.25rem 0; }
.pill-v3 { display: inline-block; background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; max-width: 820px; }
.hero p { color: var(--text-muted); margin-top: 0.65rem; max-width: 740px; font-size: 1rem; }

/* Grid & Cards */
.section { padding: 2.25rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.35rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.35rem; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { border-color: #CBD5E1; box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.65rem; }
.tag-brand { background: #F1F5F9; color: #1E293B; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.tag-deal { background: var(--badge-deal); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.tag-buy { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.45rem; }
.card-title:hover { text-decoration: underline; }
.card-summary { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.rating-row { font-size: 0.8rem; color: #334155; font-weight: 600; margin-bottom: 0.85rem; }
.star { color: var(--badge-warning); }
.card-footer { border-top: 1px solid #F1F5F9; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.price-big { font-size: 1.35rem; font-weight: 800; color: var(--text-main); }
.freshness { font-size: 0.72rem; color: var(--badge-success); font-weight: 600; }
.btn-gold { display: inline-block; background: linear-gradient(180deg, #FFD814 0%, #F7CA00 100%); border: 1px solid var(--cta-border); color: var(--cta-text); font-weight: 700; font-size: 0.84rem; padding: 0.6rem 1rem; border-radius: 0.75rem; text-align: center; box-shadow: 0 2px 5px rgba(213, 142, 7, 0.25); }
.btn-gold:hover { background: var(--cta-gold-hover); }
.inline-cta { font-weight: 700; text-decoration: underline; color: #0F172A; }

/* Product Decision Layout */
.product-layout { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-top: 1.25rem; }
@media (min-width: 960px) { .product-layout { grid-template-columns: 2fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.25rem; }
.geo-box { background: #F8FAFC; border-left: 4px solid #0F172A; padding: 1rem 1.15rem; border-radius: 0.5rem; margin-top: 1rem; font-size: 0.95rem; }
.pros-cons { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.1rem; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.box-pro { background: #ECFDF5; border: 1px solid #A7F3D0; color: #064E3B; padding: 1rem; border-radius: 0.75rem; font-size: 0.88rem; }
.box-con { background: #FFF1F2; border: 1px solid #FECDD3; color: #881337; padding: 1rem; border-radius: 0.75rem; font-size: 0.88rem; }
.spec-table, .arb-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin-top: 0.75rem; }
.spec-table th, .spec-table td, .arb-table th, .arb-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #F1F5F9; text-align: left; }
.spec-table th, .arb-table th { color: var(--text-muted); font-weight: 600; width: 42%; }
.evidence-item { background: #F8FAFC; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.65rem 0.9rem; margin-top: 0.55rem; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* Footer */
.footer { background: var(--nav-primary); color: #CBD5E1; font-size: 0.78rem; padding: 2.25rem 0; margin-top: auto; }
.footer p + p { margin-top: 0.55rem; }
.market-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.market-pill { background: var(--nav-secondary); color: #F8FAFC; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.73rem; }
