:root {
  --bg: #0a0908;
  --bg-raised: #141210;
  --ink: #ece7df;
  --gold: #c9a227;
  --gold-soft: #e3c363;
  --muted: #8a8478;
  --line: rgba(236, 231, 223, 0.12);
  --paper: #ffffff;
  --paper-ink: #1c1917;
  --paper-muted: #6f675d;
  --paper-line: rgba(28, 25, 23, 0.14);
  /* ponytail: el sitio de referencia usa Mulish en todo (titulos, botones, texto) */
  --serif: 'Mulish', Helvetica, Arial, sans-serif;
  --sans: 'Mulish', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

main section { scroll-margin-top: 4.5rem; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }

h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1.5rem; }

h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }

img { max-width: 100%; display: block; }

a { color: inherit; }

.overline {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: var(--bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}

/* sobre el hero: logo y nav apoyados directamente sobre la foto */
.site-header.over-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.header-inner {
  max-width: 960px;
  margin-inline: auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; }

.brand-logo { height: 84px; width: auto; }

@media (min-width: 721px) {
  .brand-logo { height: 150px; }
  .header-inner { max-width: 1280px; }
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--gold);
  text-transform: uppercase;
  transition: color 0.25s;
}

.site-nav a:hover { color: var(--gold-soft); }

@media (min-width: 721px) {
  .site-nav { gap: 0; }

  .site-nav a:not(:last-child)::after {
    content: '|';
    margin: 0 1rem;
    color: rgba(201, 162, 39, 0.55);
    font-family: var(--sans);
    font-weight: 400;
  }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--gold);
  padding: 0.9rem 2rem;
  border-radius: 10px;
  transition: background 0.25s, transform 0.25s;
}

.btn:hover { background: var(--gold-soft); transform: translateY(-2px); }

.hero-social {
  display: flex;
  gap: 1rem;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.15rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.hero-social a:hover {
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: transparent;
  color: var(--paper-ink);
}

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

/* ---------- Hero ---------- */

#hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-statue { position: absolute; inset: 0; }

.hero-statue img {
  width: 100%;
  height: 100%;
}

.hero-statue img {
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.75) contrast(1.05);
}

.hero-statue::after {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(227, 195, 99, 0.08) 45%,
    rgba(227, 195, 99, 0.24) 50%,
    rgba(227, 195, 99, 0.08) 55%,
    transparent 65%
  );
  opacity: 0;
  transform: translateX(-55%) rotate(0.001deg);
  animation: hero-shine 5.5s ease-in-out infinite;
}

@keyframes hero-shine {
  0%, 42% {
    opacity: 0;
    transform: translateX(-55%) rotate(0.001deg);
  }
  54% { opacity: 0.75; }
  72%, 100% {
    opacity: 0;
    transform: translateX(55%) rotate(0.001deg);
  }
}

.sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.spark {
  position: absolute;
  background: var(--gold-soft);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 4px rgba(224, 187, 72, 0.85));
  opacity: 0;
  animation: spark-twinkle 4s ease-in-out infinite;
}

@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(20deg); }
}

.spark-trail {
  animation: spark-trail 0.7s ease-out forwards;
}

@keyframes spark-trail {
  0% { opacity: 1; transform: scale(1) rotate(0deg) translateY(0); }
  100% { opacity: 0; transform: scale(0) rotate(45deg) translateY(-16px); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.72), rgba(10, 9, 8, 0.15) 60%),
    linear-gradient(rgba(10, 9, 8, 0.4), rgba(10, 9, 8, 0.2) 45%, var(--bg) 96%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 18px rgba(10, 9, 8, 0.8);
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding: 8rem 1.5rem 4rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.6rem;
}

