/* ============ Shizibi ============ */
:root {
  --bg: #140810;        /* negro bordó, la pared del sótano */
  --bg-2: #1f0c17;      /* superficies apenas levantadas */
  --linea: #3b1a2b;
  --tinta: #f7e8ef;
  --apagado: #b897a8;
  --pink: #ff2e7e;
  --cyan: #3fe6f5;
  --ambar: #ffb547;
  --papel: #f1e2da;     /* color de los stickers de la ficha */

  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --texto: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mano: 'Permanent Marker', 'Comic Sans MS', cursive;

  --ancho: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-marco: 14px;      /* el redondeo del marco del logo, a escala botón */

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

/* grano de pared */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p { margin: 0; }
h2 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 860;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.01em;
}

.saltar {
  position: absolute; left: -999px; top: 0;
  background: var(--pink); color: var(--bg); padding: .6rem 1rem; z-index: 100; font-weight: 700;
}
.saltar:focus { left: 1rem; top: 1rem; }

.marcador {
  font-family: var(--mano);
  color: var(--pink);
  font-weight: 400;
}

/* ============ barra ============ */
.barra {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.barra-marca {
  display: flex; align-items: center; gap: .6rem;
  color: var(--tinta); text-decoration: none;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.05rem;
}
.barra nav { margin-left: auto; }
.barra ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.barra nav a { color: var(--apagado); text-decoration: none; font-weight: 600; font-size: .98rem; }
.barra nav a:hover { color: var(--tinta); }
.barra-ig { color: var(--tinta); display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-marco); }
.barra-ig:hover { color: var(--pink); }
.barra-ig svg { width: 24px; height: 24px; }

@media (max-width: 760px) {
  .barra { flex-wrap: wrap; gap: .4rem 1rem; padding-top: .8rem; padding-bottom: .4rem; }
  .barra nav { order: 3; width: 100%; }
  .barra ul { flex-wrap: wrap; gap: .2rem .85rem; padding: .2rem 0; }
  .barra nav a { font-size: .95rem; display: inline-block; padding: .35rem 0; }
  .barra-ig { margin-left: auto; }
}

