/* Concepto: lo real (fotos de Otavalo) frente a lo imaginado (bloques).
   Colores de mundo Minecraft: cielo, pasto, tierra, piedra y oro. */
:root {
  --paper: #E8F5FF;      /* cielo claro */
  --tint: #E1EFD2;       /* pasto claro */
  --card: #F3F3EF;       /* piedra clara */
  --ink: #24272B;        /* pizarra profunda: texto y fondos oscuros */
  --ink-2: #3A3E44;
  --ink-line: #565C64;
  --soft: #4A5247;
  --line: #C3CDB7;
  --terra: #3F7D20;      /* pasto oscuro: botones y acentos */
  --terra-dark: #2A5714;
  --ochre: #F4C430;      /* oro */
  --ochre-dark: #B8900F;
  --on-dark: #F7F7F2;
  --on-dark-soft: #CBD0C6;
  --grass: #5DA130;
  --dirt: #8B5A2B;
  --dirt-dark: #5E3B1A;
  --dirt-text: #FFF5E6;
  --dirt-soft: #F2DEC4;
  --sky: #8FCBFF;
  --stone: #7D7D7D;
  --iron: #C9CCCF;
  --wa: #1F7A4D;
  --wa-dark: #135233;
  --tbd-bg: #FCE9B8;
  --tbd-fg: #6B3A00;

  --f-display: "Press Start 2P", "Courier New", monospace;
  --f-text: "VT323", "Courier New", monospace;
  --f-pixel: "Press Start 2P", "Courier New", monospace;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

* { box-sizing: border-box; font-synthesis: none; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
b, strong { font-weight: 400; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: 22px; line-height: 1.3; overflow-wrap: break-word; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.45; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(21px, 6.2vw, 48px); text-shadow: 4px 4px 0 rgba(0,0,0,.45); }
h1 em { font-style: normal; color: var(--ochre); }
h2 { font-size: clamp(17px, 4.6vw, 28px); max-width: 26ch; color: var(--terra); text-shadow: 3px 3px 0 rgba(0,0,0,.12); }
h3 { font-size: 14px; }
p { margin: 0; }

.pixel { font-family: var(--f-pixel); }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 780px; }

/* Barra de progreso hecha de bloques */
.progress { position: fixed; top: 0; left: 0; right: 0; height: calc(6px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); z-index: 50; pointer-events: none; }
.progress span { display: block; height: 6px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--grass) 0 18px, var(--dirt) 18px 36px); }
@supports (animation-timeline: scroll()) {
  .progress span { animation: grow-x linear both; animation-timeline: scroll(root); }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Secciones */
.section { padding-block: 72px; }
.section > .wrap { display: flex; flex-direction: column; gap: 20px; }
.section-tint { background: var(--tint); }

/* Stickers de pixel art */
.section { position: relative; }
.sticker {
  position: absolute; z-index: 2; height: auto; pointer-events: auto;
  width: clamp(64px, 12vw, 124px);
  top: clamp(4px, 1.6vw, 20px);
  right: max(var(--gutter-r), calc((100% - 1080px) / 2 + 16px));
  image-rendering: pixelated;
  transform: rotate(var(--r, 8deg));
  filter: drop-shadow(0 6px 8px rgba(22, 33, 58, .28));
  transition: transform .3s var(--ease-bounce);
  cursor: grab;
}
.sticker:hover { transform: rotate(calc(var(--r, 8deg) * -1)) scale(1.12); }
.sticker:active { transform: rotate(0deg) scale(.94); }
.st-mascara { --r: 9deg; width: clamp(60px, 10vw, 108px); }
.st-poncho { --r: -8deg; }
.st-vasija { --r: 7deg; width: clamp(56px, 10vw, 112px); }
.st-sombrero { --r: -10deg; width: clamp(70px, 13vw, 140px); }
.st-rondador { --r: -7deg; }
.st-choclo { --r: 10deg; }
.st-tapiz { --r: -6deg; width: clamp(60px, 11vw, 104px); }
.st-telar { --r: 8deg; width: clamp(60px, 11vw, 112px); }
.st-alpargatas { --r: -9deg; width: clamp(72px, 13vw, 140px); }
.st-faja { --r: 12deg; width: clamp(54px, 9vw, 96px); }
.st-olla { --r: -8deg; width: clamp(60px, 7vw, 76px); top: 6px; }
.st-anaco { --r: 7deg; width: clamp(56px, 9vw, 92px); top: 12px; }
.foot { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .st-rondador { animation-delay: -.7s; } .st-choclo { animation-delay: -2s; } .st-tapiz { animation-delay: -3.3s; }
  .st-telar { animation-delay: -4.6s; } .st-alpargatas { animation-delay: -1s; } .st-faja { animation-delay: -2.3s; }
  .st-olla { animation-delay: -3.6s; } .st-anaco { animation-delay: -.4s; }
}
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: sticker-float 5s ease-in-out infinite; }
  .st-poncho { animation-delay: -1.3s; } .st-vasija { animation-delay: -2.6s; } .st-sombrero { animation-delay: -3.9s; }
  .sticker:hover, .sticker:active { animation-play-state: paused; }
}
/* En celular, más espacio arriba para que el sticker no tape el título pequeño */
@media (max-width: 719px) { .section:has(> .sticker) { padding-top: 104px; } .foot { padding-top: 40px; } }
@keyframes sticker-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2, .section-cta h2 { color: var(--on-dark); }
.section-tint { border-top: 10px solid var(--grass); }
.eyebrow { font-size: 11px; color: var(--terra); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 12px; height: 12px; background: var(--grass); flex: none; box-shadow: 16px 0 0 var(--dirt); margin-right: 16px; }
.section-dark .eyebrow, .section-cta .eyebrow { color: var(--ochre); }
.section-dark .eyebrow::before, .section-cta .eyebrow::before { background: var(--ochre); box-shadow: 16px 0 0 var(--on-dark); }
.intro { color: var(--soft); max-width: 60ch; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 12px 30px; width: fit-content; max-width: 100%;
  background: var(--terra); color: #FFF8F0; font-family: var(--f-display); font-weight: 400; font-size: 14px; line-height: 1.5; text-decoration: none;
  border: 0; border-radius: 4px; box-shadow: 0 6px 0 var(--terra-dark);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--terra-dark); filter: brightness(1.06); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--terra-dark); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.btn-light { background: var(--paper); color: var(--terra); box-shadow: 0 6px 0 #9FB08E; }
.btn-light:hover { box-shadow: 0 4px 0 #9FB08E; }
.btn-light:active { box-shadow: 0 0 0 #9FB08E; }
.btn-wa { background: var(--wa); box-shadow: 0 6px 0 var(--wa-dark); }
.btn-wa:hover { box-shadow: 0 4px 0 var(--wa-dark); }
.btn-wa:active { box-shadow: 0 0 0 var(--wa-dark); }

/* Portada */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(36,39,43,.25) 0%, rgba(36,39,43,.68) 45%, rgba(36,39,43,.95) 100%); }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 88px var(--gutter-r) 120px var(--gutter-l); display: flex; flex-direction: column; gap: 20px; }
.brand { font-size: 11px; color: var(--ochre); }
.logo { width: min(100%, 600px); margin: -24px 0 -4px -8px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.foot-logo { width: 200px; }
.lead { font-size: clamp(22px, 5.6vw, 28px); max-width: 32ch; }
.chips { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 21px; padding: 6px 12px; background: rgba(246,242,233,.12); border: 1px solid rgba(246,242,233,.35); border-radius: 4px; backdrop-filter: blur(4px); }
.h1 .ln, h1 .ln { display: inline-block; }

/* Bloques que caen y se apilan */
.stack { position: absolute; right: var(--gutter-r); bottom: 0; display: grid; grid-template-columns: repeat(3, 30px); grid-auto-rows: 30px; gap: 4px; z-index: -1; }
.stack i { display: block; box-shadow: inset -5px -5px 0 rgba(0,0,0,.18), inset 5px 5px 0 rgba(255,255,255,.15); }
.stack .b1 { grid-column: 1; grid-row: 3; background: var(--dirt); }
.stack .b2 { grid-column: 2; grid-row: 3; background: var(--stone); }
.stack .b3 { grid-column: 3; grid-row: 3; background: var(--ochre); }
.stack .b4 { grid-column: 2; grid-row: 2; background: var(--ochre); }
.stack .b5 { grid-column: 3; grid-row: 2; background: linear-gradient(var(--grass) 0 30%, var(--dirt) 30%); }
.stack .b6 { grid-column: 3; grid-row: 1; background: var(--ochre); }
.scroll-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: var(--on-dark-soft); font-size: 12px; text-decoration: none; padding: 8px 12px; font-size: 10px; }

