/* Adante | Tu marca en movimiento
   Diseño basado en el mockup de Adante: naranja, crema y oscuro; tarjetas redondeadas.
   Fuente: Poppins (autoalojada, licencia SIL OFL). Iconos: Lucide (ISC). */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  /* Colores sacados del diseño */
  --orange: #FC6503;        /* botones */
  --orange-hover: #E85A00;
  --orange-hl: #FC7301;     /* palabras destacadas sobre fondo oscuro */
  --orange-text: #F26800;   /* palabras destacadas sobre fondo claro */
  --orange-ring: #FF8A12;   /* aros de iconos en la franja oscura */
  --band-top: #FD8A1C;      /* franja naranja final */
  --band-bottom: #F96B06;

  --cream: #FDF6EB;         /* fondo de página */
  --cream-2: #F7EDDF;
  --line: #E8DDCC;
  --white: #FFFFFF;

  --ink: #17171C;           /* títulos */
  --text: #3A3943;          /* texto */
  --muted: #6B6874;
  --dark: #1E1E25;          /* franja oscura y pie */
  --error: #C0261B;
  --ok: #1E7A3E;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --gutter: clamp(20px, 3.4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--orange-text); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Iconos ---------- */

.ic {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--fill { fill: currentColor; }
.ic--bold { stroke-width: 2.75; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font: 600 1.0625rem/1.1 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(252, 101, 3, 0.65);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.btn:hover { background: var(--orange-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.btn--sm { min-height: 46px; padding: 11px 22px; font-size: 0.95rem; white-space: nowrap; }

.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--ghost .ic { width: 16px; height: 16px; stroke-width: 0; }

.btn--white {
  background: var(--white);
  color: var(--orange-text);
  box-shadow: 0 10px 24px -12px rgba(120, 40, 0, 0.5);
}
.btn--white:hover { background: #FFF2E6; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 235, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: #021F3B;           /* azul marino del logotipo */
  text-decoration: none;
  flex-shrink: 0;
}
.logo__svg { display: block; height: 58px; width: auto; }
.logo--light { color: var(--white); }

.site-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}
.site-nav {
  display: flex;
  gap: 24px;
  margin: 0 auto;
}
.site-nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 0;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.site-nav a:hover::after { transform: scaleX(0.5); }
.site-nav a.is-active { font-weight: 600; }
.site-nav a.is-active::after { transform: scaleX(1); }

.lang-switch { display: flex; gap: 2px; }
.lang-switch a, .site-footer__langs a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}
.lang-switch a:hover { color: var(--ink); background: var(--cream-2); }
.lang-switch a[aria-current="page"] { background: var(--ink); color: var(--cream); }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.menu-btn .ic--close { display: none; }
.menu-btn[aria-expanded="true"] .ic--open { display: none; }
.menu-btn[aria-expanded="true"] .ic--close { display: block; }

/* ---------- Hero ---------- */

.hero-wrap { padding: 0 12px; }

.hero {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: clamp(500px, 42vw, 700px);
  border-radius: var(--radius-xl);
  background: #2A1C12;
  color: var(--white);
  isolation: isolate;
}
/* Foto principal: alineada a la derecha para que el protagonista no quede bajo el texto;
   a la izquierda, la misma foto desenfocada y oscurecida rellena el fondo. */
.hero__bg {
  position: absolute;
  inset: -60px;
  z-index: -3;
  background-size: cover;
  background-position: left center;
  filter: blur(26px) brightness(0.5) saturate(1.15);
}
.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -2;
  height: 100%;
  width: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 13, 8, 0.8) 0%, rgba(20, 13, 8, 0.55) 34%, rgba(20, 13, 8, 0.12) 55%, rgba(20, 13, 8, 0) 66%),
    linear-gradient(0deg, rgba(20, 13, 8, 0.55) 0%, rgba(20, 13, 8, 0) 30%);
}
.hero__in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(24px, 2.6vw, 36px);
}
.hero__text { max-width: 600px; }
.hero__title {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(2.75rem, 5.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 0.32em;
}
.hero__title span { display: block; }
.hero__title .hl { color: var(--orange-hl); }
.hero__sub {
  font-size: clamp(1.0625rem, 1.55vw, 1.375rem);
  line-height: 1.45;
  max-width: 24em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero__feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(20px, 2vw, 30px);
  max-width: 680px;
}
.hero__feats li { display: flex; align-items: center; gap: 12px; }
.hero__feats .ic { width: 34px; height: 34px; stroke-width: 1.6; color: #F8EAD8; }
.hero__feats span {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}
.hero__feats strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

/* ---------- Secciones ---------- */

.section { padding: clamp(36px, 4vw, 52px) 0; }

.title {
  font-weight: 800;
  font-size: clamp(1.9rem, 2.9vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.2em;
}
.title .hl { color: var(--orange-text); }
.title--light { color: var(--white); }
.title--light .hl { color: var(--orange-hl); }

.subtitle {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
  max-width: 32em;
  margin: 0 0 1.4em;
}

/* Cómo funciona */
.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(24px, 2.6vw, 40px);
  align-items: center;
}
.steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.step { position: relative; }
.step__n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.975rem;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 54px;
  right: -4px;
  height: 1.5px;
  background: #D9CFC0;
}
.step__ic { width: 34px; height: 34px; stroke-width: 1.7; color: var(--ink); margin-bottom: 12px; }
.step h3 { font-size: 0.875rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.step p { font-size: 0.8rem; line-height: 1.5; margin: 0; }

.vcard {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #2A1C12;
  box-shadow: 0 20px 40px -22px rgba(40, 20, 5, 0.55);
}
.vcard img, .vcard video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 10, 6, 0.7) 0%, rgba(15, 10, 6, 0) 45%);
  pointer-events: none;
}
.vcard.is-playing::after, .vcard.is-playing .vcard__cap, .vcard.is-playing .vcard__play { display: none; }
.vcard__play {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}
.vcard__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.vcard__play .ic { width: 26px; height: 26px; stroke-width: 0; margin-left: 4px; }
.vcard__cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Franjas redondeadas a todo el ancho */
.band-wrap { padding: 0 12px; }

