/* ===================================================================
   PLANETARIO MAJORO — estilos
   Tipografía del hotel: Artigo (títulos) + Montserrat (cuerpo)
   =================================================================== */
@font-face {
  font-family: 'Artigo';
  src: url('../assets/fonts/Artigo.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Artigo';
  src: url('../assets/fonts/ArtigoPro-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #05070f;
  --bg-2: #0a0e1c;
  --gold: #E2A94E;
  --gold-soft: #f0c987;
  --text: #EEF1F8;
  --text-dim: rgba(238, 241, 248, 0.66);
  --text-faint: rgba(238, 241, 248, 0.40);
  --line: rgba(238, 241, 248, 0.14);
  --wa: #25D366;
  --serif: 'Artigo', 'Cormorant Garamond', serif;
  --sans: 'Montserrat', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; }
em { font-style: italic; }

/* ===== Cielo WebGL de fondo ===== */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.sky-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(5,7,15,0) 40%, rgba(5,7,15,0.55) 100%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(5,7,15,0.7) 0%, rgba(5,7,15,0) 60%);
}

main, .nav, .footer { position: relative; z-index: 2; }

/* ===== Contenedores ===== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.container.center { text-align: center; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  z-index: 50;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding: 14px 24px;
}
@media (min-width: 768px) { .nav { padding: 22px 48px; } .nav.scrolled { padding: 16px 48px; } }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand-mark { color: var(--gold); font-size: 14px; transform: translateY(-1px); }
.nav-brand-text { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.01em; color: var(--text); }
.nav-brand-text em { color: var(--gold); font-weight: 600; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-primary {
  background: var(--gold); color: #2a1c08;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 2px;
  box-shadow: 0 10px 40px -12px rgba(226, 169, 78, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(226, 169, 78, 0.8); }
.btn-nav {
  background: transparent; color: var(--text);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 10px 22px; border-radius: 2px;
  border: 1px solid var(--gold);
}
.btn-nav:hover { background: var(--gold); color: #2a1c08; transform: translateY(-1px); }
.btn-lg { font-size: 14px; padding: 19px 40px; }

/* ===== Tipografía de secciones ===== */
.kicker, .eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.eyebrow { margin-bottom: 28px; }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.01em;
  color: var(--text);
}
.section-title em { color: var(--gold); font-weight: 500; }
.lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 3.4vw, 34px); line-height: 1.34; color: var(--text);
  margin: 0 auto 14px;
}
.lead em { color: var(--gold-soft); font-style: italic; }

/* ===== Secciones base ===== */
.section { position: relative; padding: 14vh 0; }
@media (min-width: 768px) { .section { padding: 17vh 0; } }

/* ===== 1 · HERO ===== */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: 120px 0 100px;
}
.hero-inner { max-width: 920px; }
.kicker { margin-bottom: 26px; display: inline-block; }
.hero-title { margin-bottom: 32px; }
.ht-set {
  display: block;
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(32px, 5.8vw, 72px); line-height: 1.07; letter-spacing: 0;
  color: var(--text);
}
.ht-punch {
  display: block; margin-top: 0.14em;
  font-family: 'Cormorant Garamond', serif; font-weight: 400; font-style: italic;
  font-size: clamp(23px, 3.6vw, 46px); line-height: 1; letter-spacing: 0.01em;
  color: var(--gold);
}
.hero-sub {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(15px, 1.8vw, 18px); line-height: 1.7; color: var(--text-dim);
  max-width: 640px; margin: 0 auto 40px;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (min-width: 560px) { .hero-cta { flex-direction: row; justify-content: center; gap: 24px; } }
.hero-meta { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; color: var(--text-faint); }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-faint);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ===== 2 · QUÉ ES ===== */
.section-que-es .lead { max-width: 720px; }

/* ===== 3 · LO QUE VIVES ===== */
.section-vives .eyebrow { text-align: center; }
/* formato editorial abierto (sin cajas): número grande + divisor */
.vives-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  max-width: 980px; margin: 0 auto;
}
@media (min-width: 768px) { .vives-grid { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.vive-card {
  padding: 30px 26px; position: relative;
  border-top: 1px solid rgba(226,169,78,0.32);
}
@media (min-width: 768px) {
  .vive-card { border-top: none; border-left: 1px solid rgba(226,169,78,0.22); padding: 8px 30px; }
  .vive-card:first-child { border-left: none; padding-left: 0; }
}
.vive-num { font-family: var(--serif); font-size: 42px; font-weight: 600; color: var(--gold); display: block; margin-bottom: 14px; line-height: 1; }
.vive-card h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.12; margin-bottom: 10px; color: var(--text); }
.vive-card p { font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--text-dim); }

