/* Opci�n B � Cinem�tica Inmersiva
   Im�genes: object-fit:cover (sin distorsi�n) */

:root {
  --ink: #020814;
  --navy: #061433;
  --blue: #0a2a6b;
  --blue-mid: #123a88;
  --sky: #3d6fd4;
  --sand: #d8c39a;
  --sand-soft: #e8d7b5;
  --white: #f7f9ff;
  --muted: rgba(247, 249, 255, 0.68);
  --line: rgba(255, 255, 255, 0.1);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  /* Nunca estirar: siempre recortar manteniendo proporci�n */
  object-fit: cover;
  object-position: center;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 100;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sand), var(--sky));
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s;
}

/* Mobile menu - separate element outside nav stacking context */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  background: #020814;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  color: #f7f9ff;
  font-size: 1.25rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.mobile-menu a:hover {
  color: var(--sand);
}

@media (min-width: 721px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 720px) {
  .mobile-menu { display: flex; }
}

.nav.is-scrolled {
  background: rgba(2, 8, 20, 0.88);
  backdrop-filter: blur(14px);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links a {
  color: rgba(247, 249, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--sand);
}

.nav__cta {
  border: 1px solid rgba(216, 195, 154, 0.45) !important;
  color: var(--sand) !important;
  padding: 0.5rem 1rem !important;
}

.nav__toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  z-index: 2;
}

.nav__toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  margin: 6px auto;
  background: var(--white);
}

.nav.is-open .nav__toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav.is-open .nav__toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  overflow-x: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(10, 42, 107, 0.35),
    rgba(2, 8, 20, 0.88) 70%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 5vw, 2.5rem) 4rem;
}

.hero__name {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 11vw, 6.8rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero__line {
  display: block;
  width: 100%;
}

.hero__year {
  margin: 1.25rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
}

.hero__year span {
  width: 2.4rem;
  height: 1px;
  background: rgba(216, 195, 154, 0.5);
}

.hero__slogan {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  padding: 0 0.25rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.4rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 0.35rem;
}

.hero__scroll span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sand);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(10px);
    opacity: 0.2;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.95rem 1.7rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.btn--outline {
  border: 1px solid rgba(216, 195, 154, 0.45);
  color: var(--sand);
}

.btn--outline:hover {
  background: rgba(216, 195, 154, 0.12);
}

/* Strip stats */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--navy);
}

.strip__item {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.strip__item:last-child {
  border-right: 0;
}

.strip__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.strip__item span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Intro / heads */
.intro {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.intro__inner {
  max-width: 720px;
  text-align: center;
}

.intro h2,
.section-head h2,
.panel__copy h3,
.turismo__content h2,
.cierre h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.intro h2,
.section-head h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
}

.kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
}

.kicker--sand {
  color: var(--sand);
}

.section-head {
  margin-bottom: 1.5rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Panels */
.panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: min(85vh, 760px);
  background: linear-gradient(180deg, #0a1f4d, #061433);
}

.panel--flip {
  grid-template-columns: 0.8fr 1.2fr;
}

.panel--flip .panel__media {
  order: 2;
}

.panel__media {
  position: relative;
  min-height: 360px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.panel__media .shot {
  flex: 1;
}

.panel__copy {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel__copy h3 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.panel__copy > p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
}

.panel__copy ul {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.panel__copy li {
  position: relative;
  padding-left: 1rem;
  color: rgba(247, 249, 255, 0.78);
  font-size: 0.95rem;
}

.panel__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--sand);
}

.money {
  margin: 1.5rem 0 0 !important;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem) !important;
  font-weight: 700 !important;
  color: var(--sand) !important;
}

/* Shot gallery */
.shot {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: clamp(280px, 40vh, 420px) auto;
  align-content: center;
}

.shot__main {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  background: #0a0f1c;
}

.shot__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.shot__expand {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.4rem;
  background: rgba(2, 8, 20, 0.78);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s, transform 0.2s;
}

.shot__expand svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.shot__expand:hover {
  background: rgba(10, 42, 107, 0.92);
  transform: scale(1.04);
}

.shot__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.55);
  align-self: stretch;
}

.shot__thumbs:has(.shot__thumb:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}

.shot__thumbs:has(.shot__thumb:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

.shot__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  opacity: 0.55;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: opacity 0.2s, outline-color 0.2s, transform 0.2s;
  touch-action: manipulation;
  cursor: pointer;
}

