/* MACHA v2 — editorial sensual + cartelera de club + pop retro como firma */
:root {
  --ink: #171315;
  --cream: #FFF2DC;
  --cream-2: #F7E6CC;
  --magenta: #E93883;
  --hot: #FF5C9A;
  --coral: #FF5D4A;
  --violet: #5A39A7;
  --indigo: #292057;
  --yellow: #FFD35A;
  --lila: #D9C3E8;

  --grad: linear-gradient(100deg, var(--magenta), var(--coral));
  --f: 'Bricolage Grotesque', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

/* Titulares: la misma familia, comprimida y pesada (cartelera de club) */
.cond {
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -0.01em;
}
.h-xl { font-size: clamp(3.2rem, 8.2vw, 9.4rem); }
.h-l { font-size: clamp(2.8rem, 7vw, 6.6rem); }
.h-m { font-size: clamp(2rem, 4vw, 3.4rem); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 52ch; }
.small { font-size: .9rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; padding: .85em 1.5em;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--ink); color: var(--cream);
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--hot { background: var(--hot); color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--sm { padding: .55em 1.1em; font-size: .92rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Puerta +18 ---------- */
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: var(--ink); }
.gate[hidden] { display: none; }
.gate__bg { position: absolute; inset: 0; background: radial-gradient(circle at 30% 35%, var(--magenta), transparent 55%), radial-gradient(circle at 72% 70%, var(--coral), transparent 50%), var(--indigo); filter: blur(40px); opacity: .7; transform: scale(1.1); }
.gate__card { position: relative; background: var(--cream); border-radius: 28px; max-width: 420px; width: 100%; padding: 32px 28px; text-align: center; }
.gate__card img { width: 200px; margin: 0 auto 18px; }
.gate__card p { margin-bottom: 22px; }
.gate__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .3s, color .3s, top .3s; color: var(--cream); }
.hdr.is-solid { background: color-mix(in srgb, var(--cream) 94%, transparent); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.hdr__logo img { height: 44px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
.hdr.is-solid .hdr__logo img { filter: none; }
.hdr__links { display: flex; gap: 26px; list-style: none; margin-left: auto; }
.hdr__links a { text-decoration: none; font-weight: 650; }
.hdr__links a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.hdr__toggle { display: none; margin-left: auto; background: none; border: 0; font-weight: 700; cursor: pointer; padding: 8px; }
@media (max-width: 1180px) {
  .hdr__toggle { display: block; }
  .hdr .btn { display: none; }
  .hdr__links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); color: var(--ink); padding: 8px var(--gutter) 20px; }
  .hdr__links.is-open { display: flex; }
  .hdr__links a { display: block; padding: 12px 0; font-size: 1.3rem; }
}

/* ---------- Hero: tríptico ---------- */
.hero { position: relative; min-height: max(660px, 100svh); color: var(--cream); background: var(--ink); overflow: hidden; }
.hero__photos { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 3px; }
.hero__photos figure { position: relative; overflow: hidden; }
.hero__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; animation: slowzoom 18s var(--ease) both; transition: opacity 1.4s ease; }
.hero__photos img.is-entering { opacity: 0; }
.hero__photos figcaption { transition: opacity .6s; }
.hero__photos figcaption { position: absolute; top: 112px; left: 16px; font-size: .85rem; font-weight: 600; opacity: .9; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,19,21,.4) 0%, rgba(23,19,21,0) 25%, rgba(23,19,21,.1) 50%, rgba(23,19,21,.88) 100%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; min-height: max(660px, 100svh); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding-bottom: clamp(28px, 5vw, 56px); }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { display: inline-block; animation: focusin 1.1s var(--ease) both; }
.hero h1 span:nth-child(2) { animation-delay: .12s; }
.hero h1 span:nth-child(3) { animation-delay: .24s; }
.hero h1 span:nth-child(4) { animation-delay: .36s; }
.hero h1 span:nth-child(5) { animation-delay: .48s; }
.hero h1 span:nth-child(6) { animation-delay: .6s; }
.hero h1 span:nth-child(7) { animation-delay: .72s; }
@keyframes focusin { from { filter: blur(18px); opacity: 0; transform: translateY(12px); } to { filter: blur(0); opacity: 1; transform: none; } }
.hero__sub { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero__sub p { max-width: 44ch; font-size: 1.1rem; }
.hero__sticker { display: block; width: clamp(170px, 16vw, 250px); margin: 0 0 18px -6px; transform: rotate(-6deg); transform-origin: left bottom; filter: drop-shadow(0 8px 24px rgba(0,0,0,.4)); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(-3deg) scale(1.04); } }