.hero-copy {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

@media (min-width: 721px) {
  /* estatuilla más grande: acercamos la foto sin recortar el encuadre */
  .hero-statue img { object-position: center 22%; transform: scale(1.18); transform-origin: center 30%; }

  .hero-content {
    max-width: none;
    min-height: 100svh;
    align-content: end;
    padding: 8rem 4rem 7rem;
  }

  .hero-copy { max-width: 820px; }
}

@media (max-width: 720px) {
  .hero-content { margin-inline: auto; }

  .hero-scrim {
    background:
      linear-gradient(rgba(10, 9, 8, 0.6), rgba(10, 9, 8, 0.45) 45%, var(--bg) 96%);
  }

  .photo-grid { columns: 1; }
  .photo-grid img { width: 100%; height: auto; }
}

/* ---------- Secciones ---------- */

main section:not(#hero) {
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  color: var(--paper-ink);
}

main > section:first-child:not(#hero) {
  padding-top: clamp(7.5rem, 12vw, 9rem);
}

main section:not(#hero) { background: var(--paper); }

main section:not(#hero) + section { border-top: 1px solid var(--paper-line); }

main { background: var(--paper); }

#venue p, #sondeo p { max-width: 60ch; margin-bottom: 1rem; }

#sondeo .vote-grid { margin-top: 1.5rem; }

.video-section {
  text-align: center;
}

.feature-video {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 18px 50px rgba(28, 25, 23, 0.18);
  object-fit: cover;
}

.magazine-section { text-align: center; }

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  max-width: 920px;
  margin-inline: auto;
}

.magazine-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.8rem;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  background: #fff;
  color: var(--paper-ink);
  cursor: pointer;
  font: inherit;
  box-shadow: 0 14px 34px rgba(28, 25, 23, 0.12);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.magazine-card:hover,
.magazine-card:focus-visible {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 18px 44px rgba(28, 25, 23, 0.18);
  transform: translateY(-3px);
}

.magazine-card img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: var(--paper);
  object-fit: cover;
}

.magazine-card span {
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.magazine-modal {
  width: min(96vw, 1100px);
  max-width: 96vw;
  height: min(94vh, 900px);
  max-height: 94vh;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: #12100e;
  color: var(--ink);
  overflow: hidden;
}

.magazine-modal::backdrop { background: rgba(0, 0, 0, 0.72); }

.magazine-reader {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.magazine-reader-bar,
.magazine-reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(10, 9, 8, 0.92);
  border-bottom: 1px solid var(--line);
}

.magazine-reader-controls {
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: none;
}

.magazine-reader-title {
  margin: 0;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.magazine-close,
.magazine-prev,
.magazine-next,
.magazine-zoom-in,
.magazine-zoom-out {
  border: 1px solid rgba(236, 231, 223, 0.18);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.55rem 0.8rem;
}

.magazine-close:hover,
.magazine-prev:hover,
.magazine-next:hover,
.magazine-zoom-in:hover,
.magazine-zoom-out:hover { color: var(--gold-soft); border-color: rgba(227, 195, 99, 0.5); }

.magazine-prev:disabled,
.magazine-next:disabled,
.magazine-zoom-in:disabled,
.magazine-zoom-out:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.magazine-zoom-level {
  min-width: 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.magazine-page-wrap {
  position: relative;
  display: grid;
  /* safe: con zoom la página se sale del visor y no debe recortarse el borde superior/izquierdo */
  place-items: safe center;
  overflow: auto;
  padding: 1rem;
  background: radial-gradient(circle at top, rgba(201, 162, 39, 0.12), transparent 38%), #0a0908;
}

.magazine-loader {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(227, 195, 99, 0.32);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(10, 9, 8, 0.88);
  color: var(--gold-soft);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.magazine-loader::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(227, 195, 99, 0.28);
  border-top-color: var(--gold-soft);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

.magazine-loader.visible { display: flex; }

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

.magazine-page {
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.magazine-page-count {
  min-width: 9rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@keyframes statue-shine {
  0% { transform: translateX(-120%); }
  18% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

blockquote {
  margin-top: 2.5rem;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
}


/* ---------- Grillas ---------- */

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.vote-grid { display: flex; flex-wrap: wrap; gap: 1rem; }

.vote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 3rem;
  border-radius: 10px;
  background: var(--gold);
  color: var(--paper-ink);
  font-size: 1.2rem;
  transition: background 0.25s, transform 0.25s;
}

.vote-btn:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* ---------- Galería ---------- */

.gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.gallery figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-raised);
  position: relative;
}

.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.4s, transform 0.4s;
}

.gallery figure:hover img { filter: grayscale(0); transform: scale(1.03); }

.gallery figcaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #fff;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  pointer-events: none;
  z-index: 1;
}

.gallery .ph {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
}

.gallery .ph::after { content: 'Próximamente'; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; }

.photo-grid {
  display: block;
  columns: 220px;
  column-gap: 1.25rem;
}

.photo-grid figure {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-raised);
}

.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s;
}

.photo-grid a:hover img { transform: scale(1.05); }

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: -0.5rem 0 2rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-meta p:not(:last-child)::after {
  content: '|';
  margin-left: 0.75rem;
  color: rgba(201, 162, 39, 0.55);
}

.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(10, 9, 8, 0.97);
}