/* Ventajas: franja oscura */
.band-dark {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--dark);
  color: var(--white);
  padding: clamp(30px, 3vw, 40px) 0;
  isolation: isolate;
}
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 6% 120%, rgba(252, 101, 3, 0.32) 0, rgba(252, 101, 3, 0) 34%),
    radial-gradient(circle at 26% -40%, rgba(252, 101, 3, 0.14) 0, rgba(252, 101, 3, 0) 40%);
}
.band-dark__in {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.band-dark .title { margin: 0; font-size: clamp(1.9rem, 2.8vw, 2.35rem); }
.band-dark .title .hl { display: block; }
.advs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.adv {
  padding: 4px clamp(12px, 1.6vw, 22px);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.adv:first-child { border-left: 0; padding-left: 0; }
.adv__ring {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  border: 2px solid var(--orange-ring);
  border-radius: 50%;
  color: var(--orange-ring);
}
.adv h3 { color: var(--white); font-size: 0.975rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.adv p { font-size: 0.82rem; line-height: 1.5; color: rgba(255, 255, 255, 0.75); margin: 0; }

/* Ejemplos */
.examples__grid {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
  align-items: center;
}
.examples .subtitle { margin-bottom: 1.2em; }
.places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.place {
  position: relative;
  aspect-ratio: 1 / 0.96;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #2A1C12;
  box-shadow: 0 14px 30px -20px rgba(40, 20, 5, 0.6);
}
.place img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  background: rgba(22, 22, 28, 0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}
.chip .ic { width: 15px; height: 15px; }

/* Cobertura */
.coverage { padding-top: 8px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 0;
}
.stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: 0 12px 26px -20px rgba(60, 35, 10, 0.45);
}
.stat dt {
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange-text);
  margin-bottom: 10px;
}
.stat dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; }