/* Ticket estilo app de eventos */
.ticket { background: var(--cream); color: var(--ink); border-radius: 22px; width: min(370px, 100%); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ticket__top { display: grid; grid-template-columns: 84px 1fr; }
.ticket__img { aspect-ratio: 3/4; object-fit: cover; object-position: 50% 20%; width: 100%; height: 100%; }
.ticket__body { padding: 14px 16px; }
.ticket__k { font-size: .8rem; font-weight: 700; color: var(--magenta); }
.ticket__name { font-size: 1.7rem; margin: 4px 0 6px; }
.ticket__meta { font-size: .9rem; line-height: 1.35; }
.ticket__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.seats { display: flex; gap: 5px; align-items: center; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.seat { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.seat.is-taken { background: var(--ink); }

@media (max-width: 900px) {
  .hero__photos { grid-template-columns: 1fr; }
  .hero__photos figure:not(.is-main) { display: none; }
  .hero__photos figcaption { display: none; }
  .hero__content { grid-template-columns: 1fr; padding-top: 300px; }
  .hero__sticker { display: none; }
  .hero::after { background: linear-gradient(180deg, rgba(23,19,21,.35) 0%, rgba(23,19,21,0) 25%, rgba(23,19,21,.55) 55%, rgba(23,19,21,.92) 100%); }
}

/* ---------- Cinta ---------- */
.ribbon { background: var(--grad); color: var(--cream); overflow: hidden; }
.ribbon__track { display: flex; width: max-content; animation: ribbon 40s linear infinite; }
.ribbon__track span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px 14px 0; font-size: clamp(1.4rem, 2.4vw, 2rem); white-space: nowrap; }
.ribbon__track svg { width: 22px; height: 22px; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(72px, 10vw, 140px) 0; }
.sec--ink { background: var(--ink); color: var(--cream); }
.sec--indigo { background: var(--indigo); color: var(--cream); }
.sec--magenta { background: var(--magenta); color: var(--cream); }
.sec--cream2 { background: var(--cream-2); }
.sec__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
@media (max-width: 900px) { .sec__head { grid-template-columns: 1fr; } }

/* Qué es */
.statement { font-size: clamp(2.6rem, 7.5vw, 7.4rem); }
.statement span { display: block; }
.statement span + span { color: var(--magenta); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
.about p + p { margin-top: 14px; }
.about__def { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.35; font-weight: 600; }
.nots { list-style: none; display: grid; gap: 4px; font-size: 1.1rem; }
.nots li { padding: 10px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.nots s { text-decoration-thickness: 3px; text-decoration-color: var(--magenta); }
.nots li:last-child { border: 0; font-weight: 750; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

.diptych { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: clamp(56px, 8vw, 110px); position: relative; }
.diptych figure { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.diptych img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.2s var(--ease); }
.diptych figure:hover img { transform: scale(1.03); }
.diptych figcaption { position: absolute; left: 18px; bottom: 16px; color: var(--cream); font-weight: 650; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.diptych__over { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--cream); pointer-events: none; text-shadow: 0 4px 40px rgba(0,0,0,.5); font-size: clamp(2.2rem, 6vw, 5.6rem); }
@media (max-width: 640px) { .diptych figure { aspect-ratio: 3/5; } }

.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: clamp(56px, 7vw, 96px); }
.pillar svg { width: 40px; height: 40px; margin-bottom: 12px; }
.pillar h3 { font-size: 2.1rem; margin-bottom: 6px; }
.pillar p { font-size: .97rem; }
.pillars__x { grid-column: 1 / -1; padding-top: 18px; border-top: 2px solid var(--ink); font-weight: 650; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }

/* ---------- Cartelera ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; border-radius: 999px; padding: .5em 1.05em; font-weight: 650; cursor: pointer; background: color-mix(in srgb, currentColor 12%, transparent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.sec--indigo .chip[aria-pressed="true"], .sec--ink .chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); }

.lineup { list-style: none; border-top: 1.5px solid color-mix(in srgb, var(--cream) 25%, transparent); }
.row {
  display: grid; grid-template-columns: 110px 96px 1fr auto auto; gap: 24px; align-items: center;
  padding: 18px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--cream) 25%, transparent);
  position: relative;
}
.row__date { line-height: .9; }
.row__date b { display: block; font-size: 3.4rem; }
.row__date span { font-size: .95rem; font-weight: 600; opacity: .8; text-transform: lowercase; }
.row__flyer { position: relative; width: 96px; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--fc, var(--hot)); }
.row__flyer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.1); }
.row__flyer::after { content: ""; position: absolute; inset: 0; background: var(--fc, var(--hot)); mix-blend-mode: multiply; }
.row__flyer svg { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; z-index: 1; }
.row__title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.row__meta { font-size: .95rem; opacity: .85; margin-top: 4px; }
.row__fmt { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--fc, var(--hot)); color: var(--ink); margin-bottom: 8px; }
.row__fmt.is-dark { color: var(--cream); }
.row__state { text-align: right; min-width: 130px; }
.row__state b { display: block; font-size: 1.6rem; }
.row__state span { font-size: .88rem; font-weight: 650; }
.st-few { color: var(--yellow); }
.st-open { color: #9FF0C1; }
.st-pre { color: var(--lila); }
.st-full { color: var(--hot); }
.row.is-full .row__flyer, .row.is-full .row__main { opacity: .5; }
.stamp { position: absolute; left: 116px; top: 50%; transform: translateY(-50%) rotate(-12deg); z-index: 2; border: 3px solid var(--hot); color: var(--hot); border-radius: 8px; padding: 2px 8px 0; font-size: 1.4rem; background: var(--indigo); }
@media (max-width: 900px) {
  .row { grid-template-columns: 72px 1fr; gap: 8px 14px; }
  .row__date b { font-size: 2.6rem; }
  .row__flyer { display: none; }
  .row__state { text-align: left; grid-column: 2; min-width: 0; }
  .row__state b { display: inline; font-size: 1.25rem; margin-right: 8px; }
  .row .btn { grid-column: 2; justify-self: start; }
  .row__date { grid-row: span 4; align-self: start; }
  .stamp { position: static; grid-column: 2; justify-self: start; transform: rotate(-4deg); margin: 2px 0 4px; font-size: 1.15rem; }
}

/* ---------- Experiencias ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.poster { border-radius: 24px; overflow: hidden; background: var(--pc); color: var(--ink); display: flex; flex-direction: column; }
.poster--dark { color: var(--cream); }
.poster__img { aspect-ratio: 4/3.8; overflow: hidden; position: relative; }
.poster__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.poster__img--sym { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--hot) 60%, transparent), transparent 62%), var(--indigo); }
.poster__img--sym svg { width: 38%; height: auto; }
.poster__img--sym p { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-weight: 650; color: var(--cream); }
.poster__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.poster__depth { font-weight: 700; font-size: .95rem; }
.poster h3 { font-size: clamp(2.8rem, 4.5vw, 4rem); }
.poster dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font-size: .95rem; }
.poster dt { opacity: .7; }
.poster__price { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 2px solid currentColor; }
.poster__price b { font-size: 3rem; }
.single { margin-top: 16px; border-radius: 24px; background: var(--cream-2); padding: 24px 26px; display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.single h3 { font-size: 2.4rem; }
@media (max-width: 980px) { .formats { grid-template-columns: 1fr; } }

/* ---------- Quiz ---------- */
.quiz { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.quiz__card { background: var(--cream); color: var(--ink); border-radius: 24px; padding: clamp(22px, 3vw, 36px); min-height: 360px; }
.quiz__step { font-size: .9rem; font-weight: 700; color: var(--magenta); margin-bottom: 8px; }
.quiz__q { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 20px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opts button { text-align: left; border: 2px solid var(--ink); background: transparent; border-radius: 16px; padding: 14px 18px; font-weight: 600; cursor: pointer; transition: background .15s; }
.quiz__opts button:hover { background: var(--yellow); }
.quiz__res h3 { font-size: 3.6rem; margin: 6px 0 10px; }
.quiz__res p { margin-bottom: 18px; }
.quiz__res .btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .quiz { grid-template-columns: 1fr; } }

/* ---------- Mundos (galería horizontal) ---------- */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: min(46vh, 76vw); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 0 var(--gutter) 18px; scrollbar-width: thin; scrollbar-color: var(--magenta) transparent; }
.reel__item { scroll-snap-align: start; border: 0; background: none; padding: 0; text-align: left; cursor: zoom-in; color: inherit; }
.reel__media { aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: #2a2226; position: relative; }
.reel__media img, .reel__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1s var(--ease); }
.reel__item:hover .reel__media img { transform: scale(1.04); }
.reel__cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .95rem; }
.reel__cap b { font-weight: 750; }
.reel__play { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; font-size: .9rem; }
.reel__nav { display: flex; gap: 8px; }
.reel__nav button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid currentColor; background: none; cursor: pointer; font-size: 1.2rem; font-weight: 700; }
.gal__bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 26px; }
.gal__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.empty { padding: 40px; border: 2px dashed currentColor; border-radius: 16px; text-align: center; }

/* ---------- Método y equipo ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); counter-reset: s; }
.steps li { counter-increment: s; padding: 18px 16px 0 0; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.steps li.is-cam { border-top-color: var(--magenta); }
.steps li.is-cam::before { color: var(--magenta); }
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps p { font-size: .93rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; gap: 20px; } }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(64px, 8vw, 110px); }
.team h3 { font-size: clamp(3rem, 5vw, 4.6rem); }
.team .role { font-weight: 700; color: var(--magenta); margin: 6px 0 8px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 96px); }
.channels { display: grid; gap: 4px; margin-top: 28px; }
.channel { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 2px solid color-mix(in srgb, var(--cream) 45%, transparent); text-decoration: none; font-size: 1.3rem; font-weight: 700; }
.channel:hover { border-color: var(--cream); }
.form { display: grid; gap: 14px; }
.form--2 { grid-template-columns: 1fr 1fr; }
.form--2 .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-radius: 14px; padding: .8em 1em; background: var(--cream); color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .86rem; opacity: .8; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.err { font-weight: 700; font-size: .93rem; color: #B3122E; }
.sec--magenta .err { color: var(--yellow); }
@media (max-width: 900px) { .contact, .form--2 { grid-template-columns: 1fr; } }

.faq { max-width: 900px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { padding: 18px 0; font-size: 1.25rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 18px; max-width: 68ch; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--cream); padding: 64px 0 32px; }
.foot__big { width: min(100%, 720px); margin-bottom: 40px; }
.foot__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.foot h4 { font-size: 1rem; margin-bottom: 8px; color: var(--hot); }
.foot ul { list-style: none; display: grid; gap: 4px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__legal { margin-top: 40px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--cream) 25%, transparent); font-size: .85rem; opacity: .75; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Diálogos ---------- */
dialog { border: 0; border-radius: 26px; background: var(--cream); color: var(--ink); padding: 0; width: min(680px, calc(100vw - 24px)); margin: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden; }
dialog::backdrop { background: rgba(23,19,21,.75); backdrop-filter: blur(4px); }
.dlg__hero { position: relative; height: 190px; overflow: hidden; background: var(--fc, var(--hot)); }
.dlg__hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.dlg__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(23,19,21,.7)); }
.dlg__hero h3 { position: absolute; z-index: 1; left: 22px; bottom: 14px; right: 70px; color: var(--cream); font-size: 2.6rem; }
.dlg__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; }
.dlg__head h3 { font-size: 2.2rem; }
.dlg__x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); cursor: pointer; font-weight: 800; }
.dlg__head .dlg__x { position: static; background: var(--cream-2); }
.dlg__body { padding: 20px 22px 24px; max-height: min(66vh, 680px); overflow: auto; }
.dlg__body .field input, .dlg__body .field select, .dlg__body .field textarea { background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 25%, transparent); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-bottom: 16px; }
.facts dt { font-weight: 700; }
.progress { display: flex; gap: 6px; margin-bottom: 16px; }
.progress i { height: 4px; flex: 1; border-radius: 4px; background: color-mix(in srgb, var(--ink) 15%, transparent); }
.progress i.on { background: var(--magenta); }
.done { text-align: center; padding: 6px 0; }
.done img { width: 96px; margin: 0 auto 10px; }
.done h4 { font-size: 1.4rem; }
.done p { margin: 8px 0 18px; }
.lb { width: min(1000px, calc(100vw - 24px)); background: var(--ink); color: var(--cream); }
.lb__media img, .lb__media video { max-height: 80vh; width: auto; margin: 0 auto; }
.lb .dlg__body { padding: 0 0 16px; text-align: center; max-height: none; }
.lb .dlg__x { background: var(--cream); }
.drop { border: 2px dashed var(--ink); border-radius: 16px; padding: 26px; text-align: center; background: #fff; cursor: pointer; }
.drop.is-over { background: #FFE2EC; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; }
.previews img, .previews video { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 300; transform: translateX(-50%) translateY(calc(100% + 40px)); visibility: hidden; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 12px 22px; font-weight: 700; transition: transform .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translateX(-50%); visibility: visible; }
.proto-flag { position: relative; z-index: 70; background: var(--yellow); color: var(--ink); text-align: center; font-size: .85rem; padding: 6px 16px; font-weight: 600; }
.proto-flag a { font-weight: 750; }

/* ---------- Sesiones con Tom ---------- */
.tom { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.tom__text .lede { margin-top: 18px; }
.tom__list { list-style: none; display: grid; gap: 18px; margin: 32px 0; }
.tom__list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.tom__list svg { width: 30px; height: 30px; color: var(--hot); margin-top: 2px; }
.tom__list h3 { font-size: 1.15rem; margin-bottom: 2px; }
.tom__list p { opacity: .85; }
.tom__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.tom__note { margin-top: 14px; opacity: .7; }
.tom__photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 4 / 4.6; }
.tom__photos figure { overflow: hidden; border-radius: 16px; }
.tom__photos figure:first-child { grid-row: span 2; }
.tom__photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 900px) { .tom { grid-template-columns: 1fr; } .tom__photos { order: -1; aspect-ratio: 4 / 3.6; } }

/* ---------- Curso ---------- */
.curso { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.curso__kicker { font-weight: 700; color: var(--magenta); margin-bottom: 12px; }
.curso__list { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.curso__list li { padding: 16px 0; border-bottom: 2px solid var(--ink); }
.curso__list h3 { font-size: 1.2rem; margin-bottom: 2px; }
.curso__list .curso__more { border-bottom: 0; font-weight: 650; color: var(--magenta); }
.btn--discord { background: #5865F2; color: #fff; }
@media (max-width: 900px) { .curso { grid-template-columns: 1fr; } }

/* ---------- Consultas ---------- */
.inq__note { background: color-mix(in srgb, var(--yellow) 55%, var(--cream)); border-radius: 14px; padding: 12px 14px; font-weight: 600; margin-bottom: 16px; }
.inq__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ok { font-weight: 700; color: #1d7a46; }

/* Pantallas muy angostas: los botones largos pueden partir línea */
.tom > *, .curso > * { min-width: 0; }
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
  .ticket__foot { flex-wrap: wrap; }
}

/* Si una sección tiene menos fotos que lugares, el lugar vacío no se muestra */
.sin-foto { display: none !important; }
.tom__photos:has(.sin-foto) { grid-template-rows: 1fr; aspect-ratio: auto; }
.tom__photos:has(.sin-foto) figure { aspect-ratio: 3 / 4; }
.tom__photos:has(.sin-foto) figure:first-child { grid-row: auto; }

/* Retreat: si hay foto, va encima de la luna; el texto queda sobre la foto */
.poster__img--sym img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.poster__img--sym:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(23,19,21,.75)); }
.poster__img--sym p { z-index: 1; }

.gal__nota { margin-top: 14px; max-width: 52ch; font-size: .95rem; opacity: .75; }

/* Ticket de una fecha sin foto: color del formato con su símbolo */
.ticket__img--sym { display: grid; place-items: center; min-height: 100%; }
.ticket__img--sym svg { width: 40px; height: 40px; color: var(--cream); }
/* "Qué es" con una sola foto: ocupa todo el ancho con un encuadre más apaisado */
.diptych:has(.sin-foto) { grid-template-columns: 1fr; }
.diptych:has(.sin-foto) figure { aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .diptych:has(.sin-foto) figure { aspect-ratio: 4 / 5; } }

/* Lo que está marcado como oculto se oculta siempre, aunque tenga estilo de botón */
[hidden] { display: none !important; }

/* Mundos: pestañas por tipo de jornada */
.tabs { display: flex; gap: 4px 26px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 2px solid color-mix(in srgb, var(--cream) 22%, transparent); }
.tab { background: none; border: 0; padding: 10px 0 12px; margin-bottom: -2px; border-bottom: 3px solid transparent; cursor: pointer; color: inherit; opacity: .6;
  font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: .01em; }
.tab:hover { opacity: .9; }
.tab[aria-selected="true"] { opacity: 1; border-bottom-color: var(--hot); }

/* "Mismo día. Otro mundo." sin ninguna foto disponible: la sección de fotos no se muestra */
.diptych:not(:has(figure:not(.sin-foto))) { display: none; }

/* ---------- Una creadora, muchos mundos ---------- */
.versatil { margin-top: clamp(56px, 8vw, 110px); }
.versatil__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 28px; }
.versatil__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 45%), 1fr)); gap: 10px; }
.versatil__item { border: 0; padding: 0; background: #2a2226; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; cursor: zoom-in; }
.versatil__item:nth-child(even) { transform: translateY(22px); }
.versatil__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.versatil__item:hover img { transform: scale(1.04); }
.versatil__grid { padding-bottom: 22px; }
@media (max-width: 760px) { .versatil__head { grid-template-columns: 1fr; } .versatil__item:nth-child(even) { transform: translateY(14px); } }

/* ---------- Antes y después ---------- */
.retoque__nota { margin-top: 14px; max-width: 52ch; font-weight: 600; color: var(--magenta); }
.retoque__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 22px; align-items: start; }
.retoque__hint { margin-top: 16px; opacity: .7; }
.ba { margin: 0; }
.ba figcaption { margin-top: 10px; font-weight: 700; }
.ba__box { position: relative; aspect-ratio: 4 / 5; max-height: 82vh; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #2a2226; user-select: none; touch-action: pan-y; }
.ba__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--cream); box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.ba__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; font-weight: 800; letter-spacing: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.ba__lbl { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(23,19,21,.65); color: var(--cream); font-size: .85rem; font-weight: 700; pointer-events: none; }
.ba__lbl--a { left: 14px; }
.ba__lbl--d { right: 14px; background: var(--hot); color: var(--ink); }
.ba__box input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba__box:has(input:focus-visible) { outline: 3px solid var(--magenta); outline-offset: 3px; }

