/* =========================================================================
   Landing · Masterclass de Hallacas Vegetarianas · ALEGRÍA
   Mobile-first. Sin estilos en línea (compatible con CSP estricta).
   ========================================================================= */

/* ---------- Fuentes propias (sin peticiones a Google) ---------- */
@font-face {
  font-family: "Titan One";
  src: url("../fonts/titan-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --forest: #0d1f0a;
  --ink: #080f07;
  --green: #5bbf3a;
  --green-deep: #1e6b14;
  --yellow: #f5c518;
  --cream: #f6f3e8;
  --leaf: #2b7418;
  --pabilo: #ead9a4;
  --muted: rgba(246, 243, 232, 0.76);
  --line: rgba(246, 243, 232, 0.18);
  --font-display: "Titan One", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(1.1rem, 4.2vw, 2.25rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --step: 6; /* hallaca completa si no hay JS */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--forest);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 7.4vw, 4.5rem);
}
h2 {
  font-size: clamp(1.95rem, 5.6vw, 3.6rem);
}
h3 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.15;
}
p {
  margin: 0 0 1rem;
}
s {
  text-decoration-thickness: 0.12em;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}
.sec-green :focus-visible,
.sec-cream :focus-visible,
.sec-yellow :focus-visible,
.consent :focus-visible,
.ticket :focus-visible {
  outline-color: var(--ink);
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow {
  margin: 0 0 0.9rem;
  font: 800 0.82rem/1.2 var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}
.sec-green .eyebrow,
.sec-cream .eyebrow,
.sec-yellow .eyebrow {
  color: var(--green-deep);
}
.sec-green .eyebrow {
  color: var(--ink);
}
.muted {
  color: var(--muted);
}
.sec-cream .muted,
.sec-green .muted,
.sec-yellow .muted {
  color: rgba(8, 15, 7, 0.78);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 3px solid transparent;
  border-radius: 999px;
  font: 400 1.1rem/1.05 var(--font-display);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s;
}
.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 5px 0 #a98608;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #a98608;
}
.btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #a98608;
}
.sec-cream .btn--primary,
.sec-green .btn--primary,
.ticket .btn--primary {
  border-color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
.btn--ink {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 0 5px 0 #000;
}
.btn--ink:hover {
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border-color: currentColor;
}
.btn--ghost:hover {
  background: rgba(246, 243, 232, 0.1);
}
.btn--ghost-ink {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--lg {
  min-height: 3.75rem;
  padding-inline: clamp(1.2rem, 4vw, 2.3rem);
  font-size: clamp(1.05rem, 3.7vw, 1.35rem);
}
.btn--block {
  width: 100%;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  text-underline-offset: 0.25em;
}

/* ---------- Barra de aviso y cabecera ---------- */
.announce {
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.3;
  padding: 0.55rem var(--gutter);
}
.announce p {
  margin: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 31, 10, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.brand img {
  height: 2.7rem;
  width: auto;
}
.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.nav {
  display: none;
}
.nav[data-open="true"] {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--forest);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.5rem;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}
.nav__cta {
  margin-top: 1rem;
}
.header-cta {
  display: none;
}
@media (min-width: 62rem) {
  .nav-toggle {
    display: none;
  }
  .nav,
  .nav[data-open="true"] {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }
  .nav ul {
    display: flex;
    gap: 1.7rem;
  }
  .nav a {
    padding: 0.5rem 0;
    border: 0;
    font-size: 0.98rem;
    white-space: nowrap;
  }
  .nav a:hover {
    color: var(--yellow);
  }
  .nav .nav__cta {
    display: none;
  }
  .header-cta {
    display: inline-flex;
    min-height: 2.9rem;
    padding: 0.55rem 1.2rem;
    font-size: 1rem;
  }
}

/* ---------- Secciones, color y borde festoneado ---------- */
.section {
  position: relative;
  padding-block: clamp(4.25rem, 9vw, 7.5rem);
  background: var(--sec-bg);
  color: var(--sec-fg);
  isolation: isolate;
  overflow-x: clip; /* las hojas decorativas no deben provocar scroll horizontal */
}
.sec-forest { --sec-bg: var(--forest); --sec-fg: var(--cream); }
.sec-ink { --sec-bg: var(--ink); --sec-fg: var(--cream); }
.sec-green { --sec-bg: var(--green); --sec-fg: var(--ink); }
.sec-cream { --sec-bg: var(--cream); --sec-fg: var(--ink); }
.sec-yellow { --sec-bg: var(--yellow); --sec-fg: var(--ink); }
.section--scallop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -21px;
  height: 22px;
  background: radial-gradient(circle at 50% 100%, var(--sec-bg) 0 17px, transparent 17.5px) 0 0 / 38px 22px repeat-x;
  pointer-events: none;
}
.section__head {
  max-width: 46rem;
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__intro {
  margin-top: 1.1rem;
  font-size: 1.15rem;
}

/* Hojas decorativas (máscara con la hoja del logo) */
.leaf {
  position: absolute;
  z-index: -1;
  width: var(--size, 20rem);
  aspect-ratio: 403 / 434;
  background: var(--leaf-color, rgba(255, 255, 255, 0.05));
  -webkit-mask: url("../img/leaf.svg") center / contain no-repeat;
  mask: url("../img/leaf.svg") center / contain no-repeat;
  rotate: var(--rot, 0deg);
  pointer-events: none;
}
.leaf--hero-a { --size: clamp(16rem, 44vw, 34rem); --rot: -18deg; --leaf-color: #153316; top: -4rem; left: -7rem; }
.leaf--hero-b { --size: clamp(14rem, 40vw, 30rem); --rot: 24deg; --leaf-color: #153316; bottom: -8rem; right: -6rem; }
.leaf--pain { --size: clamp(14rem, 34vw, 26rem); --rot: 20deg; --leaf-color: #efe6b4; top: -3rem; right: -5rem; }
.leaf--pain-b { --size: clamp(12rem, 28vw, 22rem); --rot: -40deg; --leaf-color: #efe6b4; bottom: -4rem; left: -4rem; }
.leaf--story { --size: clamp(16rem, 36vw, 28rem); --rot: -12deg; --leaf-color: #153316; bottom: -5rem; right: -4rem; }
.leaf--green { --size: clamp(15rem, 38vw, 30rem); --rot: 30deg; --leaf-color: #71cb52; top: -5rem; left: -5rem; }
.leaf--stack { --size: clamp(14rem, 30vw, 24rem); --rot: 14deg; --leaf-color: #efe6b4; bottom: -3rem; right: -3rem; }
.leaf--offer { --size: clamp(16rem, 40vw, 32rem); --rot: -20deg; --leaf-color: #71cb52; bottom: -6rem; right: -6rem; }
.leaf--final { --size: clamp(16rem, 38vw, 30rem); --rot: 18deg; --leaf-color: #153316; top: -4rem; left: -4rem; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(1.75rem, 5vw, 4rem) clamp(4.5rem, 9vw, 7rem);
  overflow: clip;
}
.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero__stage {
  order: -1;
}
.video-frame {
  --pad: clamp(8px, 1.5vw, 16px);
  position: relative;
  padding: var(--pad);
  background: var(--leaf);
  border-radius: clamp(18px, 3vw, 32px);
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.28), 0 0 0 3px var(--ink);
  rotate: -1.2deg;
}
/* amarres de pabilo sobre el marco de hoja: la animación se ve "atada" como una hallaca */
.video-frame::before,
.video-frame::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: var(--pad);
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0 14%, var(--pabilo) 14% 17%, transparent 17% 48.5%, var(--pabilo) 48.5% 51.5%, transparent 51.5% 83%, var(--pabilo) 83% 86%, transparent 86%);
}
.video-frame::before { top: 0; }
.video-frame::after { bottom: 0; }
.hero__video {
  width: 100%;
  height: auto; /* anula el atributo height del <video> para respetar la proporción */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(10px, 1.6vw, 18px);
  background: var(--ink);
}
.video-toggle {
  position: absolute;
  right: calc(var(--pad) + 0.6rem);
  bottom: calc(var(--pad) + 0.6rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid rgba(246, 243, 232, 0.65);
  background: rgba(8, 15, 7, 0.82);
  cursor: pointer;
}
.video-toggle:hover {
  background: var(--ink);
}
.hero__copy .lead {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.08rem, 2.7vw, 1.3rem);
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(2.1rem, 2.4vw + 1.2rem, 3.3rem);
}
.hl {
  color: var(--yellow);
}
.hero__cta {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  margin-top: 1.7rem;
}
.hero__cta .btn {
  width: 100%;
}
.price-note {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}
.price-note strong {
  color: var(--cream);
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 243, 232, 0.07);
  font-size: 0.92rem;
  font-weight: 800;
}
.trust .icon {
  color: var(--green);
}
@media (min-width: 40rem) {
  .hero__cta .btn {
    width: auto;
  }
}
@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3.5rem;
  }
  .hero__copy {
    order: 1;
  }
  .hero__stage {
    order: 2;
  }
}

/* ---------- Dolor: tarjetas de puesto de mesa ---------- */
.pain-grid {
  display: grid;
  gap: 1.9rem;
  margin: 3.2rem 0 0;
  padding: 0;
  list-style: none;
}
.place-card {
  position: relative;
  padding: 1.7rem 1.3rem 1.4rem;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--ink);
  rotate: var(--tilt, 0deg);
}
.place-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 84px;
  height: 26px;
  background: rgba(245, 197, 24, 0.9);
  border-radius: 3px;
  translate: -50% 0;
  rotate: -3deg;
}
.place-card__n {
  display: block;
  margin-bottom: 0.5rem;
  font: 800 0.8rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.place-card p {
  margin: 0;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.45;
}
.place-card--empty {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  background: var(--yellow);
}
.place-card--empty p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.12;
}
.pain-grid li:nth-child(1) { --tilt: -1.6deg; }
.pain-grid li:nth-child(2) { --tilt: 1.2deg; }
.pain-grid li:nth-child(3) { --tilt: -0.9deg; }
.pain-grid li:nth-child(4) { --tilt: 1.7deg; }
.pain-grid li:nth-child(5) { --tilt: -1.1deg; }
@media (min-width: 40rem) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pain-grid li:nth-child(5) {
    grid-column: 1 / -1;
  }
}
@media (min-width: 64rem) {
  .pain-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.4rem;
  }
  .pain-grid li:nth-child(5) {
    grid-column: auto;
  }
}

