/* ESPACIO INVISIBLE
   Paleta y reglas de BRANDING OFICIAL: máximo 2 colores por pieza,
   formas orgánicas, risografía, Maroni / Inter / JetBrains Mono.

   Tipografía: Maroni (Arthur Calame, Calame.Bureau), versión de prueba.

/* Versión de prueba de Calame.Bureau. Antes de publicar el sitio hay que comprar la licencia web y cambiar estos archivos. */
@font-face { font-family: "Maroni"; src: url("fonts/CB-Maroni-Trial-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Maroni Condensed"; src: url("fonts/CB-Maroni-Trial-Condensed.otf") format("opentype"); font-display: swap; }

:root {
  color-scheme: dark;
  --verde: #0F150E;
  --lavanda: #C7A6FF;
  --crema: #F4E6CC;
  --arena: #E3D2B8;
  --naranja: #E8956B;
  --lima: #CBCF7E;
  --oliva: #7F8044;
  --display: "Maroni", "Titan One", "Arial Black", sans-serif;
  --stretch: 1;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --edge: clamp(36px, 8vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--verde); }
body { margin: 0; background: var(--verde); color: var(--crema); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
section[id], footer { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font: 500 .8125rem/1.35 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.45; max-width: 46ch; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--crema); color: var(--verde); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* Títulos: cada .l es una línea; se estira para acercarse a Maroni */
.d { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: 0; }
.d .l { display: block; transform: scaleY(var(--stretch)); transform-origin: 50% 55%; white-space: nowrap; }
h2.d { font-size: clamp(3.4rem, 12vw, 11.5rem); }

/* Tinta desregistrada: se alinea al hacer scroll */
.ink .l { text-shadow: var(--o, .018em) var(--o, .018em) 0 var(--ink2); }

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.45'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px;
  border: 2px solid var(--lavanda); border-radius: 999px; background: var(--lavanda); color: var(--verde);
  font: 700 .9375rem/1.1 var(--mono); text-transform: uppercase; text-decoration: none; text-align: center;
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), background-color .2s, color .2s, border-radius .3s;
}
.btn:hover { transform: rotate(-2deg) scale(1.04); border-radius: 22px 38px 18px 44px; }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--lavanda); }
.btn--ghost:hover { background: var(--lavanda); color: var(--verde); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: .8125rem; }
.btn--block { width: 100%; background: var(--verde); border-color: var(--verde); color: var(--crema); }
.btn--dark { background: var(--verde); border-color: var(--verde); color: var(--crema); }
.btn--line { background: transparent; border-color: currentColor; color: inherit; }