.modes__intro { margin: 36px 0 14px; font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mode {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 12px 26px -20px rgba(60, 35, 10, 0.45);
}
.mode h3 { font-size: 1.25rem; font-weight: 700; }
.mode p { font-size: 0.9375rem; line-height: 1.55; margin: 0; max-width: 34em; }
.loopbar { display: flex; gap: 5px; height: 12px; margin: 14px 0 16px; }
.loopbar span { flex: 1; border-radius: 999px; background: #EFE4D4; }
.loopbar .is-yours { background: var(--orange); }

/* Franja naranja */
.band-orange {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--band-top) 0%, #FC7A10 55%, var(--band-bottom) 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(36px, 4vw, 48px) 20px clamp(56px, 6vw, 76px);
  isolation: isolate;
}
.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: clamp(130px, 15vw, 200px);
}
.band-orange__title {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.15em;
}
.band-orange__sub { font-size: clamp(1rem, 1.4vw, 1.1875rem); margin: 0 auto 1.5em; max-width: 34em; }

/* Contacto */
.contact { padding-top: clamp(44px, 5vw, 64px); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact__direct { margin-top: 24px; }
.contact__direct a { font-weight: 600; overflow-wrap: anywhere; }

.form {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.4vw, 38px);
  box-shadow: 0 24px 50px -32px rgba(60, 35, 10, 0.5);
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field--full { grid-column: 1 / -1; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #FFFDF9;
  border: 1.5px solid #DCCFBC;
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317171C' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BFAE96; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(252, 101, 3, 0.18);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-size: 0.85rem; font-weight: 600; margin: 6px 0 0; }

.field--check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--orange); }
.field--check label { font-weight: 400; font-size: 0.9375rem; margin: 0; }
.field--check .field__err { grid-column: 2; margin-top: 0; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 26px;
}
.form__status { margin: 0; font-weight: 600; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--error); }
.form__privacy { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); margin: 22px 0 0; }

/* ---------- Pie ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 44px 0 34px;
  margin-top: clamp(48px, 6vw, 80px);
}
.site-footer__in {
  display: grid;
  grid-template-columns: minmax(220px, max-content) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}
.site-footer .logo__svg { height: 50px; }
.site-footer__tagline { margin: 14px 0 0; font-size: 0.9375rem; }
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 24px;
}
.site-footer__links a { color: #EDEBF2; }
.site-footer__langs { display: flex; gap: 2px; }
.site-footer__langs a { color: rgba(255, 255, 255, 0.7); }
.site-footer__langs a[aria-current="page"] { background: var(--orange); color: var(--white); }
.site-footer__copy { grid-column: 1 / -1; margin: 8px 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Página legal y página de resultado ---------- */

.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.legal__wrap { max-width: 820px; }
.legal__title {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.6em;
}
.legal h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 1.8em 0 0.5em; }
.legal p, .legal dd { max-width: 42em; }
.legal-id { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 6px 16px; margin: 0 0 1em; }
.legal-id dt { font-weight: 600; color: var(--ink); }
.legal-id dd { margin: 0; overflow-wrap: anywhere; }
.legal-list dt { font-weight: 600; color: var(--ink); margin-top: 16px; }
.legal-list dd { margin: 2px 0 0; }
.legal-updated { margin-top: 2.4em; color: var(--muted); font-size: 0.9375rem; }
.link-plain {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--orange);
}

.notice { min-height: 70vh; display: flex; align-items: center; padding: 64px 0; }
.notice__title { font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.75rem); letter-spacing: -0.03em; margin-bottom: 0.4em; }
.notice p { font-size: 1.125rem; max-width: 32em; }

/* ---------- Adaptación a pantallas ---------- */