/* Animaciones de llegada (portada) */
@media (prefers-reduced-motion: no-preference) {
  .brand, h1 .ln, .lead, .chips li, .hero .btn { animation: rise .7s var(--ease-out) both; }
  .logo { animation: logo-pop .8s var(--ease-bounce) both; }
  .brand { animation-delay: .05s; }
  h1 .ln:nth-child(1) { animation-delay: .12s; }
  h1 .ln:nth-child(2) { animation-delay: .22s; }
  h1 .ln:nth-child(3) { animation-delay: .32s; }
  .lead { animation-delay: .42s; }
  .chips li:nth-child(1) { animation-delay: .5s; }
  .chips li:nth-child(2) { animation-delay: .56s; }
  .chips li:nth-child(3) { animation-delay: .62s; }
  .hero .btn { animation-delay: .7s; }
  .stack i { animation: drop .6s var(--ease-bounce) both; }
  .stack .b1 { animation-delay: .3s; } .stack .b2 { animation-delay: .4s; } .stack .b3 { animation-delay: .5s; }
  .stack .b4 { animation-delay: .65s; } .stack .b5 { animation-delay: .75s; } .stack .b6 { animation-delay: .9s; }
  .scroll-hint { animation: bob 1.8s ease-in-out 1.2s infinite; }
  .hero .btn { animation: rise .7s var(--ease-out) .7s both, pulse 2.4s ease-in-out 2s 3; }
}
@keyframes logo-pop { from { opacity: 0; transform: scale(.85) translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-260px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 6px 0 var(--terra-dark), 0 0 0 0 rgba(227,176,75,.0); } 50% { box-shadow: 0 6px 0 var(--terra-dark), 0 0 0 10px rgba(227,176,75,.35); } }