/* Nav */
.nav { position: fixed; inset: 14px var(--gutter) auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__brand { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; background: var(--verde); color: var(--crema); border-radius: 999px; text-decoration: none; font: 700 .75rem/1.1 var(--mono); }
.nav__flor { width: 28px; height: 28px; color: var(--lavanda); }
.nav__links { display: flex; align-items: center; gap: 4px; padding: 6px; background: var(--verde); color: var(--crema); border-radius: 999px; }
.nav__links a:not(.btn) { padding: 8px 14px; font: 500 .8125rem/1 var(--mono); text-transform: uppercase; text-decoration: none; border-radius: 999px; }
.nav__links a:not(.btn):hover { background: var(--crema); color: var(--verde); }

/* ===== Umbral ===== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--verde); --x: 62%; --y: 42%; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(circle 34vmax at var(--x) var(--y), rgba(199, 166, 255, .15), transparent 70%); pointer-events: none; }
.hero__hidden { position: absolute; inset: 0; color: var(--lavanda); pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 24vmax at var(--x) var(--y), #000 30%, transparent 100%);
          mask-image: radial-gradient(circle 24vmax at var(--x) var(--y), #000 30%, transparent 100%);
  --art-2: var(--verde); --nube-ink: var(--verde); }
.hero__hidden > * { position: absolute; left: var(--l); top: var(--t); }
.hero__hidden p { font: 500 clamp(.8rem, 1.2vw, 1rem)/1.2 var(--mono); text-transform: uppercase; max-width: 22ch; transform: translateX(-50%); }
.h-shape { width: var(--s); height: var(--s); transform: translateX(-50%) rotate(-8deg); }

.door { position: absolute; right: 7vw; top: 11%; width: min(50vh, 34vw); aspect-ratio: 3 / 4; }
.door__floor { position: absolute; left: -3.333%; top: 0; width: 176.667%; height: 145%; pointer-events: none; }
/* Encendido: la puerta parpadea como una luz que llega */
.door__leaf { animation: flick .6s linear both; }
.hero__title .l { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero__title .l:nth-child(2) { animation-delay: .08s; }
.hero__title .l:nth-child(3) { animation-delay: .16s; }
.hero__title .l:nth-child(4) { animation-delay: .24s; }
.hero__where, .hero__foot { animation: appear .6s ease-out .4s both; }
@keyframes flick { 0% { opacity: 0; } 18% { opacity: 1; } 34% { opacity: .1; } 52% { opacity: .85; } 70% { opacity: .2; } 100% { opacity: 1; } }
@keyframes appear { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }
.door__leaf { position: absolute; left: 0; top: 0; width: 40%; height: 75%; background: var(--lavanda); clip-path: polygon(0 26.7%, 100% 0, 100% 76.7%, 0 100%); box-shadow: none; }

.hero__copy { position: absolute; inset: 0; padding: 92px var(--gutter) 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(14px, 3vh, 30px); pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.hero__where { color: var(--lavanda); }
.hero__title { font-size: min(13.2vw, 17.5vh); }
.hero__title .l { width: fit-content; transform-origin: 0 55%; }
.hero__ghost {
  color: transparent; -webkit-text-stroke: 1.5px var(--lavanda);
  background: radial-gradient(circle var(--gr, 16vmax) at var(--lx, -100%) var(--ly, 50%), var(--lavanda) 45%, transparent 100%) no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.hero__foot { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.hero__next { display: grid; gap: 2px; }
.hero__next .mono { color: var(--lavanda); }
.hero__next strong { font-family: var(--body); font-weight: 600; font-size: 1.125rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__fill { position: absolute; inset: 0; background: var(--lavanda); opacity: 0; pointer-events: none; }

/* ===== Magia ===== */
.magia { position: relative; background: var(--lavanda); color: var(--verde); padding-block: clamp(90px, 12vw, 150px) clamp(120px, 14vw, 190px); }
.magia__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.magia__intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.magia__head { display: flex; align-items: stretch; gap: clamp(8px, 1.4vw, 22px); }
.magia__intro h2 { flex: none; font-size: min(11vw, 11rem); padding-block: .04em; }
.magia__intro h2 .l { transform-origin: 0 55%; }
/* La foto se ve a través de la puerta del umbral */
.magia__photo { position: relative; flex: 1; min-width: 0; }
.magia__frame { position: absolute; inset: 0; overflow: hidden; background: var(--verde); clip-path: polygon(0 9%, 100% 0, 100% 91%, 0 100%); }
.magia__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 42% 26%; }
.magia__eye { position: absolute; left: -16%; bottom: 7%; width: clamp(58px, 7vw, 110px); aspect-ratio: 200 / 140; transform: rotate(-9deg); overflow: visible; }
.magia__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.magia__buy { display: grid; gap: 18px; }
.magia__pick { font-size: 1rem; }

.cards { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); perspective: 900px; padding-block: 6px 12px; }
.card { position: relative; aspect-ratio: 5 / 7.2; padding: 0; border: 0; background: none; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.card:nth-child(1) { --r: -5deg; } .card:nth-child(2) { --r: -1.5deg; } .card:nth-child(3) { --r: 2deg; } .card:nth-child(4) { --r: 5deg; }
.card { transform: rotate(var(--r)); }
.card:hover { transform: rotate(0) translateY(-8px); }
.card[aria-pressed="true"] { transform: rotate(0) translateY(-6px) rotateY(180deg); }
/* Cartas: papel con grano, marco de ticket y sombra punteada como los grabados de la marca */
.card__face { position: absolute; inset: 0; display: grid; align-content: space-between; justify-items: center; padding: 12% 8%; border-radius: 10px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 3px 0 rgba(15, 21, 14, .28); }
.card__face > * { position: relative; z-index: 1; }
.card__face > .card__tex { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; color: var(--tex); }
.card__ic { display: block; aspect-ratio: 1; overflow: visible; }
.card__back { --ic-d: var(--verde); --tex: var(--lavanda); color: var(--lavanda); background-color: var(--verde);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .78 0 0 0 0 .65 0 0 0 0 1 0 0 0 1.25 -.72'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.card__back { grid-template-rows: 1fr auto; align-content: stretch; }
.card__back .card__ic { width: 76%; align-self: center; }
.card__back span { font: 700 clamp(.625rem, 1vw, .8125rem)/1 var(--mono); color: var(--crema); text-transform: uppercase; text-align: center; }
.card__front { --ic-d: var(--verde); --tex: var(--verde); color: var(--verde); background-color: var(--crema); transform: rotateY(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .16 0 0 0 1.35 -.72'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.card__front .num { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 4.2vw, 3.75rem); line-height: 1; transform: scaleY(var(--stretch)); }
.card__front > span { font: 700 clamp(.5625rem, .85vw, .75rem)/1.1 var(--mono); text-transform: uppercase; text-align: center; }
.card__front .card__ic { width: 44%; color: var(--lavanda); }
.card__front .card__spark { position: absolute; z-index: 1; right: 15%; top: 30%; width: 13%; aspect-ratio: 1; color: #E2692D; }

.ticket {
  display: grid; grid-template-columns: 1fr clamp(68px, 8vw, 96px); background: var(--crema); color: var(--verde); border-radius: 14px;
  -webkit-mask: radial-gradient(circle 13px at calc(100% - clamp(68px, 8vw, 96px)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at calc(100% - clamp(68px, 8vw, 96px)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 13px at calc(100% - clamp(68px, 8vw, 96px)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at calc(100% - clamp(68px, 8vw, 96px)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket__main { display: grid; gap: 16px; padding: clamp(16px, 2.2vw, 28px); min-width: 0; }
.ticket__head { display: flex; justify-content: space-between; }
.ticket__title { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.ticket__title .l { transform-origin: 0 55%; }
.ticket__data { display: grid; grid-template-columns: 1fr auto; gap: 14px; border-block: 2px solid var(--verde); padding-block: 10px; }
.ticket__data dt { font-weight: 400; font-size: .75rem; }
.ticket__data dd { font-size: 1rem; font-weight: 700; }
.ticket__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border: 2px solid var(--verde); border-radius: 50%; background: none; font: 700 1.25rem/1 var(--mono); }
.stepper button:hover { background: var(--verde); color: var(--crema); }
.stepper output { min-width: 2ch; text-align: center; font: 700 1.25rem/1 var(--mono); }
.ticket__total { text-align: right; display: grid; }
.ticket__total strong { font: 700 clamp(1.5rem, 2.6vw, 2.125rem)/1.1 var(--mono); }
.ticket__note { font-size: .875rem; line-height: 1.35; }
.ticket__stub { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-block: 24px; border-left: 2px dashed var(--verde); }
.ticket__stub svg { width: 54%; aspect-ratio: 1; color: #8D5FD6; }
.ticket__stub span { writing-mode: vertical-rl; font-weight: 700; font-size: 1rem; }

/* ===== Secciones con borde orgánico ===== */
.edge { position: absolute; left: 0; right: 0; top: calc(var(--edge) * -1 + 1px); width: 100%; height: var(--edge); z-index: 1; }
.edge path { fill: var(--sec); }

/* ===== Cocina ===== */
.cocina { --sec: var(--naranja); position: relative; background: var(--sec); color: var(--verde); padding-block: clamp(30px, 4vw, 60px) clamp(90px, 11vw, 150px); }
.cocina__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.cocina__grid > div:last-child { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.cocina h2 { font-size: clamp(3.2rem, 10vw, 9.6rem); }
.cocina__art { position: relative; aspect-ratio: 1; --art-2: var(--naranja); }
.cocina__blob { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--crema); }
.cocina__pot { position: absolute; inset: 16%; width: 68%; height: 68%; color: var(--verde); overflow: visible; }
.steam { stroke-dasharray: 16 10; animation: steam 2.6s linear infinite; }
@keyframes steam { to { stroke-dashoffset: -52; } }
.cocina__list { border-top: 2px solid var(--verde); max-width: 640px; }
.cocina__list button { display: grid; grid-template-columns: 8.5em 1fr auto; gap: 12px; width: 100%; padding: 13px 4px; align-items: baseline; text-align: left; background: none; border: 0; border-bottom: 2px solid var(--verde); transition: padding .25s, background-color .2s, color .2s; }
.cocina__list button:hover { background: var(--verde); color: var(--naranja); padding-inline: 14px; }
.cocina__list .mono { font-size: .75rem; }
.cocina__list strong { font-weight: 600; font-size: 1.0625rem; }

/* ===== La casa ===== */
.casa { --sec: var(--verde); position: relative; background: var(--sec); color: var(--crema); padding-block: clamp(30px, 5vw, 70px) clamp(90px, 11vw, 150px); transition: background-color .35s; }
.casa__intro { margin-bottom: clamp(26px, 4vw, 50px); }
.rows { border-top: 1.5px solid currentColor; }
.rows li { border-bottom: 1.5px solid currentColor; }
.rows a { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: clamp(14px, 2.2vw, 26px); text-decoration: none; }
.rows__t { font-size: clamp(3.4rem, 12vw, 11.5rem); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1), color .2s; }
.rows__t .l { transform-origin: 0 55%; }
.rows__s { font: 500 .875rem/1.3 var(--mono); text-transform: uppercase; max-width: 24ch; text-align: right; margin-left: auto; }
.rows__art { display: none; }
.rows__float { position: fixed; left: 0; top: 0; z-index: 10; width: clamp(180px, 22vw, 340px); height: clamp(180px, 22vw, 340px); pointer-events: none; opacity: 0; color: var(--verde); --art-2: var(--crema); }
.rows a:hover .rows__t { transform: translateX(.18em); }

/* ===== The Board ===== */
.board { --sec: var(--crema); position: relative; background: var(--sec); color: var(--verde); padding-block: clamp(30px, 4vw, 60px) clamp(90px, 11vw, 150px); }
.board__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.board__head h2 { font-size: clamp(4rem, 14vw, 13.5rem); }
.board__head h2 .l { transform-origin: 0 55%; }
.board__head > div:first-child { display: grid; gap: 10px; }
.board__month { display: flex; align-items: center; gap: 10px; }
.board__month button { width: 48px; height: 48px; display: grid; place-items: center; background: var(--verde); color: var(--crema); border: 0; border-radius: 50%; transition: transform .2s, opacity .2s; }
.board__month button svg { width: 20px; }
.board__month button:hover:not(:disabled) { transform: scale(1.1); }
.board__month button:disabled { opacity: .25; cursor: default; }
.board__month p { font-size: clamp(1.25rem, 2.6vw, 2.25rem); min-width: 9.5em; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: clamp(18px, 3vw, 32px); }
.chip { min-height: 44px; padding: 8px 16px; border: 2px solid var(--verde); border-radius: 999px; background: transparent; font: 700 .8125rem/1 var(--mono); text-transform: uppercase; transition: transform .2s; }
.chip:hover { transform: rotate(-2deg); }
.chip[aria-pressed="true"] { background: var(--c, var(--verde)); color: var(--cf, var(--crema)); }

.cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.cal__week span { padding: 8px 10px; }
.cal__week .is-thu { background: var(--lavanda); border-radius: 12px 12px 0 0; margin-bottom: -6px; padding-bottom: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-height: clamp(116px, 11.5vw, 168px); padding: 8px; display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--verde); min-width: 0; }
.day.is-blank { border-top-color: transparent; }
.day.is-thu { background: var(--lavanda); }
.day.is-thu.is-lastrow { border-radius: 0 0 12px 12px; }
.day__n { display: flex; gap: 6px; align-items: baseline; font: 700 .9375rem/1 var(--mono); }
.day__wd { display: none; }
.day.is-today .day__n b { background: var(--verde); color: var(--crema); padding: 3px 7px; border-radius: 999px; }
.day.is-past { opacity: .45; }

.evt { --r: 0deg; display: grid; align-content: space-between; gap: 6px; flex: 1; width: 100%; padding: 9px; text-align: left; border: 0; border-radius: 9px; background: var(--c); color: var(--cf); transform: rotate(var(--r)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), opacity .25s, filter .25s; --art-2: var(--c); }
.evt:hover, .evt:focus-visible { transform: rotate(0) scale(1.06); z-index: 3; position: relative; }
.evt__t { font-family: "Maroni Condensed", var(--display); font-size: clamp(1rem, 1.55vw, 1.5rem); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.evt__m { font: 700 .875rem/1.2 var(--mono); }
.evt__a { position: absolute; right: 6px; bottom: 6px; width: 30%; max-width: 44px; aspect-ratio: 1; opacity: .95; }
.evt { position: relative; overflow: hidden; }
.evt.is-off { opacity: .14; filter: grayscale(1); }
.evt.is-veil { background: repeating-linear-gradient(-45deg, var(--verde) 0 2px, transparent 2px 7px); color: var(--verde); cursor: default; align-content: end; }
.evt.is-veil span { background: var(--crema); padding: 3px 5px; font: 700 .6875rem/1.15 var(--mono); text-transform: uppercase; justify-self: start; }

/* ===== Comunidad ===== */
.comunidad { --sec: var(--lima); position: relative; background: var(--sec); color: var(--verde); padding-block: clamp(30px, 4vw, 60px) clamp(90px, 11vw, 150px); }
.comunidad__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.comunidad__grid > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.comunidad h2 { font-size: min(8vw, 7.8rem); }
.comunidad h2 .l { transform-origin: 0 55%; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 680px; margin-top: 8px; }
.form label, .form legend { display: grid; gap: 6px; font: 700 .8125rem/1.2 var(--mono); text-transform: uppercase; padding: 0; }
.form input[type="text"] { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--verde); border-radius: 12px; background: transparent; color: var(--verde); font: 500 1.0625rem var(--body); }
.form input[type="text"]:focus { background: var(--crema); outline: none; border-radius: 22px 12px 26px 10px; }
.form input[aria-invalid="true"] { border-style: dashed; background: var(--crema); }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.form__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.form__chips label { cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form__chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border: 2px solid var(--verde); border-radius: 999px; transition: transform .2s; }
.form__chips span:hover { transform: rotate(-2deg); }
.form__chips input:checked + span { background: var(--verde); color: var(--lima); }
.form__chips input:focus-visible + span { outline: 3px solid var(--verde); outline-offset: 3px; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__msg { grid-column: 1 / -1; font-weight: 600; min-height: 1.5em; }
.form__msg:empty { display: none; }
.form__fine { grid-column: 1 / -1; font-size: .875rem; }

.carnet { position: relative; aspect-ratio: 5 / 7.4; max-width: 400px; width: 100%; justify-self: center; background: var(--verde); color: var(--crema); padding: clamp(18px, 2vw, 28px); border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(3deg); overflow: hidden; }
.carnet__top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; }
.carnet__top svg { width: 42px; height: 42px; color: var(--lavanda); }
.carnet__blob { position: absolute; left: 10%; top: 15%; width: 80%; height: 54%; color: var(--lavanda); }
.carnet__art { position: absolute; left: 19%; top: 16%; width: 62%; height: 46%; color: var(--verde); --ic-d: var(--lavanda); overflow: visible; }
.carnet__body { position: relative; z-index: 1; display: grid; gap: 8px; }
.carnet__name { font-size: clamp(1.75rem, 3.4vw, 2.875rem); line-height: 1; overflow-wrap: anywhere; color: var(--lavanda); }
.carnet__tags { font-size: .75rem; }

/* ===== Pie ===== */
.foot { --sec: var(--verde); position: relative; background: var(--sec); color: var(--crema); padding-block: clamp(20px, 3vw, 40px) clamp(40px, 5vw, 70px); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px 40px; align-items: end; }
.foot__line { font-size: clamp(2.9rem, 9.6vw, 9rem); }
.foot__line .l { transform-origin: 0 55%; }
.foot__info { display: grid; gap: 14px; font-size: 1rem; }
.foot__info a { text-underline-offset: 3px; }

/* ===== Póster de actividad ===== */
.poster { --c: var(--lavanda); --cf: var(--verde); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: clamp(20px, 4vw, 34px); border: 0; border-radius: 18px; background: var(--c); color: var(--cf); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--cf) transparent; --art-2: var(--c); }
.poster[open] { display: grid; gap: 14px; animation: posterIn .45s cubic-bezier(.2, 1.3, .4, 1); }
.poster::backdrop { background: rgba(15, 21, 14, .78); }
@keyframes posterIn { from { transform: translateY(26px) rotate(-3deg) scale(.95); opacity: 0; } }
.poster__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; padding: 11px; background: var(--cf); color: var(--c); border: 0; border-radius: 50%; }
.poster__head { display: flex; justify-content: space-between; padding-right: 54px; }
.poster__head span:last-child { display: none; }
.poster__art { width: clamp(110px, 30vw, 170px); height: clamp(110px, 30vw, 170px); justify-self: end; margin-block: -6px -22px; }
.poster__title { font-size: clamp(2.4rem, 7.5vw, 3.6rem); line-height: .95; }
.poster__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; border-top: 2px solid currentColor; padding-top: 12px; }
.poster__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.poster__actions .btn--dark { background: var(--cf); border-color: var(--cf); color: var(--c); }


/* Barra móvil */
.tabbar { display: none; }

/* ===== Pantallas medianas y móvil ===== */
@media (max-width: 960px) {
  .magia__grid, .cocina__grid, .comunidad__grid { grid-template-columns: minmax(0, 1fr); }
  .magia__intro h2 { font-size: min(23vw, 12rem); }
  .magia__photo { margin-right: calc(var(--gutter) * -1); }
  .comunidad h2 { font-size: 13.6vw; }
  .cocina h2 { font-size: 15.5vw; }
  .cocina__art { width: min(62vw, 340px); }
  .carnet { max-width: 320px; }
  .foot__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .nav { position: absolute; }
  .nav__links { display: none; }
  .door { right: 4vw; top: 8%; width: 46vw; }
  .hero__title { font-size: min(16vw, 13vh); }
  .hero__foot { align-items: stretch; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; padding-inline: 12px; }
  .hero { min-height: 560px; height: calc(100svh - 66px); }
  .h-shape:nth-of-type(n+3), .hero__hidden p { display: none; }

  .ticket__row { flex-wrap: wrap; }

  /* El calendario se vuelve lista por fecha */
  .cal__week { display: none; }
  .cal { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .day { min-height: 0; flex-direction: row; align-items: stretch; gap: 12px; padding: 10px 4px; }
  .day.is-blank, .day.is-empty { display: none; }
  .day.is-thu { background: none; }
  .day__n { flex: 0 0 48px; flex-direction: column; gap: 2px; align-items: flex-start; font-size: 1.375rem; }
  .day__wd { display: block; font-size: .6875rem; font-weight: 500; text-transform: uppercase; }
  .day__evts { flex: 1; min-width: 0; }
  .evt { min-height: 78px; padding: 12px; --r: 0deg !important; }
  .evt__t { font-size: 1.5rem; padding-right: 46px; }
  .evt__m { font-size: 1rem; }
  .evt__a { width: 44px; }

  .rows__s { text-align: left; margin-left: 0; order: 3; width: 100%; max-width: none; }
  .rows a { padding-right: 76px; }
  .rows__art { display: block; position: absolute; right: 0; top: 50%; width: 64px; height: 64px; transform: translateY(-50%); color: var(--lavanda); --art-2: var(--verde); }
  .rows__float { display: none; }

  .form { grid-template-columns: minmax(0, 1fr); }
  .form .btn { width: 100%; }
  .cocina__list button { grid-template-columns: minmax(0, 1fr) auto; }
  .cocina__list .mono:first-child { grid-column: 1 / -1; }

  .tabbar { position: fixed; inset: auto 0 0; z-index: 55; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: stretch; gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--verde); }
  .tabbar a { display: grid; place-items: center; min-height: 52px; color: var(--crema); font: 700 .8125rem/1 var(--mono); text-transform: uppercase; text-decoration: none; border-radius: 999px; }
  .tabbar .is-main { background: var(--lavanda); color: var(--verde); }
}

/* Día sin envoltura en escritorio */
.day__evts { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .card[aria-pressed="true"] { transform: rotateY(180deg); }
}

/* ===== Umbral: se queda la forma con su luz, como el logo ===== */
.door { transform-origin: 20% 37.5%; will-change: transform; }
.door__name { position: absolute; left: 47%; top: 3%; width: max-content; color: var(--crema); opacity: 0; font-size: clamp(.875rem, 1.3vw, 1.125rem); }
.btn--naranja { background: #F5822A; border-color: #F5822A; color: var(--verde); }

/* ===== Pie: nube japonesa y umbral ===== */
.foot__nube { width: clamp(170px, 27vw, 380px); height: auto; aspect-ratio: 1120 / 760; align-self: center; color: var(--crema); --nube-ink: var(--verde); }
.foot__umbral { justify-self: start; width: clamp(130px, 19vw, 260px); height: auto; aspect-ratio: 520 / 560; overflow: visible; }

/* ===== Carné con criatura ===== */
.carnet-wrap { display: grid; gap: 22px; justify-items: center; justify-self: center; width: 100%; max-width: 400px; }
.carnet__bicho { font-size: .75rem; color: var(--lavanda); }
.carnet__otra { justify-self: center; }
@media (max-width: 960px) {
  .carnet-wrap { max-width: 320px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .foot__line, .foot__info { grid-column: 1 / -1; }
}
.cards { max-width: calc(var(--n, 4) * 9rem); }
.cocina__soon { padding: 14px 4px; border-bottom: 2px solid var(--verde); font-weight: 500; }

/* ===== Umbral según la referencia: puerta con textura luminosa y halo ===== */
.door__leaf {
  background-color: #C79BF5;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(240, 225, 255, .45) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .88 0 0 0 0 1 0 0 0 2.4 -1.2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .3 0 0 0 0 .8 0 0 0 2 -1.1'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23n)'/%3E%3C/svg%3E");
}
.door__glow { position: absolute; left: -12%; top: -6%; width: 64%; height: 92%; background: radial-gradient(closest-side, rgba(199, 155, 245, .38), transparent); filter: blur(24px); pointer-events: none; }
.foot__umbral { width: clamp(170px, 24vw, 320px); aspect-ratio: 530 / 600; }
.hero__where, .hero__next { text-shadow: 0 0 6px var(--verde), 0 0 2px var(--verde); }
@media (max-width: 760px) { .door { top: 6%; width: 42vw; } }
.foot__umbral { position: relative; }
.foot__umbral > * { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ===== Íconos oficiales (assets/iconos) ===== */
img.card__ic { aspect-ratio: auto; object-fit: contain; min-height: 0; }
.card__back img.card__ic { width: 74%; max-height: 100%; }
.card__front { grid-template-rows: auto auto auto minmax(0, 1fr); align-content: stretch; row-gap: 2px; }
.card__front img.card__ic { width: 70%; height: 100%; max-height: 100%; align-self: end; }
.card__front .card__spark { left: 12%; right: auto; top: 7%; width: 11%; }
.h-img { object-fit: contain; }
.magia__casa { position: absolute; left: -17%; bottom: 3%; width: clamp(64px, 8.5vw, 124px); height: auto; transform: rotate(-7deg);
  filter: drop-shadow(1.5px 0 0 var(--verde)) drop-shadow(-1.5px 0 0 var(--verde)) drop-shadow(0 1.5px 0 var(--verde)) drop-shadow(0 -1.5px 0 var(--verde)); }

/* La flor del logo gira al cargar la página */
#navFlor use { transform-box: fill-box; transform-origin: center; animation: florGiro 1.8s cubic-bezier(.2, .9, .25, 1) .15s both; }
@keyframes florGiro { from { transform: rotate(-540deg) scale(.3); } }

/* =====================================================================
   PRIMERA ETAPA: intriga, Magia en mi casa, encuesta, convocatoria, pistas
   ===================================================================== */

/* Magia en mi casa: la noche en tres pasos */
.magia__kicker { display: inline-flex; align-items: center; gap: 10px; }
.magia__kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(15, 21, 14, .15); }
.noche { display: grid; border-top: 2px solid var(--verde); max-width: 560px; }
.noche li { display: grid; grid-template-columns: 3.2em 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 2px solid var(--verde); }
.noche .mono { font-size: .875rem; font-weight: 700; }
.noche p { font-size: 1.0625rem; line-height: 1.4; }

/* Manifiesto */
.manif { --sec: var(--verde); position: relative; background: var(--sec); color: var(--crema); padding-block: clamp(40px, 6vw, 90px) clamp(100px, 12vw, 170px); overflow: hidden; }
.manif__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 34px); }
.manif .mono { color: var(--lavanda); }
.manif__q { font-size: clamp(3.2rem, 11vw, 11rem); }
.manif__q .l { transform-origin: 0 55%; }
.manif__q .l:nth-child(even) { padding-left: .9em; }
.manif__words { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 3vw, 40px); align-items: center; }
.manif__words li { font-size: clamp(1.75rem, 4.2vw, 3.75rem); color: var(--lavanda); display: inline-flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.manif__words li + li::before { content: ""; width: .3em; height: .3em; border-radius: 50%; background: currentColor; opacity: .5; }
.manif__lede { max-width: 50ch; color: var(--crema); }
.manif__nube { position: absolute; right: -4vw; top: 12%; width: clamp(220px, 36vw, 560px); height: auto; aspect-ratio: 1120 / 760; color: #1F2A22; --nube-ink: var(--verde); pointer-events: none; }

/* Encuesta en vivo */
.vota { --sec: var(--crema); position: relative; background: var(--sec); color: var(--verde); padding-block: clamp(30px, 4vw, 60px) clamp(100px, 12vw, 160px); }
.vota__head { display: grid; gap: 14px; max-width: 900px; margin-bottom: clamp(26px, 4vw, 48px); }
.vota__head h2 { font-size: clamp(3.4rem, 11vw, 10.5rem); }
.vota__head h2 .l { transform-origin: 0 55%; }
.vota__live { display: inline-flex; align-items: center; gap: 10px; }
.vota__dot { width: 10px; height: 10px; border-radius: 50%; background: #E2692D; animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .25; transform: scale(.7); } }
.vota__status { font-size: .75rem; min-height: 1.3em; }
.vota__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.vota__h { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; margin-bottom: 12px; }
.vota__h span { font-weight: 400; opacity: .7; }
.boletas { display: grid; gap: 8px; }
.boleta { position: relative; overflow: hidden; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto 40px; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; border: 2px solid var(--verde); border-radius: 14px; background: transparent; color: var(--verde); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background-color .2s; }
.boleta:hover { transform: translateX(4px) rotate(-.4deg); }
.boleta > *:not(.boleta__bar) { position: relative; z-index: 1; }
.boleta__bar { position: absolute; inset: 0; z-index: 0; background: var(--lavanda); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); opacity: .55; }
.boleta .rk { font-size: .875rem; font-weight: 700; }
.boleta__t { display: grid; gap: 2px; }
.boleta__t strong { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1; }
.boleta__t span { font-size: .875rem; line-height: 1.3; opacity: .8; }
.boleta .cnt { font-size: .75rem; white-space: nowrap; }
.boleta__mark { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--verde); border-radius: 50%; }
.boleta__mark svg { width: 24px; height: 24px; color: var(--verde); opacity: 0; transform: scale(.3); transition: opacity .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.boleta[aria-pressed="true"] { background: var(--verde); color: var(--crema); }
.boleta[aria-pressed="true"] .boleta__bar { background: #9B6FD6; opacity: .45; }
.boleta[aria-pressed="true"] .boleta__mark { border-color: var(--lavanda); background: var(--lavanda); }
.boleta[aria-pressed="true"] .boleta__mark svg { opacity: 1; transform: none; }
.temas { display: flex; flex-wrap: wrap; gap: 8px; }
.tema { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; border: 2px solid var(--verde); border-radius: 999px; background: transparent; color: var(--verde); font: 700 .875rem/1.1 var(--mono); text-transform: uppercase; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.tema:hover { transform: rotate(-2deg); }
.tema > *:not(.boleta__bar) { position: relative; z-index: 1; }
.tema .cnt { font-weight: 400; font-size: .75rem; opacity: .75; text-transform: none; }
.tema[aria-pressed="true"] { background: var(--verde); color: var(--crema); }
.vota__otra { margin-top: 22px; font-size: 1rem; }
.vota__otra a { font-weight: 600; text-underline-offset: 3px; }

/* Convocatoria */
.conv { --sec: var(--naranja); position: relative; background: var(--sec); color: var(--verde); padding-block: clamp(30px, 4vw, 60px) clamp(100px, 12vw, 160px); }
.conv__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.conv__txt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; }
.conv h2 { font-size: clamp(3.4rem, 11vw, 10.5rem); }
.conv h2 .l { transform-origin: 0 55%; }
.conv__art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; }
.conv__blob { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--verde); }
.conv__telon { position: absolute; left: 18%; top: 14%; width: 64%; height: auto; transform: rotate(-4deg); filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .25)); }
.conv__roles { display: flex; flex-wrap: wrap; gap: 6px; }
.conv__roles li { padding: 6px 12px; border: 2px solid var(--verde); border-radius: 999px; font-size: .75rem; font-weight: 700; }

/* Pistas y mapa */
.pistas { --sec: var(--verde); position: relative; background: var(--sec); color: var(--crema); padding-block: clamp(30px, 4vw, 60px) clamp(100px, 12vw, 160px); }
.pistas__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pistas__txt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.pistas__txt > .mono { color: var(--lavanda); }
.pistas h2 { font-size: clamp(3.2rem, 9.6vw, 9.6rem); }
.pistas h2 .l { transform-origin: 0 55%; }
.pistas__list { display: grid; border-top: 1.5px solid rgba(244, 230, 204, .35); }
.pistas__list li { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1.5px solid rgba(244, 230, 204, .35); font-size: clamp(1.0625rem, 1.6vw, 1.375rem); }
.pistas__list .mono { color: var(--lavanda); font-size: .75rem; }
.pistas__nota { font-size: .9375rem; color: var(--lavanda); }
.mapa { display: grid; gap: 10px; }
.mapa svg { width: 100%; height: auto; border-radius: 22px; transform: rotate(1.5deg); box-shadow: 0 0 0 2px rgba(199, 166, 255, .25); }
.mapa figcaption { font-size: .6875rem; opacity: .6; text-align: right; }
.mapa__t { font: 700 15px var(--mono); fill: #F4E6CC; letter-spacing: .04em; }
.mapa__t--d { fill: #0F150E; font-size: 13px; }
.mapa__q { font: 400 54px var(--display); fill: #0F150E; }

/* Comunidad: invitación secreta */
.form__wide { grid-column: 1 / -1; }
.form__opt { font-weight: 400; text-transform: none; opacity: .7; }
.form input[type="tel"], .form input[type="email"], .form textarea { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--verde); border-radius: 12px; background: transparent; color: var(--verde); font: 500 1.0625rem var(--body); resize: vertical; }
.form input[type="tel"]:focus, .form input[type="email"]:focus, .form textarea:focus { background: var(--crema); outline: none; border-radius: 22px 12px 26px 10px; }
.form input::placeholder, .form textarea::placeholder { color: rgba(15, 21, 14, .45); }
.form__chips input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form__chips input[type="radio"]:checked + span { background: var(--verde); color: var(--lima); }
.form__chips input[type="radio"]:focus-visible + span { outline: 3px solid var(--verde); outline-offset: 3px; }
.form .form__check { display: flex; gap: 12px; align-items: flex-start; font: 400 .9375rem/1.4 var(--body); text-transform: none; cursor: pointer; }
.form__check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--verde); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__msg a { font-weight: 700; text-underline-offset: 3px; }
.carnet__sello { position: absolute; z-index: 2; right: 8%; top: 46%; padding: 8px 12px; border: 3px solid #E2692D; border-radius: 8px; color: #E2692D; font-size: .875rem; font-weight: 700; transform: rotate(-12deg); opacity: 0; pointer-events: none; }
.carnet.is-ok .carnet__sello { opacity: 1; }
.comunidad h2 { font-size: min(8.6vw, 8.2rem); }

@media (max-width: 960px) {
  .vota__grid, .conv__grid, .pistas__grid { grid-template-columns: minmax(0, 1fr); }
  .conv__art { max-width: 300px; justify-self: center; }
  .comunidad h2 { font-size: 13.6vw; }
  .manif__nube { top: auto; bottom: 4%; opacity: .7; }
}
@media (max-width: 760px) {
  .boleta { grid-template-columns: 2em minmax(0, 1fr) 36px; padding: 12px; }
  .boleta .cnt { grid-column: 2; grid-row: 2; }
  .boleta__mark { grid-column: 3; grid-row: 1 / span 2; width: 36px; height: 36px; }
  .manif__q .l:nth-child(even) { padding-left: .5em; }
  .pistas__list li { grid-template-columns: 4.6em 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .vota__dot { animation: none; }
}

/* Revisión de diseño: mapa legible en celular y palabras del manifiesto sin separadores sueltos */
.mapa__t { font-size: 19px; }
.mapa__t--d { font-size: 15px; }
@media (max-width: 760px) {
  .manif__words { column-gap: 18px; }
  .manif__words li + li::before { display: none; }
  .hero__cta .btn { font-size: .75rem; padding-inline: 10px; }
}

/* =====================================================================
   PRIMERA ETAPA, RONDA 2
   ===================================================================== */

/* Algo está por aparecer: lavanda continuo desde la puerta */
.aparece { position: relative; background: var(--lavanda); color: var(--verde); }
.aparece__stage { position: relative; height: 100vh; height: 100svh; min-height: 520px; display: grid; place-items: center; overflow: hidden; }
.aparece__mapa { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-mar { fill: #B48DEB; }
.ap-calles path { fill: none; stroke: var(--verde); stroke-opacity: .16; stroke-width: 2; }
.ap-calles .ap-av { stroke-opacity: .32; stroke-width: 5; }
.ap-distrito { fill: var(--verde); fill-opacity: .1; stroke: var(--verde); stroke-width: 2.5; stroke-dasharray: 5 6; }
.ap-punto { fill: var(--verde); }
.aparece__txt { position: relative; z-index: 1; max-width: 16ch; padding-inline: 16px; text-align: center; font-size: clamp(1.75rem, 4.4vw, 3.6rem); line-height: 1; text-wrap: balance; }

/* La puertita que se abre */
.magia__kicker { font-size: .9375rem; }
.magia__kicker::before { display: none; }
.puertita { width: 30px; height: 39px; flex: none; perspective: 120px; overflow: visible; }
.puertita__marco { fill: none; stroke: var(--verde); stroke-width: 3; }
.puertita__luz { fill: #F4E6CC; }
.puertita__hoja { fill: var(--verde); transform-box: fill-box; transform-origin: left center; transition: transform 1.2s cubic-bezier(.2, .9, .25, 1) .2s; }
.puertita__hoja circle { fill: var(--lavanda); }
.is-open .puertita__hoja { transform: perspective(120px) rotateY(-70deg); }

/* Magia en mi casa */
.magia__por { font-size: .875rem; margin-top: -6px; }
.magia__por a { text-underline-offset: 3px; font-weight: 700; }
.magia__desc { font-size: clamp(1.125rem, 1.7vw, 1.4375rem); }
.pasos { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.pasos::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; border-top: 2px dashed var(--verde); opacity: .5; }
.pasos li { position: relative; display: grid; justify-items: start; gap: 6px; }
.pasos img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(1.5px 0 0 var(--verde)) drop-shadow(-1.5px 0 0 var(--verde)) drop-shadow(0 1.5px 0 var(--verde)) drop-shadow(0 -1.5px 0 var(--verde)); background: var(--lavanda); }
.pasos .mono { font-weight: 700; font-size: .8125rem; }
.pasos p { font-size: .9375rem; line-height: 1.35; }
.datos { display: flex; flex-wrap: wrap; gap: 8px; }
.datos div { display: grid; gap: 2px; padding: 8px 14px; border: 2px solid var(--verde); border-radius: 12px; }
.datos dt { font: 500 .6875rem/1 var(--mono); text-transform: uppercase; }
.datos dd { font: 400 1.375rem/1 var(--display); text-transform: uppercase; }
.datos__promo { background: var(--verde); color: var(--lavanda); }

/* Cartas: fechas más grandes */
.card__back > span:last-child { font: 400 clamp(1rem, 1.7vw, 1.375rem)/1 var(--display); letter-spacing: .02em; }
.card__front > span { font-size: clamp(.6875rem, 1vw, .875rem); }
.card__front .num { font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.card__front img.card__ic { width: 62%; }

/* Entrada: ahorro y WhatsApp */
.ticket__ahorro { display: block; margin-top: 4px; font-size: .75rem; font-weight: 700; color: #C24E14; }
.ticket__ahorro s { font-weight: 400; opacity: .7; margin-right: 4px; }
.btn--wa { gap: 10px; }
.btn--wa .wa { width: 22px; height: 22px; flex: none; }
.btn--wa:hover, .btn--wa:focus-visible, .btn--wa:active { background: #25D366; border-color: #25D366; color: #0B3D1E; }

/* Manifiesto con palabras flotando */
.manif { min-height: 100vh; }
.manif__grid { max-width: 1320px; }
.manif__q { position: relative; z-index: 1; font-size: clamp(3.2rem, 10vw, 10rem); }
.manif__q .l:nth-child(even) { padding-left: .7em; }
.manif__lede { position: relative; z-index: 1; display: grid; gap: 14px; max-width: 52ch; }
.manif__lede .lede { color: var(--crema); }
.manif__firma { font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--lavanda); margin-top: 6px; }
.manif .manif__words { position: absolute; inset: 0; z-index: 0; display: block; pointer-events: none; }
.manif .manif__words li { position: absolute; left: var(--x); top: var(--y); font-size: calc(clamp(1.75rem, 4vw, 3.5rem) * var(--s, 1)); color: var(--lavanda); rotate: var(--r, 0deg); white-space: nowrap; }
.manif .manif__words li::before { display: none; }

/* Encuesta: texto, íconos y colores */
.vota__lede { display: grid; gap: 4px; }
.vota__lede strong { font-weight: 700; }
.boleta { grid-template-columns: 2.2em 44px minmax(0, 1fr) auto 40px; }
.boleta__ic { width: 44px; height: 44px; color: var(--c); --art-2: var(--crema); --ic-bg: var(--crema); }
.boleta__bar { background: var(--c); opacity: .38; }
.boleta[aria-pressed="true"] .boleta__ic { --art-2: var(--verde); --ic-bg: var(--verde); }
.boleta[aria-pressed="true"] .boleta__bar { background: var(--c); opacity: .35; }
.boleta[aria-pressed="true"] .boleta__mark { background: var(--c); border-color: var(--c); }
.tema__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.tema .boleta__bar { background: var(--c); opacity: .4; }
.tema[aria-pressed="true"] { background: var(--c); color: var(--verde); }
.tema[aria-pressed="true"] .tema__dot { background: var(--verde); }

/* Convocatoria y pistas */
.conv__fin { font-weight: 600; }
.pistas__todavia { font-size: clamp(2rem, 4.6vw, 3.75rem); color: var(--lavanda); margin-top: -4px; }

@media (max-width: 960px) {
  .manif .manif__words { position: relative; inset: auto; display: flex; flex-wrap: wrap; gap: 10px 22px; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); margin-top: 26px; }
  .manif .manif__words li { position: relative; left: auto; top: auto; font-size: calc(clamp(1.5rem, 6vw, 2.4rem) * var(--s, 1)); }
}
@media (max-width: 760px) {
  .pasos { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pasos::before { left: 34px; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 2px dashed var(--verde); }
  .pasos li { grid-template-columns: 68px auto 1fr; align-items: center; gap: 12px; }
  .boleta { grid-template-columns: 1.6em 36px minmax(0, 1fr) 36px; }
  .boleta__ic { width: 36px; height: 36px; }
  .boleta .cnt { grid-column: 3; grid-row: 2; }
  .boleta__mark { grid-column: 4; grid-row: 1 / span 2; }
  .datos dd { font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .puertita__hoja { transition: none; }
}

/* Pasos: íconos recortados con contorno, número como sello sobre el ícono */
.pasos img { background: none; width: 64px; height: 64px; }
.pasos li { position: relative; }
.pasos .mono { position: absolute; left: 44px; top: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--verde); color: var(--lavanda); font-size: .75rem; }
.pasos::before { top: 32px; }
@media (max-width: 760px) {
  .pasos li { grid-template-columns: 64px 1fr; }
  .pasos .mono { left: 42px; top: -4px; }
}
@media (max-width: 960px) { .manif .manif__words { gap: 22px 28px; margin-top: 34px; padding-bottom: 20px; } }

/* ===== RONDA 3 ===== */
.aparece__centro { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
.casita { width: clamp(84px, 12vw, 130px); height: auto; overflow: visible; }
.casita__fill { fill: #8D5FD6; }
.casita__hatch path { fill: none; stroke: var(--verde); stroke-width: 1.6; stroke-linecap: round; opacity: .45; }
.casita__linea { fill: none; stroke: var(--verde); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.casita__linea--2 { stroke-width: 1.6; opacity: .7; }
.casita__ojo { fill: var(--crema); stroke: var(--verde); stroke-width: 2.4; }
.ap-l { opacity: 0; transition: opacity .12s linear; }
.ap-l.is-on { opacity: 1; }
.magia__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.magia__frame img.is-on { opacity: 1; }
.magia__titulo { cursor: pointer; }
.magia__titulo.is-flicker { animation: neon 1.4s steps(1, end) both; }
@keyframes neon {
  0%, 12%, 16%, 40%, 44%, 100% { opacity: 1; text-shadow: 0 0 .25em rgba(244,230,204,.7), 0 0 .6em rgba(232,149,107,.5); }
  10%, 14%, 42% { opacity: .25; text-shadow: none; }
  60% { opacity: .85; }
}
.datos .datos__solo { background: var(--verde); color: var(--crema); border-color: var(--verde); align-content: center; }
.magia__pick { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1; }
.ticket.is-sin-fecha #tDate { opacity: .55; }
.sello { position: absolute; right: 4%; top: 50%; translate: 0 -50%; width: clamp(260px, 30vw, 420px); pointer-events: none; }
.sello svg { width: 100%; height: auto; overflow: visible; }
.sello__txt { font: 400 26px var(--display); fill: var(--lavanda); letter-spacing: .04em; }
.sello__aro { fill: none; stroke: var(--lavanda); stroke-width: 2; stroke-dasharray: 4 8; opacity: .6; }
.sello__flor { color: var(--lavanda); }
.boleta { grid-template-columns: 2.2em 56px minmax(0, 1fr) auto 40px; align-items: center; }
.boleta__ic { width: 56px; height: 56px; align-self: center; margin-left: -6px; translate: 0 3px; }
.tema-lista, #pollTem { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 960px) { .sello { position: relative; right: auto; top: auto; translate: none; margin: 32px auto 0; width: min(300px, 80vw); } }
@media (max-width: 760px) { .boleta { grid-template-columns: 1.6em 46px minmax(0, 1fr) 36px; } .boleta__ic { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .ap-l { opacity: 1; } .magia__titulo.is-flicker { animation: none; } }

/* ===== RONDA 4: nuevo orden, ranking, invitación simple, Instagram ===== */
.aparece { --sec: var(--lavanda); }
.magia { --sec: var(--lavanda); }
.casita { width: clamp(110px, 15vw, 170px); }
.magia__por { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; margin-top: -10px; }
.magia__por a { font-family: var(--display); font-weight: 400; letter-spacing: .02em; text-underline-offset: 4px; }
.magia__frame img { object-position: 50% 30%; }

/* Ranking de la votación */
.ranking { display: grid; gap: 8px; }
.ranking__fila { position: relative; display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--verde); border-radius: 12px; overflow: hidden; isolation: isolate; }
.ranking__bar { position: absolute; inset: 0 auto 0 0; z-index: -1; width: calc(var(--p, 0) * 100%); background: var(--c); opacity: .55; transition: width .8s cubic-bezier(.2, .9, .25, 1); }
.ranking__pos { font-weight: 700; }
.ranking__t { font: 400 1.25rem/1 var(--display); text-transform: uppercase; }
.ranking__n { font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.ranking__fila:first-child .ranking__t { font-size: 1.5rem; }
.vota__otra { font-size: 1.125rem; }

/* Invitación secreta: formulario corto */
.comunidad .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.artista { margin-top: 26px; font-size: .875rem; opacity: .85; }
.artista a { font-weight: 700; text-underline-offset: 3px; }

/* Pistas al final, como detalle extra */
.pistas { padding-block-end: clamp(70px, 8vw, 110px); }

/* Instagram grande al cierre */
.insta { grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); width: fit-content; max-width: 100%; padding: clamp(14px, 2vw, 22px) clamp(18px, 3vw, 34px) clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px); border: 3px solid currentColor; border-radius: 28px; text-decoration: none; color: inherit; transition: transform .25s, background .25s, color .25s; }
.insta:hover, .insta:focus-visible { transform: rotate(-2deg) scale(1.02); background: var(--lavanda); color: var(--verde); }
.insta__ic { width: clamp(64px, 9vw, 120px); height: auto; flex: none; }
.insta__txt { display: grid; gap: 6px; min-width: 0; }
.insta__user { font-size: clamp(1.9rem, 5.4vw, 4.6rem); line-height: .95; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .comunidad .form { grid-template-columns: minmax(0, 1fr); }
  .ranking__t { font-size: 1.0625rem; }
  .ranking__fila:first-child .ranking__t { font-size: 1.25rem; }
}

/* ===== RONDA 5: umbral más delgado, "invisible" completo ===== */
.door__leaf { width: 28%; clip-path: polygon(0 19%, 100% 0, 100% 83.7%, 0 100%); }
.door { transform-origin: 14% 37.5%; }
.door__glow { width: 46%; }
.door__name { left: 34%; }
/* La caja del fondo cubre todo el glifo (la S se salía por arriba) */
.hero__ghost { padding: .14em .06em .06em; margin: -.14em -.06em -.06em; }
.magia__por { margin-top: -4px; }

/* ===== RONDA 6 ===== */
/* Aparece: morado plano, el punto se vuelve casa */
.casita__punto { fill: var(--verde); }
.aparece__txt .ap-l { transition: opacity .6s ease; }
.casita { width: clamp(120px, 16vw, 190px); }

/* Manifiesto: más chico, palabra que cambia */
.manif__q { font-size: clamp(2.6rem, 6.4vw, 6.4rem); }
.manif__q .l:nth-child(even) { padding-left: 0; }
.manif__rota { display: block; min-height: 1em; }
.rota { display: inline-block; color: var(--lavanda); white-space: nowrap; }
.rota__l { display: inline-block; will-change: transform; }
.manif { min-height: auto; }

/* Magia: "Algo ya apareció." como subtítulo */
.magia__sub { font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1; margin-bottom: -6px; }

/* Encuesta en vivo, que se vea */
.vota__live { padding: 8px 14px 8px 12px; background: var(--verde); color: var(--crema); border-radius: 999px; font-weight: 700; font-size: .8125rem; position: relative; z-index: 2; }
.vota__head { padding-top: clamp(20px, 3vw, 40px); }
.vota__lede { display: grid; gap: 14px; margin-top: 6px; }
.vota__gente { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1 var(--display); text-transform: uppercase; }
.vota__reglas { display: flex; flex-wrap: wrap; gap: 10px; }
.vota__reglas li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 2px solid var(--verde); border-radius: 999px; font-size: clamp(1rem, 1.4vw, 1.125rem); background: rgba(255, 255, 255, .35); }
.vota__flor { width: 26px; height: 26px; flex: none; color: #E2692D; }

/* Invitación: el fósforo de entrada */
.comunidad { overflow: hidden; }
.fosforo-wrap { display: grid; gap: 18px; justify-items: center; justify-self: center; width: 100%; max-width: 400px; }
.fosforo { position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 22px; background: var(--verde); color: var(--crema); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15, 21, 14, .6); isolation: isolate; }
.fosforo__top { position: absolute; z-index: 3; left: 22px; right: 22px; top: 20px; display: flex; justify-content: space-between; align-items: flex-start; font-size: .75rem; color: var(--lavanda); }
.fosforo__top svg { width: 30px; height: 30px; color: var(--lavanda); }
.fosforo__oscuro { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 78%, rgba(245, 160, 74, .55), rgba(199, 166, 255, .18) 38%, transparent 70%); opacity: 0; transition: opacity 1.2s ease; }
.fosforo.is-lit .fosforo__oscuro { opacity: 1; animation: velita 2.4s ease-in-out infinite; }
@keyframes velita { 0%, 100% { filter: brightness(1); } 40% { filter: brightness(1.15); } 60% { filter: brightness(.92); } }
.fosforo__msg { position: absolute; z-index: 2; left: 22px; right: 22px; top: 26%; display: grid; gap: 12px; text-align: center; opacity: .07; transition: opacity 1.4s ease .2s; }
.fosforo.is-lit .fosforo__msg { opacity: 1; }
.fosforo__para { font-size: .75rem; color: var(--lavanda); }
.fosforo__palabra { font-size: clamp(2.6rem, 6vw, 4rem); line-height: .95; color: #FFE7B0; text-shadow: 0 0 24px rgba(245, 160, 74, .55); overflow-wrap: anywhere; }
.fosforo__nota { font-size: .9375rem; line-height: 1.4; max-width: 24ch; justify-self: center; }
.fosforo__sello { position: absolute; z-index: 4; right: 10%; top: 16%; padding: 8px 12px; border: 3px solid #E2692D; border-radius: 8px; color: #E2692D; font-size: .8125rem; font-weight: 700; transform: rotate(-12deg); opacity: 0; pointer-events: none; }
.fosforo.is-ok .fosforo__sello { opacity: 1; }
.fosforo__caja { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 18px; height: 64px; border-radius: 12px; background: #2A1F33; border: 2px solid rgba(199, 166, 255, .35); cursor: grab; touch-action: none; }
.fosforo__lija { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 12px; border-radius: 4px; background: repeating-linear-gradient(90deg, #6B4A3A 0 3px, #4E3528 3px 6px); }
.fosforo__palito { position: absolute; left: 14px; top: 8px; width: 150px; height: 24px; }
.fosforo__llama { position: absolute; left: 148px; top: -46px; width: 34px; height: 52px; opacity: 0; pointer-events: none; }
.fosforo.is-lit .fosforo__llama { opacity: 1; animation: llama .18s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes llama { from { transform: scaleY(1) rotate(-2deg); } to { transform: scaleY(1.08) rotate(2deg); } }
.fosforo__palito { transition: transform .15s; }

/* El sobre que vuela */
.sobre { position: absolute; left: 0; top: 0; z-index: 5; width: clamp(80px, 9vw, 120px); height: auto; opacity: 0; pointer-events: none; }

/* La página oculta: negra, chiquita, secreta */
.pistas { --sec: #050605; background: #050605; color: var(--crema); padding-block: 0 clamp(70px, 8vw, 110px); }
.pistas__escena { position: relative; height: 100vh; height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.pistas__pregunta { position: absolute; font-size: clamp(.875rem, 1.4vw, 1.125rem); color: var(--lavanda); padding-inline: 16px; }
.pistas__respuesta { display: grid; justify-items: center; gap: 10px; padding-inline: 16px; }
.pistas__no { font-size: clamp(3rem, 11vw, 10rem); line-height: .9; }
.pistas__no .l { display: block; }
.pistas__escena .pistas__todavia { font-size: clamp(2rem, 6vw, 5rem); color: var(--lavanda); margin: 0; }
.pistas__grid { max-width: 880px; gap: clamp(20px, 3vw, 40px); font-size: .875rem; }
.pistas__grid .lede { font-size: 1rem; }
.pistas__list { font-size: .875rem; }
.pistas .mapa { max-width: 340px; justify-self: center; }
.pistas .mapa figcaption { font-size: .6875rem; }
h2.manif__q { font-size: clamp(2.3rem, 5.2vw, 5.4rem); }
@media (min-width: 961px) { .manif__q, .manif__lede { max-width: min(62vw, 820px); } }
.vota__live { width: fit-content; justify-self: start; }
.pistas .pistas__list li { font-size: .9375rem; line-height: 1.35; }
.fosforo__msg { opacity: .05; filter: blur(4px); transition: opacity 1.4s ease .2s, filter 1.4s ease .2s; } .fosforo.is-lit .fosforo__msg { filter: none; }

/* ===== RONDA 7: lanzamiento ===== */
.hero__que { max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.4; color: var(--crema); text-shadow: 0 0 8px var(--verde), 0 0 2px var(--verde); animation: appear .6s ease-out .35s both; }
.magia__otra { font-size: 1rem; text-align: center; }
.magia__otra a { font-weight: 700; text-underline-offset: 3px; }
.comunidad__gratis { display: inline-block; margin-top: 4px; padding: 8px 14px; border: 2px dashed var(--verde); border-radius: 12px; font-size: 1rem; }
.ranking__nota { margin-bottom: 10px; padding: 10px 14px; background: var(--verde); color: var(--crema); border-radius: 12px; font-size: .9375rem; }
.vota.is-pocos .boleta .cnt, .vota.is-pocos .boleta__bar, .vota.is-pocos .ranking__n, .vota.is-pocos .ranking__bar, .vota.is-pocos .ranking__pos, .vota.is-pocos .boleta .rk { visibility: hidden; }
@media (max-width: 760px) { .tabbar { grid-template-columns: 1fr 1.2fr 1fr 52px; } }
.tabbar__wa { display: grid; place-items: center; color: #25D366; }
.tabbar__wa svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .hero__que { font-size: .9375rem; } }

/* ===== RONDA 8 ===== */
/* Manifiesto escalonado como antes, tamaño intermedio, "arte" más grande */
h2.manif__q { font-size: clamp(2.8rem, 7.6vw, 7.8rem); }
.manif__q .l:nth-child(even) { padding-left: .7em; }
.manif__q .rota { font-size: 1.22em; line-height: .9; vertical-align: -.06em; }
@media (min-width: 961px) { .manif__q, .manif__lede { max-width: min(66vw, 900px); } }
@media (max-width: 760px) { .manif__q .l:nth-child(even) { padding-left: .45em; } }

/* Carta agotada: naranja del branding con sticker */
.card--agotada { cursor: not-allowed; }
.card--agotada .card__back { background-color: #E2692D; color: var(--verde); --tex: var(--verde); --ic-d: var(--verde); }
.card--agotada .card__back .card__ic { opacity: .35; }
.card__sold { position: absolute; z-index: 3; left: 50%; top: 42%; translate: -50% -50%; rotate: -14deg; padding: 6px 10px; background: #F5C542; color: var(--verde); border: 2px solid var(--verde); border-radius: 6px; font-size: clamp(.75rem, 1.2vw, .9375rem); font-weight: 800; letter-spacing: .04em; white-space: nowrap; box-shadow: 2px 3px 0 var(--verde); }

/* Reel de Instagram */
.reel { display: flex; align-items: center; gap: 14px; width: fit-content; padding: 10px 20px 10px 10px; border: 2px solid var(--verde); border-radius: 999px; color: var(--verde); text-decoration: none; background: rgba(255, 255, 255, .25); transition: transform .2s, background .2s; }
.reel:hover, .reel:focus-visible { transform: rotate(-1.5deg); background: var(--verde); color: var(--lavanda); }
.reel__play { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #F5C542, #E2692D 45%, #9B6FD6); color: #fff; flex: none; }
.reel__play svg { width: 22px; height: 22px; }
.reel__txt { display: grid; gap: 3px; }
.reel__txt .mono { font-size: .6875rem; }
.reel__txt strong { font-size: 1.125rem; line-height: 1; }

/* Ícono de sobre junto al título de la invitación */
.sobre-ic { width: clamp(64px, 7vw, 92px); height: auto; margin-bottom: 8px; rotate: -8deg; animation: sobreFlota 3.2s ease-in-out infinite; }
@keyframes sobreFlota { 50% { translate: 0 -8px; rotate: -3deg; } }

/* Contraseña de la semana: más chica, casi cuadrada */
.fosforo-wrap { max-width: 280px; gap: 12px; align-self: center; }
.fosforo { aspect-ratio: 1 / 1.05; border-radius: 16px; }
.fosforo__top { left: 14px; right: 14px; top: 12px; font-size: .625rem; }
.fosforo__top svg { width: 20px; height: 20px; }
.fosforo__msg { top: 24%; left: 14px; right: 14px; gap: 6px; }
.fosforo__palabra { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.fosforo__nota { font-size: .8125rem; }
.fosforo__para { font-size: .625rem; }
.fosforo__caja { left: 12px; right: 12px; bottom: 12px; height: 46px; }
.fosforo__palito { width: 112px; height: 18px; top: 6px; left: 10px; }
.fosforo__llama { left: 110px; top: -36px; width: 26px; height: 40px; }
.fosforo__lija { bottom: 7px; height: 9px; }
.fosforo__sello { font-size: .6875rem; top: 12%; }
@media (prefers-reduced-motion: reduce) { .sobre-ic { animation: none; } }
.reel[hidden] { display: none; }
/* Fecha especial (función fuera del jueves) */
.card__especial { position: absolute; z-index: 3; left: 50%; top: -10px; translate: -50% 0; padding: 4px 8px; background: var(--lavanda); color: var(--verde); border: 2px solid var(--verde); border-radius: 999px; font-size: clamp(.5625rem, .9vw, .6875rem); font-weight: 800; white-space: nowrap; pointer-events: none; }
.card--especial[aria-pressed="true"] .card__especial { opacity: 0; }

/* Nada se sale por los costados en celular (la tercera carta girada empujaba 4px) */
.magia { overflow-x: hidden; }
@supports (overflow: clip) { .magia { overflow-x: clip; } }

/* ===== RONDA 9 ===== */
/* Portada: el texto no queda debajo del logo de arriba */
.hero__copy { padding-top: clamp(104px, 15vh, 130px); gap: clamp(10px, 2.2vh, 24px); }
.hero__title { font-size: min(12vw, 14.6vh); }
.hero__que { font-size: clamp(1rem, 1.6vw, 1.3rem); }

/* Siempre curvas entre secciones: que nada recorte las ondas */
.manif, .comunidad { overflow: visible; overflow-x: hidden; }
@supports (overflow: clip) { .manif, .comunidad { overflow-x: clip; overflow-y: visible; } }
.manif .edge, .comunidad .edge, .pistas .edge { z-index: 3; }
.pistas { position: relative; }

/* Sello del manifiesto en naranja */
.sello__txt { fill: #E8956B; }
.sello__aro { stroke: #E8956B; opacity: .8; }
.sello__flor { color: #E2692D; }

/* "Algo ya apareció." con fundido lento */
.magia__sub { transition: opacity 1.6s ease, filter 1.6s ease, translate 1.6s ease; }
.magia__sub.is-oculto { opacity: 0; filter: blur(6px); translate: 0 8px; }

/* Encuesta en vivo, separada de la tilde de "Tú" */
.vota__live { margin-bottom: clamp(14px, 2vw, 24px); }
.vota__head { padding-top: clamp(6px, 1vw, 16px); }

/* Sobre a la derecha de "Recibe tu" */
.comunidad h2 .sobre-ic { display: inline-block; width: .9em; height: auto; margin: 0 0 0 .12em; vertical-align: -.02em; rotate: -8deg; animation: sobreFlota 3.2s ease-in-out infinite; }

/* ===== RONDA 10: textos ===== */
.manif__poema { line-height: 1.55; }
.magia__aparecete { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1; color: var(--verde); rotate: -2deg; width: fit-content; }

/* ===== RONDA 11 ===== */
/* Barra de abajo: escondida al inicio, entra después de "Algo está por aparecer" */
.tabbar { transform: translateY(115%); transition: transform .6s cubic-bezier(.2, .9, .25, 1); }
.tabbar.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .tabbar { transition: none; } }

/* Sello del manifiesto en verde lima, más chico */
.sello { width: clamp(200px, 22vw, 320px); }
.sello__txt { fill: var(--lima); }
.sello__aro { stroke: var(--lima); opacity: .7; }
.sello__flor { color: var(--lima); }
@media (max-width: 960px) { .sello { width: min(230px, 64vw); } }

/* ===== RONDA 12: próximos eventos y comunidad ===== */
.proximos__kicker { color: var(--lavanda); }
.proximos .casa__intro { margin-top: 10px; }
.proximos__cta { margin-top: clamp(22px, 3vw, 36px); font-size: 1.0625rem; }
.proximos__cta a { font-weight: 700; text-underline-offset: 3px; }
.proximos .rows__s { color: inherit; opacity: .85; }
/* Intereses: casillas chiquitas */
.form__intereses { border: 0; padding: 0; margin: 0; }
.form__intereses legend { font: 500 .75rem/1 var(--mono); text-transform: uppercase; margin-bottom: 8px; }
.form__intereses .form__chips { gap: 6px; margin-top: 0; }
.form__intereses .form__chips span { min-height: 34px; padding: 5px 12px; font-size: .875rem; border-width: 1.5px; }
@media (max-width: 760px) {
  .tabbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) 46px; gap: 4px; }
  .tabbar a { font-size: .75rem; min-width: 0; overflow: hidden; }
}

/* ===== RONDA 14 ===== */
/* La casita aparece dentro de la escena del umbral, al centro, apenas todo es morado */
.hero__aparece { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 18px; pointer-events: none; color: var(--verde); }
.hero__aparece .aparece__txt { color: var(--verde); }
.aparece__txt .ap-l { transition: opacity .35s ease; }

/* Linterna: el sapo blanco y "locación secreta" */
.h-blanco { filter: brightness(0) invert(1); }

/* Nubes escondidas */
.nube-btn { position: absolute; z-index: 3; padding: 0; border: 0; background: none; cursor: pointer; color: var(--crema); --nube-ink: var(--verde); }
.nube-btn svg { display: block; width: 100%; height: auto; aspect-ratio: 1120 / 760; }
.hero__hidden .nube-btn { pointer-events: auto; translate: -50% 0; }
.magia__intro { position: relative; }
.nube-btn--magia { left: -46px; top: -34px; width: 96px; opacity: .2; color: var(--crema); animation: nubeFlota 6s ease-in-out infinite; }
.nube-btn--proximos { position: relative; display: block; width: 42px; margin: 14px 0 -6px auto; opacity: .16; color: var(--crema); }
.nube-btn:hover, .nube-btn:focus-visible { opacity: .5; }
.manif__nube { pointer-events: auto; cursor: pointer; }
.foot__nube { cursor: pointer; }
.is-hallada { opacity: .9 !important; }
@keyframes nubeFlota { 50% { translate: 10px -6px; } }
.nube__aviso { position: fixed; left: 50%; bottom: 96px; z-index: 70; translate: -50% 12px; padding: 10px 18px; border-radius: 999px; background: var(--verde); color: var(--lima); font-size: .8125rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s; }
.nube__aviso.is-on { opacity: 1; translate: -50% 0; }
@media (prefers-reduced-motion: reduce) { .nube-btn--magia { animation: none; } }

/* Pistas: la tercera borrosa hasta encontrar las nubes */
.pista3.is-locked .pista__t { filter: blur(7px); user-select: none; }
.pistas__nubes { margin-top: 10px; font-size: .875rem; opacity: .8; }
.pistas__wow { margin-top: 10px; color: var(--lavanda); font-style: italic; }

/* Manifiesto: rueda mucho más grande, se ve 3/4; textos en tres líneas */
@media (min-width: 961px) {
  .sello { width: clamp(400px, 42vw, 660px); top: 4%; translate: none; right: calc(clamp(400px, 42vw, 660px) * -.25); }
}
@media (min-width: 1180px) {
  .manif__lede { max-width: min(68vw, 980px); }
  .manif__poema { white-space: nowrap; }
}

/* Magia en mi casa: descripción en tres líneas */
.magia__desc { white-space: pre-line; }
@media (min-width: 961px) { .magia__desc { font-size: clamp(1.05rem, 1.4vw, 1.3rem); } }

/* Próximos eventos */
.proximos__kicker { margin-bottom: clamp(14px, 1.6vw, 24px); }
.proximos .rows__t { font-size: clamp(3rem, 10vw, 9.5rem); }
.proximos .rows a { justify-content: flex-start; column-gap: clamp(20px, 3vw, 48px); }
.proximos .rows__s { margin-left: 0; text-align: left; font-size: 1rem; max-width: 30ch; }
@media (min-width: 1180px) { .comunidad__aviso { white-space: nowrap; max-width: none; } }

/* ===== RONDA 15 ===== */
/* "Algo está por aparecer" se va al volver a subir */
.aparece__txt.is-oculto .ap-l { opacity: 0 !important; }
/* Sapo de la linterna: crema como el ojo, con ojos y boca visibles */
.h-blanco { filter: grayscale(1) sepia(.35) brightness(1.55) contrast(1.15); }
/* Nube sobre la i de "espacio" */
.hero__i { display: inline-block; }
/* Manifiesto (computadora): la nube abajo, lejos de la rueda */
@media (min-width: 961px) { .manif__nube { top: auto; bottom: 10%; right: 3vw; width: clamp(200px, 24vw, 380px); } }
/* Magia: "Algo ya apareció" y su nube un poco más arriba, separados del título */
.magia__sub { margin: -22px 0 16px; }
.nube-btn--magia { top: -60px; }
/* Próximos eventos: textos a la derecha, sección más corta */
.proximos .rows a { justify-content: space-between; }
.proximos .rows__s { margin-left: auto; text-align: right; max-width: 30ch; }
.proximos { padding-bottom: clamp(48px, 6vw, 84px); }
.proximos__cta { margin-top: 12px; }
.nube-btn--proximos { position: absolute; right: var(--gutter); bottom: clamp(18px, 3vw, 34px); margin: 0; }
@media (max-width: 760px) { .proximos .rows__s { margin-left: 0; text-align: left; } }

/* ===== RONDA 16 ===== */
.h-blanco { filter: none; }
/* Nubes más fáciles de tocar: área de clic más grande que el dibujo */
.manif__nube { z-index: 2; }
.hero__hidden .nube-btn { padding: 14px; box-sizing: content-box; margin: -14px 0 0; }
.nube-btn--proximos { padding: 10px; box-sizing: content-box; }

/* Próximos eventos: un poco más de aire al final */
.proximos { padding-bottom: clamp(80px, 9vw, 130px); }
.edge { pointer-events: none; }
.nube-btn--proximos { bottom: calc(var(--edge) + 6px); }

/* ===== RONDA 17: ajustes de celular ===== */
@media (max-width: 760px) {
  /* La portada ocupa toda la pantalla (la barra de abajo aparece recién después), así el morado la llena entera */
  .hero { height: 100vh; height: 100svh; }
  /* El umbral un poco más abajo, separado del logo */
  .door { top: 15%; }
  /* Manifiesto: la rueda chica, a la derecha, se ve solo la mitad; la nube abajo, junto al final del texto */
  .sello { position: absolute; top: 70px; right: -90px; width: 180px; margin: 0; translate: none; z-index: 0; }
  .manif__nube { top: auto; bottom: 5%; right: 4%; width: 150px; }
  /* Próximos eventos: textos de cada actividad mucho más chicos */
  .proximos .rows__s { font-size: .6875rem; line-height: 1.35; }
}
/* Magia: la nube más arriba, sin tocar "Algo ya apareció" */
.nube-btn--magia { top: -112px; left: -18px; }
/* Al tocar una actividad en celular no aparece el destello blanco */
.rows a { -webkit-tap-highlight-color: transparent; }
.rows a:focus:not(:focus-visible) { outline: none; }
@media (hover: none) { .rows a:hover .rows__t { transform: none; } }

/* ===== RONDA 18 ===== */
/* La casita de la portada solo existe con animaciones; si no, taparía el título */
.hero__aparece { visibility: hidden; }
.hero__aparece.is-viva { visibility: visible; }
/* "Ya eres parte", arriba del formulario */
.ya-parte { width: fit-content; margin: 4px 0 18px; padding: 8px 16px; border: 3px solid #A83E0C; border-radius: 10px; color: #A83E0C; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; }
.ya-parte[hidden], .fosforo__luego[hidden], #fosforoBtn[hidden] { display: none; }
/* Oráculo ya raspado */
.fosforo__luego { font-size: .75rem; text-align: center; }
.fosforo.is-lit .fosforo__caja { cursor: default; touch-action: auto; }

/* ===== RONDA 19: loader del umbral y forma con fotos que cambia ===== */
/* Loader: solo el umbral. Se pinta de morado mientras carga, se enciende la luz y se abre */
.loader { display: none; }
.cargando, .cargando body { overflow: hidden; }
.cargando .loader, .loader.is-saliendo { display: block; position: fixed; inset: 0; z-index: 9999; background: var(--verde); }
.loader__door { position: absolute; left: 50%; top: 50%; width: min(44vh, 62vw); aspect-ratio: 3 / 4; translate: -38% -46%; perspective: 900px; }
.loader__luz { position: absolute; left: -3.333%; top: 0; width: 176.667%; height: 145%; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.loader__glow { position: absolute; left: -14%; top: -8%; width: 56%; height: 96%; background: radial-gradient(closest-side, rgba(199, 155, 245, .5), transparent); filter: blur(26px); opacity: 0; transition: opacity 1s ease; }
.loader__hueco, .loader__leaf, .loader__borde { position: absolute; left: 0; top: 0; width: 28%; height: 75%; }
.loader__hueco, .loader__leaf { clip-path: polygon(0 19%, 100% 0, 100% 83.7%, 0 100%); }
.loader__hueco { background: radial-gradient(ellipse at 30% 55%, #FFFFFF, #F4E6CC 45%, #DCC6FF); opacity: 0; }
.loader__leaf { background: rgba(199, 166, 255, .08); transform-origin: 0 50%; }
.loader__pintura { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 100%);
  background-color: #C79BF5;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(240, 225, 255, .45) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .88 0 0 0 0 1 0 0 0 2.4 -1.2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 -2px 10px rgba(220, 198, 255, .9); }
.loader__borde { overflow: visible; }
.loader__borde polygon { fill: none; stroke: var(--lavanda); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.loader.is-luz .loader__luz, .loader.is-luz .loader__glow { opacity: 1; }
.loader.is-luz .loader__pintura { box-shadow: none; }
.loader.is-abierta .loader__hueco { opacity: 1; transition: opacity .25s ease; }
.loader.is-abierta .loader__leaf { transform: rotateY(-78deg); transition: transform .8s cubic-bezier(.6, 0, .2, 1); }
.loader.is-abierta .loader__borde { opacity: 0; transition: opacity .3s ease; }
.loader.is-saliendo .loader__door { scale: 14; transition: scale 1s cubic-bezier(.7, 0, .3, 1); transform-origin: 14% 40%; }
.loader.is-saliendo { opacity: 0; transition: opacity .55s ease .45s; pointer-events: none; }

/* Portada: la forma con fotos a la derecha, en lugar del umbral */
.forma { position: absolute; right: 4vw; top: 50%; translate: 0 -50%; width: min(66vh, 40vw); aspect-ratio: 1; margin: 0; pointer-events: none; }
.forma__svg { width: 100%; height: 100%; overflow: visible; }
.forma__fondo { fill: var(--lavanda); transition: fill .8s ease; }
@media (max-width: 760px) {
  .forma { right: -6vw; top: 9%; translate: none; width: 72vw; }
}