@media (max-width: 1280px) {
  .menu-btn { display: grid; }
  .js .site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 8px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(40, 20, 5, 0.4);
  }
  .js .site-menu.is-open { display: flex; }
  .site-menu { flex-wrap: wrap; }
  .js .site-nav { flex-direction: column; gap: 0; margin: 0; }
  .js .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .js .site-nav a::after { left: 0; right: auto; top: 50%; bottom: auto; width: 4px; height: 20px; margin-top: -10px; margin-left: -14px; transform: scaleY(0); }
  .js .site-nav a.is-active::after { transform: scaleY(1); }
  .js .site-header__cta { width: 100%; }
  .site-header__in { position: relative; }
}

@media (max-width: 1100px) and (min-width: 1025px) {
  .hero__feats { flex-direction: column; gap: 12px; }
}

@media (max-width: 980px) {
  .how__grid { grid-template-columns: minmax(0, 1fr); }
  .vcard { max-width: 560px; }
  .band-dark__in { grid-template-columns: minmax(0, 1fr); }
  .band-dark .title .hl { display: inline; }
  .advs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .adv:nth-child(3) { border-left: 0; padding-left: 0; }
  .examples__grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero__in { order: 1; padding-bottom: 8px; gap: 28px; }
  .hero { background: linear-gradient(180deg, #24180F 0%, #2E1E12 100%); }
  .hero__bg { display: none; }
  .hero__photo {
    order: 2;
    position: relative;
    z-index: 0;
    width: 100%;
    height: clamp(320px, 52vw, 500px);
    object-fit: cover;
    margin-top: -24px;
    object-position: 60% 22%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  }
  .hero__shade { display: none; }
}

@media (max-width: 760px) {
  .hero__feats { flex-direction: column; gap: 14px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .step:nth-child(2)::after { display: none; }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .site-footer__in { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .site-footer__links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .site-header__in { gap: 12px; }
  .logo__svg { height: 46px; }
  .hero-wrap, .band-wrap { padding: 0 8px; }
  .hero__actions .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .step::after { display: none; }
  .advs { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .adv { border-left: 0; padding-left: 0; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .places { gap: 10px; }
  .chip { left: 8px; bottom: 8px; max-width: calc(100% - 16px); gap: 4px; padding: 5px 9px 5px 7px; font-size: 0.6875rem; }
  .chip .ic { width: 13px; height: 13px; }
  .legal-id { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal-id dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-nav a::after, .vcard__play { transition: none; }
}

/* ---------- Eventos: guía de estadios ---------- */

.events__head { padding-top: clamp(28px, 4vw, 48px); }
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0 0 18px; padding: 0;
  font-size: 0.875rem; color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.events__title {
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18em;
  margin-bottom: 0.4em;
}
.events__lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.55; max-width: 40em; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats--3 .stat dd { overflow-wrap: anywhere; }

.events__when p { max-width: 44em; font-size: 1.0625rem; }
.events__rules {
  margin-top: 1.4em;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  background: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9375rem !important;
  color: var(--muted);
}

.table-wrap {
  margin-top: 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 26px -20px rgba(60, 35, 10, 0.45);
  overflow-x: auto;
}
.stadiums { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.stadiums th, .stadiums td { padding: 13px 18px; text-align: left; vertical-align: top; }
.stadiums thead th {
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.stadiums tbody tr + tr td { border-top: 1px solid #F1E8DA; }
.stadiums tbody tr:hover td { background: #FFF9F1; }
.stadiums .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stadium-name { font-weight: 600; color: var(--ink); }
.stadiums a { font-weight: 500; }
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #FFE9D6;
  color: #A3410A;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.country-grid {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px;
}
.country-card {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 22px -18px rgba(60, 35, 10, 0.5);
  text-decoration: none; color: var(--text);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.country-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.country-card__name { font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.country-card__meta { font-size: 0.875rem; color: var(--orange-text); font-weight: 600; }
.country-card__big { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }

.events__cta { margin: clamp(20px, 3vw, 36px) 0; }
.events__sources, .events__foot { padding-bottom: clamp(36px, 5vw, 56px); color: var(--muted); font-size: 0.9375rem; }
.events__h3 { font-size: 1.125rem; font-weight: 700; margin: 1.6em 0 0.5em; }
.events__sources-list { margin: 0 0 1em; padding-left: 1.2em; }
.events__sources-list a { overflow-wrap: anywhere; }
.events__others {
  list-style: none; margin: 0 0 1.4em; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.events__others a { color: var(--text); }
.events__others a:hover { color: var(--orange-text); }

/* Eventos: portada con las dos guías */
.guide-grid {
  list-style: none; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.guide-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 26px -20px rgba(60, 35, 10, 0.45);
  border: 1px solid transparent;
  text-decoration: none; color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guide-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.guide-card__n {
  font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--orange-text);
}
.guide-card__title { font-size: clamp(1.35rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--ink); margin: 6px 0 0; }
.guide-card__text { color: var(--muted); margin: 0; max-width: 32em; }
.guide-card__go {
  margin-top: auto; padding-top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--orange-text);
}
.guide-card__go .ic { width: 18px; height: 18px; }

.country-card--hub, .country-card--hub:hover { transform: none; border-color: transparent; }
.country-card__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.country-card__links a {
  font-size: 0.875rem; font-weight: 600; color: var(--orange-text); text-decoration: none;
}
.country-card__links a:hover { text-decoration: underline; }
.country-card__links a span { color: var(--muted); font-weight: 500; }

.events__more {
  list-style: none; margin: 0 0 0.6em; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--orange-text); text-decoration: none;
}
.link-more:hover { text-decoration: underline; }
.link-more .ic { width: 18px; height: 18px; }

/* Eventos: guía de festivales */
.events__note { color: var(--muted); font-size: 0.9375rem; margin-top: 12px; }
.att-year { color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.badge--muted { background: #EFE9E1; color: #5F574C; }
.festivals td:last-child { color: var(--muted); }

.month-grid {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px;
  align-items: start;
}
.month {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 22px -18px rgba(60, 35, 10, 0.5);
  border: 1px solid transparent;
}
.month[open] { border-color: #F3D9BF; }
.month summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; cursor: pointer; list-style: none;
}
.month summary::-webkit-details-marker { display: none; }
.month summary::after {
  content: "+"; font-weight: 700; color: var(--orange-text); font-size: 1.2rem; line-height: 1;
}
.month[open] summary::after { content: "−"; }
.month__name { font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.month__n { margin-left: auto; font-size: 0.875rem; font-weight: 600; color: var(--orange-text); white-space: nowrap; }
.month ul { list-style: none; margin: 0; padding: 0 18px 14px; font-size: 0.875rem; columns: 4 220px; column-gap: 28px; }
.month li { padding: 5px 0; border-top: 1px solid #F1E8DA; break-inside: avoid; }
/* An open month takes the whole row so its list can spread into columns */
.month-grid > li:has(> .month[open]) { grid-column: 1 / -1; }
.month li a { color: var(--ink); font-weight: 500; text-decoration: none; }
.month li a:hover { color: var(--orange-text); text-decoration: underline; }
.cal-country { color: var(--muted); }
.cal-country::before { content: "· "; }

@media (max-width: 760px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .stats--3 { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .stats--3 .stat { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; }
  .stats--3 .stat dt { margin: 0; font-size: 1.6rem; }
  .table-wrap { background: transparent; box-shadow: none; overflow: visible; }
  .stadiums thead { display: none; }
  .stadiums, .stadiums tbody, .stadiums tr, .stadiums td { display: block; width: 100%; }
  .stadiums tr {
    background: var(--white); border-radius: var(--radius-md);
    box-shadow: 0 10px 22px -18px rgba(60, 35, 10, 0.5);
    padding: 12px 16px; margin-bottom: 10px;
  }
  .stadiums tbody tr + tr td { border-top: 0; }
  .stadiums td { padding: 3px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .stadiums td::before { content: attr(data-label); color: var(--muted); font-size: 0.8125rem; text-align: left; flex-shrink: 0; }
  .stadiums td:first-child { text-align: left; padding-bottom: 6px; font-size: 1.0625rem; }
  .stadiums td:first-child::before { display: none; }
  .stadiums .num { text-align: right; }
}

/* Menú completo pero más compacto en pantallas medianas */
@media (min-width: 1281px) and (max-width: 1420px) {
  .site-header__in { gap: 18px; }
  .site-menu { gap: 16px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 0.875rem; }
}

/* Fiestas mayores (town festivals in Catalonia) */
.fm-dates { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.fm-date { font-weight: 600; color: var(--ink); }
.fm-date--minor { font-weight: 400; color: var(--muted); white-space: normal; }
.fm-table tr[hidden] { display: none !important; }
.fm-short { display: none; text-decoration: none; }
.fm-tag { color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.fm-none { color: var(--muted); }
.fm .month summary { gap: 8px; padding-left: 16px; padding-right: 16px; }
.fm-day { display: inline-block; min-width: 1.5em; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fm-table tr { scroll-margin-top: 96px; }
.fm-table tr:target td { background: #FFF1E2; }
.fm-months td:first-child { white-space: nowrap; }
/* communities flow side by side: each block spans as many columns as it has provinces (max 4) */
.fm-comms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 12px; margin-top: 8px; }
.fm-comm__title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.fm-comm .country-grid { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fm-comm--1 { grid-column: span 1; } .fm-comm--1 .country-grid { grid-template-columns: minmax(0, 1fr); }
.fm-comm--2 { grid-column: span 2; } .fm-comm--2 .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-comm--3 { grid-column: span 3; } .fm-comm--3 .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-comm--4 { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .fm-comms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-comm--3, .fm-comm--4 { grid-column: 1 / -1; }
  .fm-comm--3 .country-grid, .fm-comm .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-comm--1 .country-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  /* two narrow cards per row on phones: 52 provinces in one column is too long a scroll */
  .fm-comms { gap: 20px 10px; }
  .fm-comm .country-grid { gap: 10px; }
  .fm .country-card { padding: 14px 14px; }
  .fm .country-card__name { font-size: 1rem; }
  .fm .country-card__big { font-size: 0.8125rem; }
}
.fm-bars { list-style: none; margin: 18px 0 0; padding: 18px 20px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: 0 12px 26px -20px rgba(60, 35, 10, 0.45);
  display: grid; gap: 8px; max-width: 760px; }
.fm-bars li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 4.5em; align-items: center; gap: 12px; font-size: 0.9375rem; }
.fm-bars__m { color: var(--ink); font-weight: 600; }
.fm-bars__bar { display: block; height: 12px; border-radius: 999px; background: #F4ECE1; overflow: hidden; }
.fm-bars__bar span { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.fm-bars__n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.fm-filter { max-width: 460px; margin: 18px 0 0; }
.fm-filter label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.fm-filter input {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #FFFDF9; border: 1.5px solid #DCCFBC; border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fm-filter input:hover { border-color: #BFAE96; }
.fm-filter input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(252, 101, 3, 0.18); }
.fm-filter__count { margin: 6px 0 0; color: var(--muted); font-size: 0.875rem; min-height: 1.3em; }
@media (max-width: 760px) {
  /* dates go under their label so long tags never push past the card */
  .fm-table td:last-child { flex-direction: column; gap: 4px; text-align: left; }
  .fm-table .fm-dates { justify-content: flex-start; }
  .fm-long { display: none; }
  .fm-short { display: inline; }
  /* the month count table stays a table and scrolls sideways if needed */
  .table-wrap:has(.fm-months) {
    background: var(--white); box-shadow: 0 12px 26px -20px rgba(60, 35, 10, 0.45); overflow-x: auto;
  }
  .stadiums.fm-months { display: table; font-size: 0.875rem; }
  .stadiums.fm-months thead { display: table-header-group; }
  .stadiums.fm-months tbody { display: table-row-group; }
  .stadiums.fm-months tr { display: table-row; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
  .stadiums.fm-months th, .stadiums.fm-months td { display: table-cell; width: auto; padding: 9px 10px; }
  .stadiums.fm-months thead th { font-size: 0.6875rem; letter-spacing: 0.02em; }
  .stadiums.fm-months td::before { display: none; }
  .stadiums.fm-months tbody tr + tr td { border-top: 1px solid #F1E8DA; }
  .stadiums.fm-months td:first-child { font-size: 0.875rem; padding-bottom: 9px; }
}

/* Agenda (what's on each month) */
.ag-nav { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.ag-nav a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px;
  border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 0.9375rem; box-shadow: 0 8px 18px -14px rgba(60, 35, 10, 0.5);
}
.ag-nav a:hover { color: var(--orange-text); }
.events__foot .ag-nav { margin: 0 0 8px; }
.ag-day { white-space: nowrap; font-weight: 600; color: var(--ink); }
.ag-events td:last-child { white-space: nowrap; }
.ag-events .link-more { font-size: 0.875rem; }
.ag-ics { margin-top: 8px; }
.btn--outline { background: transparent; color: var(--orange-text); box-shadow: inset 0 0 0 2px var(--orange); }
.btn--outline:hover { background: #FFF2E6; }
.month__more { margin: 0; padding: 4px 18px 16px; font-size: 0.875rem; }

/* Christmas key dates */
.xm-dates { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.xm-dates li {
  display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 16px; padding: 14px 18px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: 0 10px 22px -18px rgba(60, 35, 10, 0.5);
}
.xm-day { font-weight: 700; color: var(--orange-text); }
@media (max-width: 560px) { .xm-dates li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Street advertising rules, city by city */
.rg-warn {
  margin-top: 18px; max-width: 46em; padding: 14px 18px;
  background: #FFF3E3; border: 1px solid #F6D3A8; border-radius: var(--radius-md);
  font-size: 0.9375rem; color: var(--text);
}
.rg-warn strong { color: var(--ink); }
.rg-points { margin: 14px 0 0; padding-left: 1.2em; max-width: 50em; display: grid; gap: 10px; font-size: 1rem; }
.rg-points strong { color: var(--ink); }
.rg-status {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.rg-status--banned { background: #FBE0DC; color: #9C2116; }
.rg-status--permit { background: #FFE9D6; color: #A3410A; }
.rg-status--special { background: #FFF0C2; color: #6E4B00; }
.rg-status--unclear { background: #ECEAF0; color: #4A4753; }
.rg-status--notice { background: #DDF0E3; color: #1B6334; }
.rg-table td:first-child { white-space: nowrap; }
.rg-table a.stadium-name { text-decoration: none; }
.rg-table a.stadium-name:hover { color: var(--orange-text); text-decoration: underline; }
.rg-grid {
  margin-top: 18px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr));
}
.rg-card {
  padding: 20px 22px; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 12px 26px -20px rgba(60, 35, 10, 0.45); font-size: 0.9375rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.rg-card:target { outline: 2px solid var(--orange); outline-offset: 2px; }
.rg-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.rg-card h3 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.rg-card__law { margin: 4px 0 0; color: var(--muted); font-size: 0.875rem; }
.rg-card h4 {
  margin: 16px 0 6px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted);
}
.rg-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.rg-card p { margin: 0; }
.rg-card__note { margin-top: 12px !important; color: var(--muted); font-size: 0.875rem; font-style: italic; }
.rg-card__src { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid #F1E8DA; font-size: 0.8125rem; color: var(--muted); overflow-wrap: anywhere; }
.rg-card__note { font-weight: 400; }
@media (max-width: 760px) {
  .rg-card { padding: 18px 16px; }
  /* Compact summary on phones: city and status on one line; the cards below carry the detail */
  .rg-table tr { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px !important; }
  .rg-table td { width: auto !important; padding: 0 !important; }
  .rg-table td:first-child { white-space: normal; padding-bottom: 0 !important; font-size: 1rem !important; }
  .rg-table td::before { display: none !important; }
  .rg-table td:nth-child(3) { display: none !important; }
}

/* Ideas by sector */
.examples__more { margin: 18px 0 0; }
.sc-uses {
  list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.sc-uses li {
  padding: 20px 22px; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 12px 26px -20px rgba(60, 35, 10, 0.45); border-top: 4px solid var(--orange);
}
.sc-uses h3 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.sc-uses p { margin: 0; font-size: 0.9375rem; }
.sc-screens {
  list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); max-width: 900px;
}
.sc-screen {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 16 / 10; padding: 18px; border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, #2A2A33, #121217); border: 6px solid #2E2E37;
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sc-screen span { color: #FFB04A; font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.1875rem); line-height: 1.25; text-wrap: balance; }
.sc-note { max-width: 46em; margin-top: 14px; color: var(--muted); font-size: 0.875rem; }
.sc-cols { display: grid; gap: 28px 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.sc-h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem) !important; margin-bottom: 0.5em; }
.sc-cols p { max-width: 40em; }
.sc-cols .sc-h2 + p + .sc-h2 { margin-top: 1.2em; }
.sc-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* Reach calculator */
.calc { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
.calc__h { font-size: 1.375rem; font-weight: 800; color: var(--ink); margin: 0 0 16px; }
.calc__form { display: grid; gap: 16px; }
.calc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc .field input[type="number"] {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #FFFDF9; border: 1.5px solid #DCCFBC; border-radius: var(--radius-md);
}
.calc .field input[type="number"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(252, 101, 3, 0.18); }
.calc__hint { margin: 0; font-size: 0.875rem; color: var(--muted); }
.calc__assume summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.calc__assume[open] summary { margin-bottom: 12px; }
.calc__assume .field { max-width: 16em; margin-bottom: 8px; }
.calc__res {
  padding: clamp(22px, 3.4vw, 34px); border-radius: var(--radius-xl); background: var(--dark); color: #E9E7EE;
  box-shadow: 0 24px 50px -32px rgba(20, 20, 30, 0.7);
}
.calc__label { margin: 0; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #B9B6C2; }
.calc__big { margin: 4px 0 0; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; color: var(--orange-hl); letter-spacing: -0.02em; }
.calc__approx { font-size: 0.4em; font-weight: 600; color: #B9B6C2; letter-spacing: 0; }
.calc__per { margin: 6px 0 0; font-weight: 600; }
.calc__formula { margin: 10px 0 0; font-size: 0.8125rem; color: #B9B6C2; font-variant-numeric: tabular-nums; }
.calc__caveats { margin: 16px 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.875rem; color: #D5D2DC; }
.calc__btn { margin-top: 20px; }
.calc__tips { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 50em; }
.calc__lead { max-width: 46em; }
.cpm input {
  width: 100%; min-width: 0; min-height: 42px; padding: 8px 12px; font: inherit; font-size: 0.9375rem; color: var(--ink);
  background: #FFFDF9; border: 1.5px solid #DCCFBC; border-radius: 10px;
}
.cpm input[readonly] { background: transparent; border-color: transparent; font-weight: 600; padding-left: 0; }
.cpm td[data-cpm-out] { font-weight: 700; color: var(--ink); vertical-align: middle; }
.cpm td { vertical-align: middle; }
.cmp td:first-child { min-width: 9em; }
@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .calc__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cpm td { align-items: center; }
  .cpm td input { max-width: 60%; text-align: right; }
  .cpm td:first-child input { max-width: 100%; text-align: left; }
  .cmp td { display: block !important; text-align: left !important; }
  .cmp td::before { display: block; margin-bottom: 2px; }
}
.coverage__calc { margin: 14px 0 0; text-align: center; }
.calc__grid { align-items: end; }
.calc__street { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.calc__street legend { font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.calc__opt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer;
  padding: 10px 14px; border: 1.5px solid #E6DAC8; border-radius: var(--radius-md); background: #FFFDF9; font-size: 0.9375rem;
}
.calc__opt:hover { border-color: #BFAE96; }
.calc__opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }
.calc__opt:has(input:checked) { border-color: var(--orange); background: #FFF4EA; }
