:root {
  --ink: #24142f;
  --muted: #655b70;
  --paper: #fffdf8;
  --lime: #9cff19;
  --pink: #ff63a9;
  --line: #2c1938;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #f7f3ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.local-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px max(18px, calc((100vw - 1120px) / 2));
  color: #fff;
  background: #17121d;
  border-bottom: 3px solid var(--lime);
}

.local-brand { font-weight: 950; text-decoration: none; }

.local-nav { display: flex; flex-wrap: wrap; gap: 8px; }

.local-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

main { width: min(1120px, calc(100vw - 28px)); margin: 0 auto; padding: 24px 0 64px; }

.local-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(28px, 7vw, 70px) min(46vw, 520px) clamp(28px, 7vw, 70px) clamp(24px, 6vw, 64px);
  border: 4px solid var(--line);
  border-radius: 8px;
  background: #dffff1 url('/assets/stickers/locales/es/WEBP/dm_es_buenos-dias_1.webp') right center / min(48vw, 510px) auto no-repeat;
  box-shadow: 0 12px 0 rgba(36, 20, 47, 0.14);
}

.local-hero-copy { max-width: 610px; }

.local-eyebrow {
  margin: 0 0 8px;
  color: #6b2052;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.08; }

h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.8rem); }

.local-summary { max-width: 640px; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 720; }

.local-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.local-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--lime);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--line);
}

.local-button.secondary { background: #fff; }

.local-new-football {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(190px, 0.7fr) minmax(190px, 0.7fr);
  align-items: center;
  gap: 16px;
  margin: 34px 0 8px;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background: #17121d;
  border: 4px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 0 rgba(36, 20, 47, 0.14);
}

.local-new-copy { position: relative; z-index: 2; }
.local-new-copy h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); }
.local-new-copy > p:not(.local-eyebrow) { color: #f3edf7; font-weight: 700; }
.local-new-football .local-eyebrow { color: var(--lime); }

.local-new-sticker {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: #dff5ff;
  border: 3px solid #fff;
  border-radius: 8px;
}

.local-new-sticker.spain { background: #fff1c8; }
.local-new-sticker img { display: block; width: 100%; height: 100%; object-fit: contain; }

.local-intro,
.local-method,
.local-faq {
  width: min(880px, 100%);
  margin: 42px auto;
}

.local-intro h2,
.local-method h2,
.local-faq h2 { margin-bottom: 10px; font-size: clamp(1.65rem, 4vw, 2.4rem); }

.local-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.local-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 7px 0 rgba(44, 25, 56, 0.15);
}

.local-card-media {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #edf9ff;
  border-bottom: 3px solid var(--line);
}

.local-card:nth-child(3n + 2) .local-card-media { background: #fff5d9; }
.local-card:nth-child(3n + 3) .local-card-media { background: #f8eaff; }

.local-card img { display: block; width: 100%; height: 100%; object-fit: contain; }

.local-card-copy { display: flex; flex: 1; flex-direction: column; padding: 15px; }

.local-market { margin: 0; color: #7b2b60; font-size: 0.78rem; font-weight: 950; text-transform: uppercase; }

.local-card h3 { margin: 5px 0 7px; font-size: 1.35rem; }

.local-card p { margin: 0 0 14px; color: var(--muted); }

.local-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }

.local-downloads a,
.local-downloads button {
  min-height: 42px;
  padding: 9px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.local-downloads a:first-child { background: var(--lime); }

.local-downloads .local-whatsapp {
  grid-column: 1 / -1;
  color: #122617;
  background: #49e66d;
  cursor: pointer;
}

.local-downloads .local-whatsapp:disabled { cursor: wait; opacity: 0.68; }

.local-whatsapp-status {
  grid-column: 1 / -1;
  min-height: 1.25em;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 750;
}

.local-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 5px solid var(--pink);
  background: #fff;
}

.local-faq details { margin: 10px 0; padding: 14px 16px; border: 2px solid #d9cee2; border-radius: 8px; background: #fff; }
.local-faq summary { cursor: pointer; font-weight: 900; }

.local-footer { padding: 24px 18px; color: #fff; background: #17121d; text-align: center; }
.local-footer a { color: #fff; }

@media (max-width: 760px) {
  .local-header { min-height: 56px; }
  .local-nav { display: none; }
  .local-hero {
    min-height: 650px;
    align-items: start;
    padding: 28px 20px 330px;
    background-position: center bottom 12px;
    background-size: min(92vw, 430px) auto;
  }
  h1 { font-size: 2.45rem; }
  .local-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .local-card-copy { padding: 11px; }
  .local-card h3 { font-size: 1.05rem; }
  .local-card p { font-size: 0.88rem; }
  .local-downloads { grid-template-columns: 1fr; }
  .local-new-football {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
  }
  .local-new-copy { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .local-grid { grid-template-columns: 1fr; }
}