/* Antes y después: el recuadro respeta la proporción de la imagen de después (--r) */
.ba__box { aspect-ratio: var(--r, 4 / 5); width: min(100%, calc(78vh * var(--r, .8))); max-height: none; background: var(--ink); }
.ba__antes.is-completa { object-fit: contain; }                /* la de antes entra entera, sin recorte ni deformación */
.ba__marco { object-fit: cover; filter: blur(26px) brightness(.45) saturate(1.1); transform: scale(1.2); } /* relleno del espacio libre */
.ba--ancho { grid-column: 1 / -1; }                             /* las horizontales usan todo el ancho */

/* "Una creadora, muchos mundos": filas justificadas (el tamaño de cada foto lo calcula app.js) */
.versatil__grid { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 0; }
.versatil__item { aspect-ratio: auto; flex: none; border-radius: 10px; }
.versatil__item:nth-child(even) { transform: none; }

/* ---------- Jornadas que ya hicimos ---------- */
.pasadas { margin-top: clamp(48px, 7vw, 88px); }
.pasadas h3 { margin-bottom: 20px; }
.pasadas__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pasada { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--cream) 7%, transparent); border-left: 4px solid var(--fc); }
.pasada .row__fmt { justify-self: start; margin-bottom: 4px; }
.pasada b { font-size: 1.6rem; line-height: 1; }
.pasada span { font-size: .95rem; opacity: .8; }
.pasada__cuando { font-weight: 650; opacity: 1 !important; }

/* Flyers de las jornadas: se ven con sus colores reales y desde arriba (donde suele ir el título) */
.row__flyer img { filter: none; object-position: 50% 0; }
.row__flyer:has(img)::after { content: none; }
.ticket__img { object-position: 50% 0; }
.dlg__hero img { object-position: 50% 15%; }

/* Pilares en celulares muy angostos: la palabra más larga ("Vulnerabilidad") entra sin salirse */
.pillars { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .pillar h3 { font-size: 1.55rem; overflow-wrap: anywhere; } }