/* ---------- Historia ---------- */
.story__grid {
  display: grid;
  gap: 2.6rem;
  align-items: start;
}
.story__quote {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.4vw, 3.2rem);
  line-height: 1.08;
  color: var(--yellow);
  text-wrap: balance;
}
.story__body p {
  max-width: 38rem;
  font-size: 1.14rem;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 0.5rem 0.95rem;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
}
.instructor {
  position: relative;
  max-width: 24rem;
  margin: 0 auto;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.55);
  rotate: 1.4deg;
}
.instructor__photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  border-radius: 24px 24px 0 0;
}
.instructor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.instructor__leaf {
  position: absolute;
  top: -1.7rem;
  right: -1.2rem;
  width: 5.4rem;
  aspect-ratio: 403 / 434;
  background: var(--yellow);
  -webkit-mask: url("../img/leaf.svg") center / contain no-repeat;
  mask: url("../img/leaf.svg") center / contain no-repeat;
  rotate: 18deg;
  pointer-events: none;
}
.instructor__cap {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  padding: 1.2rem 1.2rem 1.5rem;
  text-align: center;
}
.instructor__role {
  margin: 0;
  font: 800 0.8rem/1 var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.instructor__name {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}
.instructor__note {
  margin: 0.4rem 0 0;
  font-weight: 700;
  max-width: 17rem;
}
@media (min-width: 62rem) {
  .story__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 4.5rem;
  }
}