/* ============ hero ============ */
.hero {
  position: relative;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter) clamp(3rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* la luz del neón sobre la pared */
.hero-luz {
  position: absolute;
  inset: -6rem calc(50% - 50vw) 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 30% 32%, rgb(255 46 126 / .2), transparent 70%),
    radial-gradient(30% 40% at 78% 55%, rgb(63 230 245 / .1), transparent 70%);
  animation: luz 1.4s steps(1) .15s both;
}
.hero-izq { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.hero-logo { line-height: 0; }
.neon { width: 100%; max-width: 680px; height: auto; overflow: visible; }
.neon-glass { fill: rgb(255 46 126 / .035); stroke: none; }

/* encendido: una sola vez, al cargar */
.neon-frame { animation: prender 1.2s linear .1s both; }
.neon-letters { animation: prender 1.4s linear .45s both; }
@keyframes prender {
  0% { opacity: .06; } 6% { opacity: 1; } 9% { opacity: .15; } 15% { opacity: .9; }
  18% { opacity: .2; } 30% { opacity: 1; } 33% { opacity: .55; } 40%, 100% { opacity: 1; }
}
@keyframes luz { 0% { opacity: 0; } 30% { opacity: .4; } 45% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .neon-frame, .neon-letters, .hero-luz { animation: none; }
}

/* próximo show */
.proximo { max-width: 34rem; }
.proximo-titulo {
  font-size: 1rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0;
  color: var(--cyan); margin-bottom: .6rem;
}
.proximo-cuando { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.proximo-dia {
  font-family: var(--display); font-stretch: 125%; font-weight: 860;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.05;
}
.proximo-dia::first-letter { text-transform: uppercase; }
.proximo-falta { color: var(--pink); font-weight: 700; white-space: nowrap; }
.proximo-falta.es-ya { color: var(--ambar); }
.proximo-lugar { font-size: 1.3rem; font-weight: 600; margin-top: .5rem; }
.proximo-extra { color: var(--apagado); }
.proximo .acciones { margin-top: 1.4rem; }

.proximo-vacio { display: flex; gap: 1.2rem; align-items: center; color: var(--apagado); }
.proximo-vacio img { width: 120px; border: 5px solid var(--papel); border-radius: var(--r-marco); transform: rotate(-3deg); flex: none; }

/* afiche */
.poster {
  margin: 0;
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  transform: rotate(1.8deg);
}
.poster img {
  width: 100%;
  border-radius: 3px;
  box-shadow:
    0 30px 60px -10px rgb(0 0 0 / .7),
    -18px -6px 60px -18px rgb(255 46 126 / .55),
    16px 10px 60px -24px rgb(63 230 245 / .4);
}
/* cinta */
.poster::before, .poster::after {
  content: ''; position: absolute; z-index: 2;
  width: 92px; height: 26px;
  background: rgb(241 226 218 / .72);
  box-shadow: 0 1px 2px rgb(0 0 0 / .3);
}
.poster::before { top: -10px; left: 18%; transform: rotate(-6deg); }
.poster::after { top: -8px; right: 14%; transform: rotate(5deg); }
.poster figcaption {
  position: absolute;
  left: -2.8rem; bottom: 2.2rem;
  max-width: 10ch;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1.05;
  transform: rotate(-9deg);
  text-shadow: 0 0 14px rgb(255 46 126 / .6), 0 2px 0 var(--bg);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .poster { width: min(86%, 380px); }
  .poster figcaption { left: auto; right: -1rem; bottom: -1.4rem; max-width: 12ch; }
}

/* ============ botones ============ */
.acciones { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .55rem 1.2rem;
  border: 2px solid var(--pink); border-radius: var(--r-marco);
  background: transparent; color: var(--tinta);
  font: 700 1rem/1 var(--texto); text-decoration: none; cursor: pointer;
  transition: box-shadow .15s, background-color .15s;
}
.btn:hover { box-shadow: 0 0 0 1px var(--pink), 0 0 22px -2px rgb(255 46 126 / .6); text-decoration: none; }
.btn-lleno { background: var(--pink); color: #1a0510; }
.btn-lleno:hover { background: #ff4a90; }
.acciones-chicas .btn { min-height: 42px; padding: .45rem 1rem; font-size: .95rem; }

/* ============ secciones ============ */
.seccion {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  border-top: 1px solid var(--linea);
}
.seccion > h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* fechas */
.fechas { list-style: none; margin: 0; padding: 0; }
.fecha {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--linea);
}
.fecha:first-child { border-top: 1px solid var(--linea); }
.fecha-dia { display: grid; line-height: 1; }
.fecha-num {
  font-family: var(--display); font-stretch: 125%; font-weight: 900;
  font-size: 3.3rem; font-variant-numeric: tabular-nums;
  color: var(--tinta);
  text-shadow: 0 0 18px rgb(255 46 126 / .45);
}
.fecha-mes { color: var(--pink); font-weight: 700; font-size: 1.05rem; margin-top: .25rem; }
.fecha-lugar { font-size: 1.3rem; font-weight: 650; line-height: 1.25; }
.fecha-extra { color: var(--apagado); }
.fecha-extra::first-letter { text-transform: uppercase; }
.fechas-vacio { color: var(--apagado); padding: 1rem 0; }

.pasadas { margin-top: 2rem; }
.pasadas summary {
  cursor: pointer; color: var(--apagado); font-weight: 600; width: fit-content;
  padding: .4rem 0; list-style-position: inside;
}
.pasadas summary:hover { color: var(--tinta); }
.fechas-pasadas .fecha { grid-template-columns: 7.5rem minmax(0, 1fr); opacity: .7; }
.fechas-pasadas .fecha-num { font-size: 2.2rem; text-shadow: none; color: var(--apagado); }
.fechas-pasadas .fecha-mes { color: var(--apagado); }

@media (max-width: 640px) {
  .fecha { grid-template-columns: 4.6rem minmax(0, 1fr); gap: .4rem 1rem; align-items: start; }
  .fecha .acciones { grid-column: 2; margin-top: .6rem; }
  .fecha-num { font-size: 2.5rem; }
  .fechas-pasadas .fecha { grid-template-columns: 4.6rem minmax(0, 1fr); }
}

/* links */
.links {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem;
}
.link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem;
  min-height: 64px; padding: .8rem 1.1rem;
  border: 2px solid var(--linea); border-radius: var(--r-marco);
  color: var(--tinta); text-decoration: none; font-weight: 650; font-size: 1.1rem;
  transition: border-color .15s, box-shadow .15s;
}
.link svg { width: 26px; height: 26px; color: var(--cyan); }
.link-estado { font-size: .9rem; font-weight: 600; color: var(--apagado); }
a.link:hover { border-color: var(--cyan); box-shadow: 0 0 24px -6px rgb(63 230 245 / .55); text-decoration: none; }
a.link:hover .link-estado { color: var(--cyan); }
.link-pronto { color: var(--apagado); border-style: dashed; }
.link-pronto svg { color: var(--apagado); }

/* galería */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  grid-auto-flow: dense;
  gap: .8rem;
}
.tile { margin: 0; position: relative; display: grid; gap: .45rem; align-content: start; }
.tile:first-child { grid-column: span 2; grid-row: span 2; }
.tile button, .tile > a, .tile iframe {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 4 / 3; background: var(--bg-2); border-radius: 6px; overflow: hidden; position: relative;
}
.tile:first-child button, .tile:first-child iframe { aspect-ratio: auto; height: 100%; min-height: 18rem; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile button:hover img { transform: scale(1.03); }
.tile figcaption { color: var(--apagado); font-size: .92rem; line-height: 1.4; }
.tile:first-child { grid-template-rows: 1fr auto; }
.play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px;
  border: 2px solid var(--tinta); border-radius: 50%;
  background: rgb(20 8 16 / .55);
  box-shadow: 0 0 24px rgb(255 46 126 / .6);
}
.play::after {
  content: ''; position: absolute; left: 27px; top: 21px;
  border-left: 20px solid var(--tinta); border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.tile-link a { display: grid; place-items: center; color: var(--cyan); font-weight: 700; }

/* lugares vacíos mientras no haya material */
.tile-hueco > span {
  display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 6px;
  border: 2px dashed var(--linea); color: var(--apagado); font-weight: 600;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgb(255 255 255 / .018) 14px 28px);
}
.tile-hueco:first-child > span { aspect-ratio: auto; height: 100%; min-height: 18rem; }

@media (max-width: 560px) {
  .galeria { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .tile:first-child { grid-row: auto; }
  .tile:first-child button, .tile:first-child iframe, .tile-hueco:first-child > span { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}

/* proyecto */
.proyecto {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.proyecto-texto h2 { margin-bottom: 1.6rem; }
.bio { display: grid; gap: 1rem; max-width: 62ch; }
.bio p:first-child { font-size: 1.25rem; line-height: 1.5; font-weight: 550; }
.bio p + p { color: #e3cfd9; }

.mascota { margin: 0; }
.stickers {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem .8rem;
}
.stickers img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 5px solid var(--papel); border-radius: var(--r-marco);
  box-shadow: 0 10px 22px -8px rgb(0 0 0 / .8);
}
.stickers li:nth-child(1) { transform: rotate(-4deg); }
.stickers li:nth-child(2) { transform: rotate(3deg) translateY(10px); }
.stickers li:nth-child(3) { transform: rotate(-2deg); }
.stickers li:nth-child(4) { transform: rotate(2deg); }
.stickers li:nth-child(5) { transform: rotate(-3deg) translateY(8px); }
.stickers li:nth-child(6) { transform: rotate(4deg); }
.mascota figcaption { margin-top: 1.6rem; color: var(--apagado); }
.mascota .marcador { font-size: 1.3rem; margin-right: .3rem; }

@media (max-width: 860px) {
  .proyecto { grid-template-columns: 1fr; }
  .mascota { max-width: 30rem; }
}

/* ============ pie ============ */
.pie {
  max-width: var(--ancho); margin: 0 auto;
  padding: 3rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--linea);
  display: grid; gap: 1rem; justify-items: start;
  color: var(--apagado);
}
.pie img { width: 150px; }
.pie-chico { display: flex; flex-wrap: wrap; gap: .4rem 2rem; font-size: .9rem; }

/* ============ visor de fotos ============ */
.visor {
  border: 0; padding: 0; background: transparent; color: var(--tinta);
  max-width: min(92vw, 1200px); max-height: 92vh;
}
.visor::backdrop { background: rgb(10 4 8 / .92); }
.visor img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 4px; }
.visor-pie { text-align: center; color: var(--apagado); margin-top: .7rem; }
.visor-cerrar {
  position: fixed; top: 1rem; right: 1rem;
  width: 48px; height: 48px; border-radius: var(--r-marco);
  border: 2px solid var(--pink); background: var(--bg); color: var(--tinta);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}

.noscript { max-width: var(--ancho); margin: 0 auto; padding: 1rem var(--gutter); color: var(--apagado); }

/* ============ 404 ============ */
.perdido {
  min-height: 70vh; max-width: var(--ancho); margin: 0 auto; padding: 3rem var(--gutter);
  display: grid; align-content: center; justify-items: start; gap: 1.4rem;
}
.perdido img { width: 180px; border: 6px solid var(--papel); border-radius: var(--r-marco); transform: rotate(-4deg); }
.perdido h1 {
  font-family: var(--display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4rem); line-height: 1;
}
.perdido p { color: var(--apagado); max-width: 40ch; }