/* Aparición al bajar (CSS puro; si el navegador no lo soporta, todo se ve quieto) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .bar { animation: bar-in linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    .podium .step { animation: step-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .podium .amount { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
}
@keyframes reveal-in { from { opacity: 0; transform: translateY(32px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bar-in { from { width: 0; } }
@keyframes step-in { from { transform: scaleY(0); } }

/* Comparador hoy / tu idea */
.compare { position: relative; margin-top: 8px; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 620px; width: 100%; touch-action: pan-y; box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-idea { clip-path: inset(0 0 0 var(--pos)); }
.cmp-label { position: absolute; top: 12px; font-size: 10px; padding: 4px 10px; border-radius: 3px; pointer-events: none; }
.cmp-label-l { left: 12px; background: var(--ink); color: var(--on-dark); }
.cmp-label-r { right: 12px; background: var(--ochre); color: var(--ink); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--paper); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--terra); color: #FFF8F0; font-size: 10px; padding: 10px 8px; border-radius: 4px; white-space: nowrap; box-shadow: 0 4px 0 var(--terra-dark); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp-range:focus-visible + * , .compare:has(.cmp-range:focus-visible) { outline: 3px solid var(--ochre); outline-offset: 3px; }
@media (min-width: 900px) { .compare { aspect-ratio: 16 / 9; } }

/* Tarjetas */
.cards { display: grid; gap: 16px; margin-top: 8px; }
.card { background: var(--dirt); color: var(--dirt-text); border: 0; border-top: 12px solid var(--grass); border-radius: 4px; box-shadow: inset 0 -6px 0 var(--dirt-dark); padding: 22px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s; }
.card:hover { box-shadow: inset 0 -6px 0 var(--dirt-dark), 0 16px 30px -18px rgba(0,0,0,.5); border-top-color: var(--ochre); }
.card-key { font-size: 11px; color: var(--ochre); }
.card p:last-child { color: var(--dirt-soft); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Elige tu año */
.year { margin-top: 16px; background: var(--ink); color: var(--on-dark); border-radius: 8px; padding: 24px; display: grid; gap: 12px; }
.year-label { font-size: 11px; line-height: 1.6; color: var(--ochre); }
.year-out { font-family: var(--f-pixel); font-size: clamp(38px, 11vw, 68px); line-height: 1; color: var(--on-dark); display: block; }
.year-out.bump { animation: bump .25s var(--ease-bounce); }
@keyframes bump { from { transform: scale(1.08); color: var(--ochre); } }
.year-hint { color: var(--on-dark-soft); min-height: 3.2em; }
.year-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--on-dark-soft); }
#year { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; --fill: 32%; }
#year::-webkit-slider-runnable-track { height: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--terra) var(--fill), var(--ink-line) var(--fill)); }
#year::-moz-range-track { height: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--terra) var(--fill), var(--ink-line) var(--fill)); }
#year::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -9px; background: var(--ochre); border: 0; box-shadow: inset -5px -5px 0 var(--ochre-dark); }
#year::-moz-range-thumb { width: 32px; height: 32px; background: var(--ochre); border: 0; border-radius: 0; box-shadow: inset -5px -5px 0 var(--ochre-dark); }
@media (min-width: 720px) { .year { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 32px; } .year-label { grid-column: 1 / -1; } .year-out { grid-row: 2 / span 3; } }

