/* ============================================================
   SECTIONS/HERO — Portada de la invitacion (nombre, fecha, foto)
   ============================================================ */

.inv-hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px 32px;
  position: relative;
  text-align: center;
}

.inv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 30%,
      rgba(201,169,110,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── FONDO HERO ──────────────────────────────────────────── */
.inv-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  background-color: #0f0c1a;
}

.inv-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,8,20,0.25) 0%,
    rgba(10,8,20,0.5)  60%,
    rgba(10,8,20,0.92) 100%
  );
}

/* ── CARD DE VIDRIO (glassmorphism) ─────────────────────────── */
.inv-hero-glass {
  width: 100%;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateX(-70px);
  transition:
    opacity  0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* JS de envelope agrega esta clase cuando la invitacion termina de abrir */
.inv-hero-glass.slide-in {
  opacity: 1;
  transform: translateX(0);
}

.inv-hero-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 4px;
}

.inv-hero-name {
  font-family: 'Georgia', serif;
  font-size: clamp(2.2rem, 9vw, 3rem);
  font-style: italic;
  color: #f5f0e8;
  line-height: 1.15;
  margin-bottom: 4px;
}

.inv-hero-fullname {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #f5f0e8;
  margin-bottom: 20px;
  opacity: 0;
  animation: invFadeUp 0.7s ease 0.7s forwards;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.inv-gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px auto;
}

.inv-gold-divider span {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a96e);
}

.inv-gold-divider span:last-child {
  background: linear-gradient(90deg, #c9a96e, transparent);
}

.inv-gold-divider i {
  font-style: normal;
  color: #c9a96e;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}

.inv-hero-date {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f5f0e8;
}

/* ── Elementos decorativos opcionales (no usados en el HTML
   actual, pero listos si algun dia quieren reactivarlos) ──── */
.inv-hero-place {
  font-size: 0.75rem;
  color: #c9a96e;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: invFadeUp 0.7s ease 1.1s forwards;
}

.inv-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  animation: invFadeUp 0.7s ease 1.5s forwards;
}

.inv-scroll-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #c9a96e;
  animation: dotBounce 1.4s ease-in-out infinite;
}

.inv-scroll-dot:nth-child(2) { animation-delay: 0.15s; opacity: 0.6; }
.inv-scroll-dot:nth-child(3) { animation-delay: 0.30s; opacity: 0.3; }

@keyframes dotBounce {
  0%, 100% { transform: translateY(0);  opacity: 1;   }
  50%       { transform: translateY(5px); opacity: 0.3; }
}
