/* ============================================================
   LANDING PAGE — index.html
   ============================================================ */

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* ── Capa de fondo con foto ─────────────────────────────── */
.l-bg {
  position: fixed;
  inset: 0;
  background-image: url('../assets/images/hero-landing.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 3s ease;
}
.l-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 75%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 100%);
}
.l-bg.is-visible { opacity: 1; }

/* ── Contenedor central ─────────────────────────────────── */
.l-center {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

/* ── Logo ───────────────────────────────────────────────── */
.l-logo {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 1.6s ease, transform 1.6s ease;
}
.l-logo.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.l-logo__img {
  width: clamp(220px, 34vw, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 24px rgba(0,0,0,0.35));
}

/* ── Tagline ────────────────────────────────────────────── */
.l-tagline {
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  max-width: 520px;
  opacity: 0;
  transition: opacity 1.4s ease;
  margin-top: 0.85rem;
  text-transform: lowercase;
}
.l-tagline.is-visible { opacity: 1; }

/* ── Separador ──────────────────────────────────────────── */
.l-divider {
  position: relative;
  z-index: 2;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.4), transparent);
  margin: 1.5rem 0 0.5rem;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.l-divider.is-visible { opacity: 1; }

/* ── Choice cards ───────────────────────────────────────── */
.l-choices {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: min(820px, 92vw);
  margin-top: clamp(1.25rem, 3vw, 2.25rem);
}

.l-choice {
  display: block;
  position: relative;
  height: clamp(180px, 32vh, 280px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.l-choice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Background foto de cada card */
.l-choice__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.2,0.8,0.2,1);
  filter: saturate(0.85) brightness(0.95);
}
.l-choice--bodas .l-choice__bg {
  background-image: url('../assets/images/card-bodas.webp');
}
.l-choice--eventos .l-choice__bg {
  background-image: url('../assets/images/card-eventos.webp');
  background-position: center top;
}

/* Overlay oscuro sobre la foto */
.l-choice__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.62) 100%);
  transition: background 0.6s ease;
}

.l-choice:hover .l-choice__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.42) 100%);
}
.l-choice:hover .l-choice__bg { transform: scale(1.08); }

/* Contenido centrado en la card */
.l-choice__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.l-choice__label {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  color: white;
  line-height: 1;
  display: block;
  /* Pinyon Script tiene offset visual izquierdo — compensamos para centrado óptico */
  transform: translateX(0.12em);
  transition: letter-spacing 0.4s ease;
}
.l-choice:hover .l-choice__label { letter-spacing: 0.03em; }

.l-choice__line {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.4s ease;
}
.l-choice:hover .l-choice__line { width: 40px; }

.l-choice__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.6rem, 1.05vw, 0.68rem);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0.7;
  transform: translateY(0);
  transition: opacity 0.5s ease, letter-spacing 0.5s ease;
  padding-left: 0.42em;
}
.l-choice:hover .l-choice__sub {
  opacity: 1;
  letter-spacing: 0.5em;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 540px) {
  html, body { overflow: auto; }

  .l-choices {
    grid-template-columns: 1fr;
    width: 92vw;
  }
  .l-choice {
    height: clamp(140px, 38vw, 200px);
  }
  .l-center {
    position: relative;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 25vh;
  }
  .l-bg {
    position: fixed;
  }
}