/* ---------- Transformación ---------- */
.swap {
  margin-top: 2.4rem;
  max-width: 62rem;
}
.swap__before {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.9vw, 2.1rem);
  line-height: 1.15;
  opacity: 0.78;
}
.swap__before::after {
  content: "";
  position: absolute;
  left: -0.4rem;
  right: -0.4rem;
  top: 54%;
  height: 0.2em;
  background: var(--ink);
  border-radius: 6px;
  transform-origin: left;
  transform: scaleX(0);
}
.swap.is-in .swap__before::after,
html:not(.js) .swap__before::after {
  transform: scaleX(1);
  transition: transform 0.7s var(--ease) 0.35s;
}
.swap__after {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 10.5vw, 6.6rem);
  line-height: 0.96;
  text-wrap: balance;
}
.swap__after .pill {
  display: inline-block;
  margin-top: 0.35em;
  padding: 0.12em 0.55em;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 999px;
  font-size: 0.5em;
  line-height: 1.1;
  rotate: -2deg;
}
.swap__note {
  max-width: 36rem;
  margin: 2rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.reveal {
  opacity: 1;
}
html.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(26px);
}
html.js .reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ---------- Módulos + hallaca que se arma ---------- */
.modules__grid {
  display: grid;
  gap: 2.2rem;
  margin-top: 3rem;
}
.modules__art {
  position: sticky;
  top: 3.95rem;
  z-index: 3;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.5rem var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.modules__art .hz {
  max-height: 8.5rem;
}
.module-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1.1rem;
  padding: 1.3rem 1.2rem;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: rgba(246, 243, 232, 0.04);
  transition: border-color 0.3s, background-color 0.3s;
}
.module.is-active {
  border-color: var(--yellow);
  background: rgba(245, 197, 24, 0.09);
}
.module__n {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font: 400 1.45rem/1 var(--font-display);
}
.module h3 {
  align-self: center;
}
.module p {
  grid-column: 2;
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.6rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font: 800 0.72rem/1.4 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.modules__cta {
  margin-top: 2.4rem;
}
@media (min-width: 62rem) {
  .modules__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
    align-items: start;
  }
  .modules__art {
    top: 7rem;
    margin-inline: 0;
    padding: 0;
    background: none;
    border: 0;
  }
  .modules__art .hz {
    max-height: none;
  }
}
/* La hallaca: cada parte aparece según --step (1 a 6) */
.hz {
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}
.hz-shadow { fill: rgba(0, 0, 0, 0.35); }
.hz-leaf { fill: var(--leaf); stroke: #1a4b10; stroke-width: 4; opacity: calc(0.4 + 0.6 * clamp(0, calc(var(--step) - 1), 1)); transition: opacity 0.5s; }
.hz-veins path { stroke: #1a4b10; stroke-width: 3; opacity: 0.35; fill: none; }
.hz-masa { fill: #f2b01e; transform-box: fill-box; transform-origin: center; transform: scale(clamp(0, calc(var(--step) - 3), 1)); transition: transform 0.6s var(--ease); }
.hz-guiso { fill: #7a2d12; transform-box: fill-box; transform-origin: center; transform: scale(clamp(0, calc(var(--step) - 2), 1)); transition: transform 0.6s var(--ease); }
.hz-top > * { transform-box: fill-box; transform-origin: center; transform: scale(clamp(0, calc(var(--step) - 1), 1)); transition: transform 0.6s var(--ease); }
.hz-olive { fill: #8db83a; }
.hz-raisin { fill: #4a1d3d; }
.hz-pimiento { fill: #d6402a; }
.hz-flap { fill: #3b922a; transform-box: fill-box; transition: transform 0.7s var(--ease); }
.hz-flap--t { transform-origin: top; transform: scaleY(clamp(0, calc(var(--step) - 4), 1)); }
.hz-flap--b { transform-origin: bottom; transform: scaleY(clamp(0, calc(var(--step) - 4), 1)); }
.hz-crease { stroke: #1a4b10; stroke-width: 5; opacity: clamp(0, calc(var(--step) - 4), 1); transition: opacity 0.5s 0.4s; }
.hz-tie { stroke: var(--pabilo); stroke-width: 10; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--step) - 4), 1)); transition: stroke-dashoffset 0.8s var(--ease) 0.3s; }
.hz-knot { fill: var(--pabilo); stroke: #1a4b10; stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(clamp(0, calc(var(--step) - 5), 1)); transition: transform 0.5s var(--ease) 0.2s; }
.hz-steam { fill: none; stroke: var(--cream); stroke-width: 6; stroke-linecap: round; opacity: calc(0.7 * clamp(0, calc(var(--step) - 5), 1)); transition: opacity 0.6s 0.4s; }
@media (prefers-reduced-motion: no-preference) {
  .hz-steam { animation: steam 2.6s ease-in-out infinite; }
  .hz-steam:nth-of-type(2) { animation-delay: 0.5s; }
  .hz-steam:nth-of-type(3) { animation-delay: 1s; }
}
@keyframes steam {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.icon--fill {
  fill: currentColor;
  stroke: none;
}
.sr-only + .sr-only {
  margin-top: -1px;
}

/* ---------- Lo que te llevas ---------- */
.stack {
  display: grid;
  gap: 1.1rem;
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
}
.stack li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.4;
}
.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
}
.check .icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 3.2;
}
.anchor-price {
  margin: 2.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.8vw, 2rem);
}
.anchor-price s {
  opacity: 0.6;
}
@media (min-width: 48rem) {
  .stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Para quién es ---------- */
.fit {
  display: grid;
  gap: 1.3rem;
  margin-top: 2.6rem;
}
.fit__card {
  padding: 1.6rem 1.4rem;
  border-radius: 24px;
}
.fit__card--yes {
  border: 3px solid var(--green);
  background: rgba(91, 191, 58, 0.08);
}
.fit__card--no {
  border: 3px dashed var(--line);
}
.fit__card h3 {
  margin-bottom: 1rem;
}
.fit__card ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fit__card li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.fit__card--yes .icon {
  color: var(--green);
  margin-top: 0.2rem;
}
.fit__card--no .icon {
  color: var(--pabilo);
  margin-top: 0.2rem;
}
.fit__note {
  margin: 1.8rem 0 0;
  font-weight: 800;
  color: var(--yellow);
}
@media (min-width: 48rem) {
  .fit {
    grid-template-columns: 1.25fr 1fr;
  }
}

/* ---------- Oferta ---------- */
.ticket {
  --pad: clamp(1.8rem, 4.5vw, 3rem);
  position: relative;
  max-width: 46rem;
  margin: 3rem auto 0;
  padding: var(--pad);
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 12px 0 rgba(8, 15, 7, 0.3);
}
/* muescas del boleto, centradas sobre la línea punteada */
.ticket__list::before,
.ticket__list::after {
  content: "";
  position: absolute;
  top: -1.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--ink);
}
.ticket__list::before { left: calc(var(--pad) * -1 - 1.1rem); }
.ticket__list::after { right: calc(var(--pad) * -1 - 1.1rem); }
.seal {
  position: absolute;
  top: -2.2rem;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font: 400 1.1rem/0.95 var(--font-display);
  text-align: center;
  rotate: 11deg;
}
.ticket__kicker {
  margin: 0;
  font: 800 0.9rem/1.2 var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.ticket__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  line-height: 0.95;
}
.ticket__price strong {
  font-weight: 400;
  font-size: clamp(5rem, 24vw, 8.5rem);
}
.ticket__price span {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
}
.ticket__regular {
  margin: 0.2rem 0 0;
  font-weight: 800;
}
.ticket__list {
  position: relative;
  display: grid;
  gap: 0.7rem;
  margin: 2.6rem 0 1.8rem;
  padding: 2.2rem 0 0;
  border-top: 3px dashed var(--ink);
  list-style: none;
}
.ticket__list li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-weight: 800;
}
.ticket__list .check {
  width: 1.7rem;
  height: 1.7rem;
}
.ticket__final {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgba(245, 197, 24, 0.3);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}
.ticket__final a {
  text-underline-offset: 0.2em;
}
.ticket__fine {
  margin: 1.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(8, 15, 7, 0.78);
}
.steps {
  display: grid;
  gap: 1rem;
  margin: 3rem auto 0;
  padding: 0;
  max-width: 62rem;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  flex: none;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font: 400 1.3rem/1 var(--font-display);
}
@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Garantía ---------- */
.guarantee {
  display: grid;
  gap: 1.6rem;
  align-items: center;
  max-width: 58rem;
  margin-inline: auto;
}
.guarantee__icon {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
}
.guarantee__icon .icon {
  width: 3.6rem;
  height: 3.6rem;
  stroke-width: 2;
}
.guarantee p {
  max-width: 38rem;
  font-size: 1.15rem;
}
@media (min-width: 48rem) {
  .guarantee {
    grid-template-columns: auto 1fr;
    gap: 2.4rem;
  }
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
  max-width: 50rem;
  margin: 2.6rem auto 0;
}
.faq details {
  border-bottom: 2px solid var(--ink);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.4rem;
  padding: 0.9rem 0;
  font: 400 clamp(1.1rem, 3vw, 1.35rem)/1.25 var(--font-display);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font: 400 1.4rem/1 var(--font-display);
  transition: rotate 0.25s var(--ease), background-color 0.25s;
}
.faq details[open] summary::after {
  rotate: 45deg;
  background: var(--yellow);
}
.faq details p {
  margin: 0 0 1.2rem;
  max-width: 42rem;
}

/* ---------- Cierre ---------- */
.final {
  text-align: center;
}
.final h2 {
  font-size: clamp(2.3rem, 8vw, 5rem);
  max-width: 14ch;
  margin-inline: auto;
}
.final__sub {
  margin: 1.2rem auto 2rem;
  max-width: 34rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.ps {
  max-width: 40rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--line);
  text-align: left;
  color: var(--muted);
}
.ps strong {
  color: var(--yellow);
}

/* ---------- Pie ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 3.2rem 6.5rem;
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
}
.footer__brand img {
  height: 3.2rem;
  width: auto;
  margin-bottom: 0.8rem;
}
.footer__links,
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a,
.footer__links button,
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.footer__fine {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.footer__fine p {
  margin: 0 0 0.6rem;
}
@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
@media (min-width: 62rem) {
  .site-footer {
    padding-bottom: 3.2rem;
  }
}

/* ---------- Barra de compra pegajosa (móvil/tablet) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(8, 15, 7, 0.97);
  border-top: 2px solid var(--yellow);
  transform: translateY(115%);
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
  visibility: hidden;
}
.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease);
}
.sticky-cta__price {
  line-height: 1.1;
  font-weight: 800;
}
.sticky-cta__price strong {
  display: block;
  font: 400 1.6rem/1 var(--font-display);
  color: var(--yellow);
}
.sticky-cta__price s {
  font-size: 0.85rem;
  opacity: 0.7;
}
.sticky-cta .btn {
  min-height: 3rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
}
@media (min-width: 62rem) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Consentimiento de cookies ---------- */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  padding: 0 var(--gutter) calc(0.9rem + env(safe-area-inset-bottom));
  pointer-events: none;
}
.consent__inner {
  max-width: 62rem;
  max-height: 85vh;
  margin-inline: auto;
  padding: 1rem 1.1rem 1.1rem;
  overflow: auto;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}
.consent__title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.consent__text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.consent__actions .btn--ghost-ink {
  grid-column: 1 / -1;
}
.btn--consent {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  min-height: 3rem;
  font-size: 1rem;
}
.consent .btn--ghost-ink {
  min-height: 3rem;
  font-size: 1rem;
}
.consent__panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 2px dashed var(--ink);
}
.consent__panel[hidden] {
  display: none;
}
.consent__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.consent__row p {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.switch {
  position: relative;
  flex: none;
  display: inline-block;
  width: 3.4rem;
  height: 2rem;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch__ui {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #d9d4c2;
  transition: background-color 0.2s;
}
.switch__ui::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--ink);
  transition: translate 0.2s var(--ease);
}
.switch input:checked + .switch__ui {
  background: var(--green);
}
.switch input:checked + .switch__ui::after {
  translate: 1.35rem 0;
}
.switch input:disabled {
  cursor: not-allowed;
}
.switch input:disabled + .switch__ui {
  opacity: 0.6;
}
.switch input:focus-visible + .switch__ui {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  z-index: 110;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.8rem 1.3rem;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--yellow);
  border-radius: 18px;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
}
@media (min-width: 40rem) {
  .consent__actions {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
  .consent__actions .btn--ghost-ink {
    grid-column: auto;
  }
  .consent .btn {
    padding-inline: 1.6rem;
  }
}

/* ---------- Páginas legales ---------- */
.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 5rem;
}
.legal h1 {
  font-size: clamp(2rem, 6vw, 3.3rem);
}
.legal h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  color: var(--yellow);
}
.legal h3 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 800;
}
.legal p,
.legal li {
  max-width: 48rem;
}
.legal ul,
.legal ol {
  padding-left: 1.3rem;
}
.legal li {
  margin-bottom: 0.4rem;
}
.legal__meta {
  color: var(--muted);
  font-weight: 700;
}
.legal__table {
  width: 100%;
  margin: 1rem 0 1.6rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.legal__table th,
.legal__table td {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal__table th {
  background: rgba(246, 243, 232, 0.08);
}
.legal__scroll {
  overflow-x: auto;
}
.todo {
  padding: 0.05em 0.45em;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  font-weight: 800;
  text-underline-offset: 0.25em;
}
.notfound {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 3rem var(--gutter);
  text-align: center;
}
.notfound h1 {
  margin: 1rem 0;
  font-size: clamp(3.5rem, 16vw, 8rem);
  color: var(--yellow);
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .announce,
  .site-header,
  .sticky-cta,
  .consent,
  .video-toggle {
    display: none !important;
  }
}
