:root {
  --cream: #f3eee4;
  --bone: #e9e2d3;
  --ink: #0b0b0b;
  --ink-soft: #2a2825;
  --muted: #6d675d;
  --line: rgba(11, 11, 11, 0.18);
  --serif: "Playfair Display", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  /* Tokens semánticos del tema (claro por defecto) */
  --bg: var(--cream);
  --fg: var(--ink);
  --block: var(--ink);
  --block-fg: var(--cream);
  --stage: #000;
  --frame-line: transparent;
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --header-bg: rgba(243, 238, 228, 0.86);
  --shadow-hover: 0 24px 50px -18px rgba(11, 11, 11, 0.55);
  --glass-bg: rgba(11, 11, 11, 0.42);
  --glass-blur: 22px;
  color-scheme: light;
}

body.dark-theme {
  --bg: #0b0b0b;
  --fg: var(--cream);
  --muted: #a8a193;
  --line: rgba(243, 238, 228, 0.2);
  --block: #1a1815;
  --block-fg: var(--cream);
  --frame-line: rgba(243, 238, 228, 0.16);
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  --header-bg: rgba(11, 11, 11, 0.82);
  --shadow-hover: 0 24px 54px -16px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(243, 238, 228, 0.3);
  --glass-bg: rgba(6, 6, 6, 0.66);
  --glass-blur: 26px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h2 em,
h1 em {
  font-style: italic;
  font-weight: 500;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker--light {
  color: rgba(255, 255, 255, 0.72);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2rem);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav a {
  text-decoration: none;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.site-header nav a:hover,
.link-button:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.pill {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.pill:hover {
  text-decoration: none !important;
  opacity: 0.82;
}

/* Botón de tema */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.4s ease;
}

.theme-toggle:hover {
  background: var(--fg);
  color: var(--bg);
  transform: rotate(18deg);
}

.theme-toggle .icon-sun,
body.dark-theme .theme-toggle .icon-moon {
  display: none;
}

body.dark-theme .theme-toggle .icon-sun {
  display: block;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.button:hover {
  background: transparent;
  color: var(--fg);
  transform: translateY(-2px);
}

.button--light {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.button--light:hover {
  background: transparent;
  color: var(--cream);
}

.button--big {
  padding: 1.35rem 2.2rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}

.hero-head {
  display: grid;
  justify-items: center;
  padding-inline: var(--gutter);
}

.hero h1 {
  margin-top: 1.25rem;
  font-weight: 900;
  font-size: clamp(2.75rem, 12.5vw, 12rem);
  line-height: 0.9;
  text-wrap: balance;
}

.hero h1 .line {
  display: block;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 28rem;
  margin-top: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--stage);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  z-index: 1;
  top: clamp(1rem, 2.5vw, 1.75rem);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.7;
}

.hero-tag--left {
  left: clamp(1rem, 2.5vw, 1.75rem);
  text-align: left;
}

.hero-tag--right {
  right: clamp(1rem, 2.5vw, 1.75rem);
  text-align: right;
}

.video-toggle {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s ease, color 0.25s ease;
}

.video-toggle:hover {
  background: #fff;
  color: #0b0b0b;
}

.hero-note {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  max-width: 36rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding-inline: var(--gutter);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.4;
}

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--block);
  color: var(--block-fg);
  border-block: 1px solid var(--block);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  padding: 1.1rem 0;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "✦";
  margin-left: 3rem;
  font-style: normal;
  font-size: 0.7em;
  opacity: 0.6;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Cintillo entre secciones: versión que sigue el color de la página para no fundirse con los bloques oscuros */
.marquee--page {
  background: var(--bg);
  color: var(--fg);
  border-block: 1px solid var(--fg);
}

/* Gallery */
.gallery {
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
  text-align: center;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(2.25rem, 8vw, 7rem);
  font-weight: 900;
  text-wrap: balance;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  max-width: 76rem;
  margin-inline: auto;
}

.shot {
  margin: 0;
}

.shot {
  transition: all 0.3s ease;
}

.shot-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--stage);
  border: 1px solid var(--frame-line);
  overflow: hidden;
  transition: all 0.3s ease;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hover: la foto crece y se eleva con sombra; las demás bajan su opacidad */
@media (hover: hover) {
  .gallery-grid:hover .shot {
    opacity: 0.5;
  }

  .gallery-grid .shot:hover {
    opacity: 1;
    position: relative;
    z-index: 2;
  }

  .shot:hover .shot-frame {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
  }
}

.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shot figcaption span {
  color: var(--muted);
}

/* Details */
.details {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
  background: var(--block);
  color: var(--block-fg);
  text-align: center;
}

.details-intro {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.details-intro h2 {
  font-size: clamp(2.25rem, 7vw, 6rem);
  font-weight: 900;
}

.details-intro > p:last-child {
  max-width: 30rem;
  color: rgba(243, 238, 228, 0.74);
}

.details-list {
  display: grid;
  width: 100%;
  max-width: 56rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.details-list li {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(243, 238, 228, 0.22);
}

.details-list li:last-child {
  border-bottom: 1px solid rgba(243, 238, 228, 0.22);
}

.details-list span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(243, 238, 228, 0.6);
}

.details-list h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.details-list p {
  max-width: 32rem;
  margin-inline: auto;
  color: rgba(243, 238, 228, 0.72);
}

.spec-card,
.stats {
  width: 100%;
  max-width: 34rem;
}

.spec-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(243, 238, 228, 0.22);
  text-align: left;
}

.spec-card h3 {
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(243, 238, 228, 0.72);
}

.spec-card dl {
  margin: 0;
}

.spec-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(243, 238, 228, 0.16);
  font-size: 0.92rem;
}

.spec-card dt {
  color: rgba(243, 238, 228, 0.62);
}

.spec-card dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.spec-card .spec-open {
  color: #3ddc84;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stats div {
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(243, 238, 228, 0.22);
}

.stats strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
}

