/* ==========================================================================
   Puro Cacho — sitio de marketing (es-CL)
   Sistema de diseño: teal profundo, pergamino, latón y cuero cosido.
   Tipografía: Fraunces (display) · Nunito Sans (texto) · Barlow SemiCond (etiquetas)
   ========================================================================== */

/* Fuentes autoalojadas (rendimiento + privacidad) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-900-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-latin-800-normal.woff2") format("woff2");
}

:root {
  /* Paleta Cacho */
  --teal-deepest: #0b1f1d;
  --teal-deep: #0e302d;
  --teal: #123d3a;
  --teal-soft: #1a4f4a;
  --parchment: #f2e1be;
  --parchment-light: #f7f1e4;
  --parchment-edge: #d9c49a;
  --ink: #202623;
  --ink-dim: #5c5a50;
  --brass: #c48a3a;
  --brass-light: #e2b765;
  --brass-dark: #9a6822;
  --copper: #b45f3c;
  --wood: #8a5732;
  --leather: #6a3e28;

  /* Roles */
  --text-on-dark: var(--parchment);
  --text-on-dark-dim: #cfc6ad;
  --border-on-dark: rgb(247 241 228 / 16%);
  --veil-strong: rgb(11 31 29 / 94%);
  --veil-mid: rgb(11 31 29 / 62%);
  --veil-soft: rgb(11 31 29 / 24%);

  /* Tipografía */
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-label: "Barlow Semi Condensed", "Arial Narrow", sans-serif;

  /* Ritmo */
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad: clamp(64px, 9vw, 112px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 2px 6px rgb(11 31 29 / 25%);
  --shadow-md: 0 8px 22px rgb(11 31 29 / 30%);
  --shadow-lg: 0 18px 44px rgb(11 31 29 / 38%);
  --text-shadow: 0 2px 16px rgb(11 31 29 / 82%);

  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* --------------------------------------------------------------- base --- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment-light);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-weight: 900; font-size: clamp(2.1rem, 5.4vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-weight: 900; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1em; }

a { color: var(--brass-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }

:focus-visible {
  outline: 3px solid var(--brass-light);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brass-light); color: var(--ink); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--parchment-light);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* Etiquetas / eyebrow */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 12px;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--brass-light); }

/* Textura de papel sutil para bandas pergamino */
.paper {
  position: relative;
  background:
    radial-gradient(ellipse at 18% 8%, rgb(196 138 58 / 7%), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgb(180 95 60 / 6%), transparent 50%),
    var(--parchment-light);
}
.paper--deep { background:
    radial-gradient(ellipse at 80% 6%, rgb(196 138 58 / 9%), transparent 50%),
    var(--parchment);
}

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 31 29 / 90%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-on-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-block: 10px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }

.site-nav__link {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-dark-dim);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease);
}
.site-nav__link:hover { color: var(--parchment-light); }
.site-nav__link[aria-current="page"] {
  color: var(--parchment-light);
  border-bottom-color: var(--brass-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border-on-dark);
  border-radius: 10px;
  color: var(--parchment);
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 10px 14px;
  cursor: pointer;
}

/* ------------------------------------------------------------ botones --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 14px;
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), filter 140ms var(--ease);
}
.btn:active { transform: translateY(2px); }

.btn--primary {
  color: #2b1d0c;
  background: linear-gradient(180deg, var(--brass-light) 0%, var(--brass) 78%, var(--brass-dark) 100%);
  border: 2px solid var(--brass-dark);
  box-shadow: 0 4px 0 var(--brass-dark), var(--shadow-md);
}
.btn--primary:hover { filter: brightness(1.06); box-shadow: 0 5px 0 var(--brass-dark), var(--shadow-lg); transform: translateY(-1px); }
.btn--primary:active { box-shadow: 0 1px 0 var(--brass-dark), var(--shadow-sm); }

.btn--outline {
  color: var(--parchment-light);
  background: rgb(11 31 29 / 38%);
  border: 2px solid rgb(247 241 228 / 45%);
}
.btn--outline:hover { background: rgb(18 61 58 / 75%); border-color: rgb(247 241 228 / 70%); color: var(--parchment-light); }

.btn--teal {
  color: var(--parchment-light);
  background: linear-gradient(180deg, var(--teal-soft), var(--teal-deep));
  border: 2px solid var(--teal-deepest);
  box-shadow: 0 4px 0 var(--teal-deepest), var(--shadow-sm);
}
.btn--teal:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  /* Exactamente una pantalla: al hacer scroll, el corte al pergamino cae justo
     (76px de banda superior + 1px de borde) */
  min-height: calc(100svh - 77px);
  color: var(--text-on-dark);
  isolation: isolate;
  overflow: clip;
}

/* .hero--compact hereda la misma altura: héroe uniforme en todas las páginas */

.hero__art,
.hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__art img { object-position: center 38%; }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(11 31 29 / 88%) 0%, rgb(11 31 29 / 72%) 42%, rgb(11 31 29 / 48%) 72%, rgb(11 31 29 / 42%) 100%),
    linear-gradient(to top, rgb(11 31 29 / 92%) 0%, rgb(11 31 29 / 45%) 45%, rgb(11 31 29 / 30%) 100%);
}