/* Galería */
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gallery-head .intro { flex: 1 1 320px; }
.gal-nav { display: flex; gap: 8px; }
.gal-btn { width: 48px; height: 48px; border: 0; border-radius: 4px; background: var(--terra); color: var(--on-dark); font-size: 14px; font-family: var(--f-display); cursor: pointer; box-shadow: 0 4px 0 var(--terra-dark); transition: transform .1s, box-shadow .1s; }
.gal-btn:active { transform: translateY(4px); box-shadow: none; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 400px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 24px var(--gutter-r) 16px var(--gutter-l); max-width: 1080px; margin: 0 auto; scroll-padding-left: var(--gutter-l);
}
.gallery::-webkit-scrollbar { display: none; }
.place { margin: 0; scroll-snap-align: start; background: var(--card); border-radius: 6px; overflow: hidden; border: 2px solid var(--line); transition: transform .3s var(--ease-out), box-shadow .3s; }
.place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease-out); }
.place:hover { transform: translateY(-6px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.5); }
.place:hover img { transform: scale(1.06); }
.place figcaption { padding: 12px 14px 14px; font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; background: var(--card); }
.tag { font-family: var(--f-pixel); font-size: 10px; line-height: 1.4; padding: 3px 8px; border-radius: 3px; }
.tag-real { background: var(--ink); color: var(--on-dark); }
.tag-idea { background: var(--ochre); color: var(--ink); }

/* Podio */
.podium { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; max-width: 660px; }
.podium li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.rank { font-size: 12px; color: var(--on-dark-soft); }
.amount { font-family: var(--f-display); font-size: clamp(12px, 3.5vw, 24px); white-space: nowrap; }
.step { display: block; width: 100%; border-radius: 4px 4px 0 0; transform-origin: 50% 100%;
  background-image: linear-gradient(90deg, rgba(0,0,0,.12) 50%, transparent 50%), linear-gradient(rgba(0,0,0,.12) 50%, transparent 50%);
  background-size: 24px 24px; }