.shot__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shot__thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.shot__thumb.is-active {
  opacity: 1;
  outline-color: var(--sand);
}

/* Programs */
.programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.program {
  padding: 1.4rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.program h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

.program__num {
  margin: 0.7rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.program p:last-child {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Turismo banner */
.turismo {
  position: relative;
  min-height: 65vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.turismo__bg {
  position: absolute;
  inset: 0;
}

.turismo__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.turismo__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 8, 20, 0.92),
    rgba(10, 42, 107, 0.75) 55%,
    rgba(2, 8, 20, 0.65)
  );
}

.turismo__content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin-right: auto;
  margin-left: clamp(1.25rem, 8vw, 8rem);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.turismo__content h2 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.turismo__content p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.08rem;
}

/* Gallery */
.galeria {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--navy);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
}

.filter {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.filter:hover,
.filter.is-active {
  border-color: var(--sand);
  color: var(--sand);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.gallery--collapsed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.gallery--collapsed.is-expanded {
  max-height: 4000px;
  opacity: 1;
}

/* En m�vil/desktop, que mientras est� colapsada NO se vean (ni ocupen) las miniaturas */
.gallery--collapsed:not(.is-expanded) .gallery__item {
  display: none;
}

.gallery--collapsed.is-expanded .gallery__item {
  display: block;
}

.gallery__toggle {
  margin-top: 1.5rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
}

.gallery__item.is-hidden {
  display: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 0.7rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
}

.pdf {
  margin: 2.2rem 0 0;
  text-align: center;
}

/* Cierre */
.cierre {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 111, 212, 0.25), transparent 55%),
    var(--ink);
}

.cierre__check {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--sand);
  border-radius: 50%;
  color: var(--sand);
}

.cierre h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.cierre__tag {
  margin: 0.7rem 0 1.1rem;
  color: var(--sand);
  font-size: 1.25rem;
}

.cierre p:last-child {
  margin: 0;
  color: var(--muted);
}

.footer {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer__social a:hover {
  color: var(--sand);
  border-color: var(--sand);
  transform: scale(1.08);
}

.footer__social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.footer p {
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 8, 20, 0.95);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}

.lightbox[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain; /* lightbox: ver foto completa sin cortar ni distorsionar */
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 2.3rem;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.8rem;
  opacity: 0.7;
  padding: 0.5rem 0.8rem;
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__nav:hover {
  opacity: 1;
}

.lightbox__nav--prev {
  left: 0.4rem;
}

.lightbox__nav--next {
  right: 0.4rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .strip,
  .programs,
  .panel,
  .panel--flip,
  .gallery {
    grid-template-columns: 1fr;
  }

  .panel--flip .panel__media {
    order: 0;
  }

  .panel {
    min-height: 0;
  }

  .panel__media,
  .shot {
    min-height: 0;
  }

  .shot {
    grid-template-rows: clamp(220px, 34vh, 320px) auto;
    min-height: 0;
  }

  .shot__main {
    min-height: 0;
  }

  .shot__thumbs {
    padding: 0.5rem;
    gap: 0.35rem;
  }

  .shot__thumb {
    max-height: 3.6rem;
  }

  .strip__item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .turismo__content {
    margin-left: auto;
    margin-right: auto;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 961px) {
  .shot {
    grid-template-rows: 1fr auto;
    align-content: stretch;
  }

  .shot__thumbs {
    padding-top: 0.35rem;
    gap: 0.3rem;
  }

  .shot__thumb {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .hero__content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero__name {
    font-size: 7.8vw;
    letter-spacing: -0.05em;
  }

  .hero__year {
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    gap: 0.5rem;
    max-width: 100%;
  }

  .hero__year span {
    width: 1.2rem;
  }

  .hero__slogan {
    font-size: 0.88rem;
    max-width: 16rem;
  }

  .btn {
    width: 100%;
    max-width: 18rem;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links--desktop {
    display: none;
  }

  /* �conos redes m�s grandes en m�vil */
  .footer__social a {
    width: 2.95rem;
    height: 2.95rem;
  }

  .footer__social svg {
    width: 1.7rem;
    height: 1.7rem;
  }

  .programs,
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__bg img,
  .hero__scroll span,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