@media (max-width: 640px) {
  .hero__veil {
    background:
      linear-gradient(to top, rgb(11 31 29 / 96%) 0%, rgb(11 31 29 / 82%) 45%, rgb(11 31 29 / 58%) 100%);
  }
}

.hero__inner {
  width: 100%;
  padding-block: clamp(48px, 7vw, 88px);
}

.hero__copy { max-width: 640px; }

/* Fila logo + titular, lado a lado */
.hero__row {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
}

.hero__logo {
  width: clamp(240px, 27vw, 370px);
  height: auto;
  flex-shrink: 0;
  margin: 0;
  filter: drop-shadow(0 12px 30px rgb(11 31 29 / 60%));
}

.hero__row .hero__copy h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

.hero__row .hero__lead {
  margin-bottom: 22px;
}

@media (max-width: 899px) {
  .hero__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .hero__logo { width: min(300px, 66vw); }
  .hero__row .hero__actions, .hero__row .store-row { justify-content: center; }
}

.hero__copy h1 {
  color: var(--parchment-light);
  text-shadow: var(--text-shadow);
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-on-dark);
  text-shadow: 0 1px 10px rgb(11 31 29 / 85%);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--text-on-dark-dim);
  background: rgb(11 31 29 / 55%);
  border: 1px solid var(--border-on-dark);
  border-radius: 999px;
  padding: 7px 16px;
}
.store-chip b {
  font-weight: 800;
  color: var(--parchment);
  text-transform: uppercase;
}

/* Guirnalda divisoria */
.divider-bunting {
  display: block;
  width: min(920px, 92%);
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* ----------------------------------------------------------- secciones --- */

.section { padding-block: var(--section-pad); }

.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }

.section--teal {
  background:
    radial-gradient(ellipse at 15% 0%, rgb(226 183 101 / 8%), transparent 55%),
    linear-gradient(180deg, var(--teal-deep), var(--teal-deepest));
  color: var(--text-on-dark);
}
.section--teal h2 { color: var(--parchment-light); }
.section--teal p { color: var(--text-on-dark-dim); }

/* Pasos (cómo se juega) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 32px);
  counter-reset: paso;
}

.step-card {
  background: var(--parchment-light);
  border: 1px solid var(--parchment-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: clip;
  position: relative;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.step-card__art { position: relative; aspect-ratio: 1 / 1; }
.step-card__art img { width: 100%; height: 100%; object-fit: cover; }

.step-card__num {
  counter-increment: paso;
  position: absolute;
  top: 14px;
  left: 14px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--brass-light), var(--brass) 62%, var(--brass-dark));
  border: 2.5px solid #7a5218;
  box-shadow: var(--shadow-md), inset 0 2px 4px rgb(255 244 214 / 60%);
  color: #2b1d0c;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
}
.step-card__num::before { content: counter(paso); }

.step-card__body { padding: 22px 24px 26px; }
.step-card__body h3 { margin-bottom: 8px; }
.step-card__body p { margin: 0; color: var(--ink-dim); }

/* Tarjetas descubre */
.discover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 32px);
}

.discover-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--parchment-light);
  border: 1px solid var(--parchment-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.discover-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }

.discover-card__icon { height: 92px; width: auto; align-self: flex-start; }

.discover-card__kicker {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
}

.discover-card h3 { margin: 0; }
.discover-card p { margin: 0; color: var(--ink-dim); flex-grow: 1; }

.discover-card__cta {
  font-family: var(--font-label);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--brass-dark);
}
.discover-card:hover .discover-card__cta { color: var(--copper); }

/* Banda de avatares */
.avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(4px, 1vw, 10px);
  margin-top: 34px;
}
.avatars img {
  width: clamp(80px, 8.4vw, 118px);
  height: clamp(80px, 8.4vw, 118px);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--parchment);
  box-shadow: var(--shadow-md);
}
.avatars li:nth-child(even) img { transform: translateY(12px) rotate(2deg); }
.avatars li:nth-child(odd) img { transform: rotate(-2deg); }
.avatars { list-style: none; padding: 0; }

/* Pintas */
.pintas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
  list-style: none;
  padding: 0;
  margin: 24px auto 8px;
  max-width: 440px;
  text-align: center;
}
.pinta img { width: min(72px, 100%); margin-inline: auto; filter: drop-shadow(0 5px 8px rgb(11 31 29 / 28%)); }
.pinta b {
  display: block;
  margin-top: 10px;
  font-family: var(--font-label);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
}
.pinta span { font-size: 0.85rem; color: var(--ink-dim); }

/* ----------------------------------------------------- páginas de texto --- */

.article {
  max-width: 780px;
  margin-inline: auto;
}

.article > p, .article > ul { font-size: 1.09rem; }