.lightbox[open] { display: flex; align-items: center; justify-content: center; }

.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }

.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.75rem;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--gold-soft); }

.lightbox-close { top: 0.5rem; right: 0.5rem; font-size: 1.4rem; }
.lightbox-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--paper-line);
  background: var(--paper);
  padding: 2rem clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--paper-muted);
}

.footer-social {
  display: grid;
  gap: 0.6rem;
}

.footer-social p {
  color: var(--paper-ink);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer nav { display: flex; gap: 1.5rem; }

.site-footer a { color: var(--paper-muted); text-decoration: none; }

.site-footer a i {
  margin-right: 0.4rem;
  color: var(--gold);
}

.site-footer a:hover { color: var(--paper-ink); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

.menu-toggle {
  position: relative;
  z-index: 11;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}

.menu-toggle:hover { background: rgba(236, 231, 223, 0.06); }

.menu-toggle svg { display: block; width: 24px; height: 24px; }

.menu-toggle .menu-toggle-close { display: none; }

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    height: 100vh;
    height: 100dvh;
    background: rgba(20, 18, 16, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.25rem;
    padding: 6rem 1.75rem 3rem;
    overflow-y: auto;
    z-index: 9;
    transform: translateX(100%);
    transform-origin: right center;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
  }

  .site-nav a {
    position: relative;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--gold);
    text-transform: uppercase;
    padding: 1rem 1.25rem 1rem 0.25rem;
    border-top: 1px solid var(--line);
    opacity: 0;
    transform: translateX(16px);
    transition: color 0.25s ease, opacity 0.45s ease, transform 0.45s ease;
  }

  .site-nav a:last-child { border-bottom: 1px solid var(--line); }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--gold-soft);
    outline: none;
  }

  .site-nav a::after {
    content: '';
    position: absolute;
    left: 0.25rem;
    bottom: 0.35rem;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.35s ease;
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after { width: calc(100% - 0.5rem); }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 9, 8, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 8;
  }

  /* Estado abierto */
  body.nav-open .site-nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  body.nav-open .site-nav a {
    opacity: 1;
    transform: translateX(0);
  }

  body.nav-open .site-nav a:nth-child(1) { transition-delay: 0.08s; }
  body.nav-open .site-nav a:nth-child(2) { transition-delay: 0.14s; }
  body.nav-open .site-nav a:nth-child(3) { transition-delay: 0.2s; }
  body.nav-open .site-nav a:nth-child(4) { transition-delay: 0.26s; }

  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

  body.nav-open .menu-toggle .menu-toggle-open { display: none; }
  body.nav-open .menu-toggle .menu-toggle-close { display: block; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-statue::after { animation: none; }
  .spark { animation: none; opacity: 0.6; }
  .btn, .vote-btn, .gallery img { transition: none; }
}