.stats span {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.62);
}

.house-note {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  max-width: 34rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--cream);
  color: var(--ink);
  text-align: center;
}

.house-note h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.house-note p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
}

.house-note small {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d675d;
}

/* Reservation */
.reservation {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  text-align: center;
}

.reservation h2 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 8vw, 7rem);
  font-weight: 900;
  text-wrap: balance;
}

.reservation-row {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.reservation-row p {
  display: grid;
  gap: 0.2rem;
}

.reservation-row strong {
  font-family: var(--serif);
  font-size: 1.8rem;
}

.reservation-row span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Redes sociales */
.social {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.social ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

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

.footer-social a {
  text-decoration: none;
}

.footer-social a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Footer */
.site-footer {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 2rem var(--gutter);
  background: var(--block);
  color: var(--block-fg);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer strong {
  font-family: var(--serif);
  letter-spacing: 0.2em;
}

.site-footer small {
  color: rgba(243, 238, 228, 0.6);
  font-size: inherit;
}

/* Countdown modal */
.countdown-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.countdown-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0s;
}

.countdown-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.countdown-close:hover {
  background: #fff;
  color: var(--ink);
  transform: rotate(90deg);
}

.countdown-panel {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  width: 100%;
  text-align: center;
  transform: translateY(18px);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.countdown-modal.is-open .countdown-panel {
  transform: none;
}

.countdown-date {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.countdown-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 2.5vw, 2.5rem);
  width: 100%;
  max-width: 78rem;
  margin: clamp(1rem, 3vw, 2.5rem) 0;
}

.countdown-units div {
  display: grid;
  gap: 0.6rem;
}

.countdown-units strong {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.8rem, 14vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.countdown-units span {
  font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* Responsive */
@media (max-width: 48rem) {
  .site-header {
    padding-block: 0.8rem;
  }

  .site-header nav a:not(.pill),
  .link-button {
    display: none;
  }

  .brand {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }

  .kicker {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    line-height: 1.7;
  }

  /* Banner vertical: el video cubre el alto de la pantalla */
  .hero-stage {
    min-height: 24rem;
  }

  .hero-tag {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .marquee-track {
    gap: 2rem;
    padding: 0.85rem 0;
  }

  .marquee-track span::after {
    margin-left: 2rem;
  }

  .button,
  .button--big {
    justify-content: center;
    padding: 1.05rem 1.4rem;
    font-size: 0.74rem;
  }

  .hero-note .button,
  .reservation .button--big {
    width: 100%;
    max-width: 22rem;
  }

  /* Modal: 2×2 para que los números gigantes no se desborden */
  .countdown-modal {
    align-items: start;
    overflow-y: auto;
  }

  .countdown-panel {
    min-height: 100%;
    align-content: center;
    padding: 4.5rem 0 2rem;
  }

  .countdown-units {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .countdown-units strong {
    font-size: clamp(3.5rem, 22vw, 7rem);
  }

  .countdown-close {
    position: fixed;
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 24rem) {
  .hero h1 {
    font-size: 2.6rem;
  }
}

/* Celulares en horizontal: modal por altura */
@media (max-height: 32rem) and (orientation: landscape) {
  .countdown-panel {
    gap: 0.5rem;
    padding-block: 3.5rem 1rem;
  }

  .countdown-units {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0.5rem 0;
  }

  .countdown-units strong {
    font-size: min(13vw, 24vh);
  }

  .hero-stage {
    height: 100vh;
    min-height: 0;
  }
}

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

  .marquee-track {
    animation: none;
  }

  body,
  .shot,
  .shot-frame,
  .theme-toggle,
  .countdown-modal,
  .countdown-panel,
  .countdown-close {
    transition: none;
  }
}