.rule-card {
  position: relative;
  background: var(--parchment-light);
  border: 1px solid var(--parchment-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3.5vw, 34px);
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 22px;
  scroll-margin-top: 110px;
}
.rule-card h2, .rule-card h3 { grid-column: 1; margin-bottom: 6px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; }
.rule-card p { grid-column: 1; margin-bottom: 0.6em; color: #3c3b31; }
.rule-card p:last-child { margin-bottom: 0; }
.rule-card__list { grid-column: 1; margin: 0 0 0.8em; padding-left: 1.35em; color: #3c3b31; }
.rule-card__list li + li { margin-top: 0.25em; }

.rule-card__icon {
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: center;
  width: clamp(84px, 10vw, 128px);
  filter: drop-shadow(0 6px 10px rgb(11 31 29 / 22%));
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 auto 36px;
  max-width: 780px;
}
.toc a {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
  background: rgb(18 61 58 / 8%);
  border: 1.5px solid rgb(18 61 58 / 25%);
  border-radius: 999px;
  padding: 8px 16px;
  transition: background 140ms var(--ease);
}
.toc a:hover { background: rgb(18 61 58 / 16%); color: var(--teal-deep); }

.note-card {
  background: rgb(196 138 58 / 12%);
  border: 1.5px solid rgb(154 104 34 / 40%);
  border-left: 5px solid var(--brass);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 30px 0;
}
.note-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.note-card p { margin: 0; color: #3c3b31; }

/* Encabezados de grupo en Reglas */
.rules-part {
  max-width: 780px;
  margin: 58px auto 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  scroll-margin-top: 110px;
}
.rules-part:first-of-type { margin-top: 34px; }
.rules-part h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  white-space: nowrap;
}
.rules-part::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brass), rgb(196 138 58 / 0%));
}

/* Capturas de la app */
.app-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 30px);
  margin-top: 34px;
}
.app-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: clip;
  border: 4px solid var(--teal-deep);
  box-shadow: var(--shadow-lg);
  background: var(--teal-deepest);
}
.app-shot img { width: 100%; height: auto; display: block; }
.app-shot figcaption {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--teal-deep);
  padding: 10px 16px;
}
@media (max-width: 720px) {
  .app-shots { grid-template-columns: 1fr; }
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  margin-bottom: 14px;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--brass-light); }
.breadcrumbs a { color: var(--text-on-dark-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--parchment-light); }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; }
.section-sub { max-width: 780px; margin: 56px auto 18px; }
.faq details {
  background: var(--parchment-light);
  border: 1px solid var(--parchment-edge);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  overflow: clip;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-label);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brass-dark);
  transition: transform 180ms var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: #3c3b31; }

/* Banda CTA final */
.cta-band {
  position: relative;
  text-align: center;
  color: var(--text-on-dark);
  background:
    radial-gradient(ellipse at 50% -20%, rgb(226 183 101 / 14%), transparent 60%),
    linear-gradient(180deg, var(--teal), var(--teal-deepest));
  overflow: clip;
}
.cta-band__lights {
  position: absolute;
  top: -8px;
  left: 50%;
  translate: -50% 0;
  width: min(720px, 88%);
  height: auto;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgb(0 0 0 / 35%));
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--parchment-light); font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta-band p { max-width: 46ch; margin-inline: auto; color: var(--text-on-dark-dim); font-size: 1.1rem; }
.cta-band .hero__actions { justify-content: center; margin-top: 26px; margin-bottom: 0; }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--teal-deepest);
  color: var(--text-on-dark-dim);
  padding-block: clamp(44px, 6vw, 64px) 28px;
  border-top: 1px solid var(--border-on-dark);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  margin-bottom: 38px;
}

.site-footer__brand img { height: 64px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { max-width: 34ch; margin: 0; }

.site-footer h3 {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text-on-dark-dim); text-decoration: none; }
.site-footer a:hover { color: var(--parchment-light); text-decoration: underline; }

.site-footer__legal {
  border-top: 1px solid var(--border-on-dark);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}
.site-footer__legal p { margin: 0; }

/* ------------------------------------------------------- error 404 --- */

.error-hero { text-align: center; padding-block: clamp(56px, 9vw, 96px); }
.error-hero img { width: min(340px, 70%); margin: 0 auto 26px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.error-hero .hero__actions { justify-content: center; }

/* --------------------------------------------------- reveal animación --- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .step-card, .discover-card { transition: none; }
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1023px) {
  .brand img { height: 44px; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--teal-deepest);
    border-bottom: 1px solid var(--border-on-dark);
    padding: 10px var(--gutter) 22px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgb(247 241 228 / 8%); }
  .site-nav .btn { margin-top: 16px; }
}

@media (max-width: 860px) {
  .steps, .discover { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .pintas { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .rule-card { grid-template-columns: 1fr; }
  .rule-card__icon { grid-column: 1; grid-row: auto; width: 96px; margin-bottom: 4px; }
}

@media (max-width: 640px) {
  .hero { align-items: center; text-align: center; }
  .hero__copy { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 1 1 100%; }
  .store-row { justify-content: center; }
  .divider-bunting { margin-top: -22px; }
  .avatars li:nth-child(even) img { transform: translateY(8px); }
}

@media (min-width: 641px) and (max-width: 899px) {
  .hero__actions .btn { min-width: 220px; }
}