/* ===== Sección 2 · QUÉ ES (caja de la experiencia) ===== */
.section-quees { padding: 16vh 0; }
.quees-card {
  border: 1px solid rgba(226,169,78,0.28); border-radius: 6px;
  background: rgba(10, 14, 28, 0.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 48px 40px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.7);
}
@media (min-width: 768px) { .quees-card { padding: 64px 60px; } }
.quees-card .eyebrow { margin-bottom: 20px; }
.quees-headline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 5.2vw, 58px); line-height: 1.05; color: var(--text); margin-bottom: 22px;
}
.quees-headline em { color: var(--gold); font-weight: 500; }
.quees-body {
  font-family: var(--sans); font-weight: 300; font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75; color: var(--text-dim); max-width: 560px;
}

/* ===== Subtítulo flotante de la figura activa (constelación) ===== */
.figura-caption {
  position: fixed; left: 0; right: 0; bottom: 13vh;
  z-index: 4; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease);
  padding: 0 24px;
}
.figura-caption-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 6vw, 64px); line-height: 1; color: var(--text);
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.figura-caption-line {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 2.8vw, 30px); color: var(--gold-soft); margin-top: 8px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
}

/* ===== 4 · LA FUNCIÓN (tira de datos con divisores) ===== */
.specs {
  display: flex; flex-wrap: wrap; justify-content: center;
  max-width: 1000px; margin: 0 auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.spec { flex: 1 1 auto; min-width: 150px; text-align: center; padding: 28px 22px; position: relative; }
.spec + .spec::before { content: ''; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.spec-val { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.6vw, 27px); color: var(--gold-soft); line-height: 1; margin-bottom: 9px; }
.spec-lbl { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 600px) {
  .spec { flex-basis: 50%; min-width: 0; border-top: 1px solid rgba(255,255,255,0.05); }
  .spec + .spec::before { display: none; }
}

/* ===== 5 · SOLO EN MAJORO ===== */
.section-solo .section-title { margin-bottom: 30px; }
.section-solo .lead {
  max-width: 620px;
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(15px, 1.9vw, 18px); line-height: 1.75; color: var(--text-dim);
}
.section-solo .lead em { font-style: italic; color: var(--gold-soft); }

/* ===== 6 · GALERÍA (álbum: una grande arriba + fila de fotos abajo) ===== */
.galeria-album {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  max-width: 1040px; margin: 0 auto;
}
.galeria-foto {
  border: none; padding: 0; cursor: pointer; overflow: hidden; border-radius: 4px;
  background: var(--bg-2); position: relative; display: block; aspect-ratio: 1;
}
.galeria-foto img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0.85; transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.galeria-foto:hover img { transform: scale(1.06); opacity: 1; }
.g-feat { grid-column: 1 / -1; aspect-ratio: 16/9; }      /* destacada, ancho completo arriba */
@media (min-width: 760px) {
  .galeria-album { grid-template-columns: repeat(4, 1fr); }
  .g-feat { grid-column: 1 / -1; aspect-ratio: 30/9; }
}

/* ===== 8 · RESERVA / CTA FINAL ===== */
.section-reserva { padding: 20vh 0; }
.reserva-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 6.5vw, 76px); line-height: 1.04; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 30px;
}
.reserva-title em { color: var(--gold); font-weight: 500; }
.reserva-price {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(64px, 13vw, 150px); line-height: 1; color: var(--gold);
  margin-bottom: 36px; letter-spacing: -0.02em;
}
.reserva-price-cur { font-size: 0.42em; vertical-align: 0.55em; margin-right: 4px; }
.reserva-price-unit { font-family: var(--sans); font-size: 0.13em; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); vertical-align: 0.7em; margin-left: 8px; }

.reserva-datos {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  max-width: 820px; margin: 64px auto 0;
  border-top: 1px solid var(--line); padding-top: 40px;
}
@media (min-width: 768px) { .reserva-datos { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.dato { display: flex; flex-direction: column; gap: 7px; }
.dato-label { font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.dato-val { font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--text-dim); line-height: 1.5; }
.dato-val a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.todo { color: var(--gold); font-size: 0.8em; }
.reserva-photo-wrap { max-width: 680px; margin: 60px auto 0; }
.reserva-photo { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--line); }
.reserva-photo-wrap figcaption { font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; color: var(--text-faint); margin-top: 12px; }

/* ===== FOOTER ===== */
.footer { padding: 64px 0 54px; border-top: 1px solid var(--line); background: rgba(5,7,15,0.6); }
.footer-logo { width: 96px; height: auto; margin: 0 auto 18px; display: block; opacity: 0.9; }
.footer-line { font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--text-dim); margin-bottom: 16px; }
.footer-wa { font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; color: var(--gold); text-decoration: none; }
.footer-wa:hover { color: var(--gold-soft); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Lightbox galería ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(2, 3, 8, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 3px; }
.lightbox-close, .lightbox-nav { position: absolute; background: transparent; border: none; color: var(--text); cursor: pointer; opacity: 0.8; transition: opacity 0.3s, transform 0.3s; }
.lightbox-close:hover, .lightbox-nav:hover { opacity: 1; transform: scale(1.08); }
.lightbox-close { top: 22px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 18px; } .lightbox-next { right: 18px; }

/* ===== Accesibilidad: menos movimiento ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition-duration: 0.4s; }
  .scroll-hint { animation: none; }
}
