/* Happy Monstery — cueva. Los colores viven aquí. */
:root {
  --cave-0: #0c0908;
  --cave-1: #16100e;
  --cave-2: #241612;
  --cave-3: #3a261f;
  --ink: #1c120e;
  --paper: #f4ecdc;
  --paper-deep: #e6d7c2;
  --mist: #e7f0ee;
  --mist-dim: #c9d5d1;
  --blood: #e23b2f;
  --blood-deep: #8f241c;
  --gold: #f0b14a;
  --gold-deep: #c4842a;
  --moss: #8ea56a;
  --line: rgba(244, 236, 220, 0.14);
  --shadow: 0.35rem 0.4rem 0 #070504;
  --display: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --hand: "Patrick Hand", "Segoe Print", "Comic Sans MS", cursive;
  --header: 4.25rem;
  --space: clamp(1.1rem, 2.4vw, 1.75rem);
  --max: 72rem;
  color-scheme: dark;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-700.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-900.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/outfit-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-700.woff2") format("woff2");
}

@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/patrickhand-latin.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--mist);
  background-color: var(--cave-0);
  background-image:
    url("../assets/brand/grain.png"),
    radial-gradient(900px 520px at 90% -10%, rgba(226, 59, 47, 0.22), transparent 60%),
    radial-gradient(700px 480px at -10% 18%, rgba(240, 177, 74, 0.08), transparent 55%),
    radial-gradient(800px 500px at 50% 120%, rgba(142, 165, 106, 0.07), transparent 45%);
  background-size: 180px, auto, auto, auto;
  background-blend-mode: overlay, normal, normal, normal;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
}

a:hover {
  color: var(--paper);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--gold);
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.7rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header);
  padding: 0.55rem 1rem;
  background: rgba(12, 9, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.lang {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mist-dim);
  font: 700 0.82rem/1 var(--body);
  letter-spacing: 0.06em;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  min-width: 2.6rem;
  min-height: 2.4rem;
}

.lang button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}

.menu-toggle {
  appearance: none;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.7rem;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--paper);
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: 0.28rem;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
}

.nav {
  display: none;
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.4rem 1rem 1rem;
  background: #0c0908;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1.2rem 2rem rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - var(--header));
  overflow: auto;
}

.nav a {
  color: var(--paper);
  text-decoration: none;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold);
}

@media (min-width: 1040px) {
  .menu-toggle {
    display: none;
  }

  .nav,
  .nav.is-open {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    max-height: none;
    overflow: visible;
    gap: 0.15rem 0.15rem;
    justify-content: flex-end;
  }

  .nav a {
    border: 0;
    padding: 0.4rem 0.45rem;
    font-size: 0.92rem;
    font-weight: 600;
  }
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem 0 2.5rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.8rem;
  font-family: var(--hand);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--gold);
  line-height: 1.2;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--paper);
}

h1 {
  margin: 0 0 1rem;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5.6rem);
  max-width: 11ch;
}

.lede {
  margin: 0 0 1.3rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--mist);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: #ffc56a;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--mist-dim);
  color: var(--paper);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0 0 0.9rem;
  list-style: none;
}

.pills li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  color: var(--mist-dim);
  font-size: 0.86rem;
}

.signoff {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.45rem;
  color: var(--mist-dim);
}

.monster {
  width: min(100%, 34rem);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.lantern {
  transform-origin: 30px 0;
  animation: sway 5.5s ease-in-out infinite;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding-top: 2rem;
    min-height: calc(100vh - var(--header) - 1rem);
  }
}

.chamber {
  padding: 2.5rem 0;
}

.chamber__index {
  margin: 0 0 0.35rem;
  color: var(--blood);
  font-family: var(--hand);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.chamber h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.05rem, 4.6vw, 3.35rem);
  max-width: 18em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 14'%3E%3Cpath d='M2 8 C30 2 50 12 80 7 C120 1 140 12 178 6' fill='none' stroke='%23e23b2f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 9rem 0.7rem;
  padding-bottom: 0.7rem;
}

.chamber__lede {
  margin: 0 0 1.1rem;
  max-width: 42rem;
  color: var(--mist-dim);
}

.placeholder {
  border: 1.5px dashed rgba(240, 177, 74, 0.75);
  background: rgba(240, 177, 74, 0.06);
  border-radius: 1rem;
  padding: 1rem 1.05rem 0.4rem;
  max-width: 46rem;
}

.placeholder__flag {
  margin: 0 0 0.45rem;
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--gold);
}

.placeholder p:last-child {
  margin-bottom: 0.8rem;
}

.tracks {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  max-width: 40rem;
}

.tracks li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0 0.85rem 0.2rem;
  border-left: 2px solid var(--blood-deep);
  margin-left: 0.45rem;
  position: relative;
}

.tracks li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--cave-0);
}

.tracks__year {
  color: var(--gold);
  font-weight: 700;
  padding-left: 0.8rem;
}

.split {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.rates {
  margin: 0;
  padding: 1rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 1rem 1.15rem 0.9rem 1.2rem;
  box-shadow: var(--shadow);
}

.rates div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) 1.2fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(28, 18, 14, 0.2);
}