.p1 .step { height: 160px; background-color: var(--ochre); }
.p2 .step { height: 110px; background-color: var(--iron); }
.p3 .step { height: 76px; background-color: #B4683A; }
.p1 .amount { color: var(--ochre); }

/* Propuesta */
.split { display: grid; gap: 28px; align-items: center; }
.section > .wrap.split { display: grid; }
.split-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.split-img { margin: 0; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.split-img figcaption { font-size: 20px; color: var(--soft); margin-top: 10px; }
@media (min-width: 820px) { .split { grid-template-columns: 1.1fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: linear-gradient(var(--grass) 0 35%, var(--dirt) 35%); box-shadow: inset -3px -3px 0 rgba(0,0,0,.25); }

/* Reglas */
.rules { display: grid; gap: 12px; margin-top: 8px; }
.rule { background: var(--dirt); color: var(--dirt-text); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; border-top: 10px solid var(--grass); box-shadow: inset 0 -6px 0 var(--dirt-dark); transition: border-color .2s, transform .2s var(--ease-out); }
.rule:hover { border-top-color: var(--ochre); transform: translateY(-3px); }
.rule h3 { font-size: 13px; }
.rule p { color: var(--dirt-soft); }
@media (min-width: 720px) { .rules { grid-template-columns: repeat(2, 1fr); } .rule:last-child { grid-column: 1 / -1; } }

/* Jurado */
.score { width: 100%; max-width: 780px; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.score th, .score td { padding: 14px 4px; text-align: left; border-bottom: 2px solid var(--line); vertical-align: top; }
.score th { font-family: var(--f-pixel); font-weight: 400; font-size: 11px; color: var(--soft); }
.score td:last-child, .score th:last-child { text-align: right; white-space: nowrap; font-family: var(--f-display); font-size: 13px; color: var(--terra); padding-left: 16px; }
.bar { display: block; height: 12px; margin-top: 8px; width: calc(var(--w) * 3.2%); background: repeating-linear-gradient(90deg, var(--grass) 0 14px, transparent 14px 16px); }

/* Fechas */
.timeline { list-style: none; padding: 0; margin: 8px 0 0; display: grid; }
.timeline li { display: grid; gap: 6px; padding: 18px 0; border-top: 2px solid var(--line); }
.when { font-size: 12px; color: var(--terra); }
@media (min-width: 720px) { .timeline li { grid-template-columns: 200px 1fr; align-items: baseline; } }

/* Marcadores pendientes */
.tbd { background: var(--tbd-bg); color: var(--tbd-fg); padding: 1px 6px; border-radius: 3px; }

/* Inscripción */
.section-cta { background-color: var(--terra); color: #FFF8F0;
  background-image: linear-gradient(90deg, rgba(0,0,0,.07) 50%, transparent 50%), linear-gradient(rgba(0,0,0,.07) 50%, transparent 50%);
  background-size: 48px 48px; }
@media (prefers-reduced-motion: no-preference) { .section-cta { animation: drift 30s linear infinite; } }
@keyframes drift { to { background-position: 96px 96px, 96px 96px; } }
.cta { align-items: flex-start; }
.cta > p:not(.eyebrow) { max-width: 52ch; }
.tbd-box { background: var(--paper); color: var(--ink); padding: 18px 20px; border-radius: 6px; }

/* Preguntas */
details { background: var(--card); border: 2px solid var(--stone); border-radius: 6px; transition: border-color .2s; }
details[open] { border-color: var(--grass); }
summary { cursor: pointer; padding: 14px 18px; min-height: 52px; display: flex; align-items: center; gap: 12px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-family: var(--f-pixel); color: var(--terra); width: 14px; flex: none; transition: transform .2s; }
details[open] > summary::before { content: "-"; }
details > p, details > ul { padding: 0 18px 16px 44px; margin: 0; }
@media (prefers-reduced-motion: no-preference) { details[open] > p, details[open] > ul { animation: rise .35s var(--ease-out); } }
#preguntas .wrap { gap: 10px; }
#preguntas h2 { margin-bottom: 10px; }

/* Contacto */
.section > .wrap.contact { flex-direction: column; }
.contact > div { display: flex; flex-direction: column; gap: 8px; }
.phone { font-variant-numeric: tabular-nums; user-select: all; }
.mail { user-select: all; color: var(--terra); overflow-wrap: anywhere; }
.contact > .contact-btns { flex-direction: row; flex-wrap: wrap; gap: 14px; }
.btn-copy { border: 0; cursor: pointer; }
.contact > div:first-child { max-width: 52ch; }
@media (min-width: 720px) { .section > .wrap.contact { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Botón flotante */
.float-cta {
  position: fixed; z-index: 40; right: calc(var(--gutter-r) + 0px); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 4px;
  background: var(--terra); color: #FFF8F0; font-family: var(--f-display); font-size: 13px; text-decoration: none; box-shadow: 0 5px 0 var(--terra-dark), 0 12px 24px -8px rgba(0,0,0,.5);
  transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .35s var(--ease-bounce), opacity .25s;
}
.float-cta.show { transform: none; opacity: 1; pointer-events: auto; }

/* Pie */
.foot { background: var(--ink); color: var(--on-dark-soft); padding-block: 40px 96px; font-size: 20px; }
.foot .wrap { display: flex; flex-direction: column; gap: 14px; }
.foot-brand { color: var(--ochre); font-size: 16px; }
.foot details { background: transparent; border-color: var(--ink-line); }
.foot details[open] { border-color: var(--ochre); }
.foot summary { color: var(--on-dark); }
.foot summary::before { color: var(--ochre); }
.foot details li { margin-bottom: 6px; }
.foot details > ul { padding-left: 62px; }
.foot a { color: var(--on-dark); }


/* Trivia */
.quiz { background: var(--ink); color: var(--on-dark); border-radius: 6px; padding: 24px; display: grid; gap: 16px; margin-top: 8px; max-width: 780px; box-shadow: inset 0 -6px 0 #111; }
.quiz-count { font-size: 11px; color: var(--ochre); }
.quiz-q { font-family: var(--f-display); font-size: clamp(14px, 3.6vw, 18px); line-height: 1.6; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { font: inherit; text-align: left; min-height: 52px; padding: 10px 16px; border: 3px solid var(--ink-line); border-radius: 4px; background: var(--ink-2); color: var(--on-dark); cursor: pointer; transition: transform .12s, border-color .15s, background .15s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--ochre); transform: translateX(4px); }
.quiz-opt:disabled { cursor: default; opacity: .75; }
.quiz-opt.right { background: var(--terra); border-color: var(--grass); opacity: 1; }
.quiz-opt.wrong { background: #7A2A1E; border-color: #B24424; opacity: 1; }
.quiz-fb { min-height: 1.3em; }
.quiz-fb.good { color: #A6E37A; }
.quiz-fb.bad { color: #FFB59E; }
@media (min-width: 720px) { .quiz-opts { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: no-preference) { .quiz-opt.right { animation: bump .35s var(--ease-bounce); } .quiz-opt.wrong { animation: shake .35s; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Logros */
.hud { position: fixed; z-index: 41; left: var(--gutter-l); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); min-height: 48px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 10px; border: 3px solid #555; border-radius: 4px; background: #2B2B2B; color: var(--on-dark);
  font-family: var(--f-display); font-size: 11px; cursor: pointer; box-shadow: 0 4px 0 #111; }
.hud::before { content: ""; width: 14px; height: 14px; background: var(--ochre); box-shadow: inset -3px -3px 0 var(--ochre-dark); }
.hud span { color: var(--ochre); }
.hud.ping { animation: bump .4s var(--ease-bounce); }
.logros { position: fixed; z-index: 41; left: var(--gutter-l); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100vw - 32px)); max-height: 60vh; overflow: auto;
  background: #2B2B2B; color: var(--on-dark); border: 3px solid #555; border-radius: 4px; padding: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.logros-title { font-size: 11px; color: var(--ochre); margin-bottom: 10px; }
.logros ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.logros li { display: grid; padding: 8px 10px; border: 2px solid #444; border-radius: 3px; color: #8A8A8A; line-height: 1.15; }
.logros li b { font-family: var(--f-display); font-size: 10px; margin-bottom: 4px; }
.logros li.ok { color: var(--on-dark); border-color: var(--grass); }
.logros li.ok b { color: var(--ochre); }
.toasts { position: fixed; z-index: 60; top: calc(14px + env(safe-area-inset-top, 0px)); right: var(--gutter-r); display: grid; gap: 8px; pointer-events: none; }
.toast { width: min(320px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: #2B2B2B; color: var(--on-dark);
  border: 3px solid #555; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.toast-icon { width: 28px; height: 28px; flex: none; background: linear-gradient(var(--grass) 0 35%, var(--dirt) 35%); box-shadow: inset -4px -4px 0 rgba(0,0,0,.25); }
.toast-title { display: block; font-family: var(--f-display); font-size: 10px; color: var(--ochre); margin-bottom: 4px; }
.toast-name { display: block; font-size: 22px; line-height: 1.1; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .4s var(--ease-bounce); }
  .toast.out { animation: toast-out .4s ease forwards; }
}
.toast.out { opacity: 0; }
@keyframes toast-in { from { transform: translateX(120%); } }
@keyframes toast-out { from { opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

/* Stickers que hablan */
.sticker:focus-visible { outline: 3px solid var(--ochre); outline-offset: 4px; }
.sticker.hop { animation: hop .45s var(--ease-bounce); }
@keyframes hop { 40% { translate: 0 -18px; } }
.bubble { position: fixed; z-index: 55; width: min(260px, calc(100vw - 16px)); padding: 12px 14px; background: #FFFFFF; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); display: grid; gap: 4px; line-height: 1.15; }
.bubble b { font-family: var(--f-display); font-size: 11px; color: var(--terra); }
.bubble.pop { animation: bump .3s var(--ease-bounce); }
.chip { position: fixed; z-index: 54; width: 8px; height: 8px; pointer-events: none; animation: chip .7s ease-out forwards; }
@keyframes chip { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Botones de la inscripción */
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-outline { background: transparent; color: #FFF8F0; border: 3px solid #FFF8F0; box-shadow: 0 6px 0 var(--terra-dark); }
.btn-outline:hover { box-shadow: 0 4px 0 var(--terra-dark); }
.btn-outline:active { box-shadow: 0 0 0 var(--terra-dark); }