.rates div:last-child {
  border-bottom: 0;
}

.rates dt {
  font-weight: 700;
}

.rates dd {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--blood-deep);
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  align-items: end;
}

.count {
  margin: 0 0 0.8rem;
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--gold);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: start;
}

.print-card {
  --tilt: -0.5deg;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0.9rem 1.1rem 0.85rem 1rem;
  padding: 0.55rem 0.55rem 0.85rem;
  box-shadow: 0.4rem 0.5rem 0 rgba(0, 0, 0, 0.38);
  transform: rotate(var(--tilt));
}

.print-card:nth-child(3n + 2) {
  --tilt: 0.45deg;
}

.print-card:nth-child(3n) {
  --tilt: -0.2deg;
}

.print-card.wide {
  --tilt: 0deg;
}

.print-card__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.tape {
  display: block;
  width: 4.4rem;
  height: 1.15rem;
  margin: -1rem auto 0.45rem;
  background: rgba(240, 177, 74, 0.78);
  transform: rotate(-2deg);
}

.print-card__open img,
.print-card__frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #d7ccb8;
}

.print-card__frame {
  position: relative;
}

.play-badge {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--hand);
  font-size: 1.15rem;
  padding: 0.15rem 0.6rem 0.2rem;
  border-radius: 999px;
}

.print-card__title {
  display: block;
  margin: 0.65rem 0.35rem 0.15rem;
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1.15;
}

.print-card__date {
  display: block;
  margin: 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6d5648;
}

.print-card__caption {
  display: block;
  margin: 0.35rem 0.35rem 0.15rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #3a2a22;
}

.empty-vitrine {
  background: var(--cave-2);
  border-radius: 1rem;
  padding: 1.2rem 1.1rem;
  max-width: 40rem;
}

.empty-vitrine h3 {
  margin: 0 0 0.4rem;
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.bug {
  width: 4.5rem;
  height: auto;
  margin-bottom: 0.4rem;
}

.contact-grid {
  display: grid;
  gap: 1.2rem;
  align-items: start;
}

form {
  display: grid;
  gap: 0.85rem;
  position: relative;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea,
select {
  color-scheme: light;
  width: 100%;
  font: 400 1rem/1.4 var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  min-height: 2.9rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  color: #ffb1a8;
  font-size: 0.9rem;
  font-weight: 600;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--blood);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  justify-self: start;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  font-weight: 700;
}

.form-status.is-ok {
  color: var(--moss);
}

.form-status.is-bad {
  color: #ffb1a8;
}

.direct-card {
  background: var(--cave-2);
  border-radius: 1rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
}

.direct-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0;
}

.direct-card a {
  font-family: var(--hand);
  font-size: 1.35rem;
  word-break: break-word;
}

.fine {
  color: var(--mist-dim);
  font-size: 0.92rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  max-width: 14ch;
}

.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 0.4rem 0 1.2rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  background: rgba(22, 16, 14, 0.7);
  font-weight: 700;
}

.socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.socials svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.fineprint {
  color: var(--mist-dim);
  margin: 0;
}

.to-top {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--hand);
  font-size: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: #070504;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  grid-column: 2;
  width: min(68rem, 100%);
  max-height: 100%;
  overflow: auto;
  justify-self: center;
}

.lightbox__stage img,
.lightbox__stage video {
  display: block;
  width: 100%;
  max-height: min(72vh, 52rem);
  object-fit: contain;
  margin-inline: auto;
  background: #14100e;
  border-radius: 0.4rem;
}

.lightbox figcaption {
  margin-top: 0.7rem;
  max-width: 46rem;
  background: #16100e;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem 1rem;
}

.lightbox h3 {
  margin: 0;
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.lightbox__date,
.lightbox__count {
  margin: 0.15rem 0;
  color: var(--gold);
  font-size: 0.9rem;
}

.lightbox__caption {
  margin: 0.35rem 0 0;
}

.lightbox__close,
.lightbox__nav {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 2px solid var(--paper);
  background: var(--cave-0);
  color: var(--paper);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
}

.lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.noscript,
.simple {
  width: min(40rem, calc(100% - 2rem));
  margin: 12vh auto;
}

.simple h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
}

.simple p {
  font-size: 1.15rem;
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .print-card.wide {
    grid-column: 1 / -1;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (max-width: 719px) {
  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-items: end;
  }

  .lightbox__dialog {
    grid-column: 1;
    grid-row: 1;
  }

  .lightbox__nav--prev,
  .lightbox__nav--next {
    grid-row: 2;
    justify-self: center;
  }

  .lightbox__nav--prev {
    justify-self: start;
    margin-left: 12%;
  }

  .lightbox__nav--next {
    justify-self: end;
    margin-right: 12%;
    margin-top: -2.8rem;
  }

  .tracks li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .site-header,
  .lightbox,
  .hero__actions,
  .menu-toggle,
  .lang,
  .to-top,
  .noscript {
    display: none !important;
  }

  a {
    color: black;
  }

  .print-card,
  .rates {
    box-shadow: none;
    break-inside: avoid;
  }
}
