/* ============================================================
   INVITATION.CSS — La invitacion que sale de la carta
   ============================================================ */

/* ── OVERLAY DE LA INVITACION ──────────────────────────────── */
#invitation {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 430px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: #0f0c1a;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
  scroll-behavior: smooth;
}

/* Estado visible */
#invitation.open {
  transform: translateX(-50%) translateY(0);
}

/* ── HERO DE LA INVITACION ─────────────────────────────────── */
.inv-hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 28px 80px;
  position: relative;
  background: linear-gradient(180deg, #0f0c1a 0%, #1a1030 50%, #0f0c1a 100%);
}

/* Patron decorativo de fondo */
.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;
}

.inv-hero-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 20px;
  opacity: 0;
  animation: invFadeUp 0.7s ease 0.3s forwards;
}

.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: 20px;
  opacity: 0;
  animation: invFadeUp 0.8s ease 0.5s forwards;
}

.inv-gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 20px;
  opacity: 0;
  animation: invFadeUp 0.7s ease 0.7s forwards;
}

.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: rgba(245,240,232,0.65);
  margin-bottom: 16px;
  opacity: 0;
  animation: invFadeUp 0.7s ease 0.9s forwards;
}

.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; }

/* ── SECCION GENERICA ──────────────────────────────────────── */
.inv-section {
  padding: 72px 24px;
  position: relative;
}

.inv-section--dark {
  background: rgba(255,255,255,0.025);
}

.inv-section-label {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c9a96e;
  display: block;
  margin-bottom: 10px;
  text-align: center;
}

.inv-section-title {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: #f5f0e8;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.3;
}

/* ── MENSAJE PERSONAL ──────────────────────────────────────── */
.inv-message-text {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.7);
  line-height: 1.9;
  text-align: center;
  font-style: italic;
  max-width: 320px;
  margin: 0 auto;
}

/* ── DETALLES DEL EVENTO ───────────────────────────────────── */
.inv-detail-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.inv-detail-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.inv-detail-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 4px;
}

.inv-detail-value {
  font-size: 0.9rem;
  color: #f5f0e8;
  line-height: 1.5;
}

/* ── COUNTDOWN ─────────────────────────────────────────────── */
.inv-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.inv-cd-item {
  text-align: center;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 12px;
  padding: 16px 8px;
}

.inv-cd-num {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  color: #c9a96e;
  line-height: 1;
  display: block;
}

.inv-cd-label {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
  margin-top: 4px;
  display: block;
}

/* ── BOTON ─────────────────────────────────────────────────── */
.inv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b6914, #c9a96e, #e8d5a3);
  color: #1a1000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(201,169,110,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.inv-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(201,169,110,0.2);
}

/* ── FOOTER ────────────────────────────────────────────────── */
.inv-footer {
  padding: 48px 24px 64px;
  text-align: center;
  border-top: 1px solid rgba(201,169,110,0.15);
}

.inv-footer-name {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #c9a96e;
  margin-bottom: 8px;
}

.inv-footer-hashtag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(201,169,110,0.5);
  text-transform: uppercase;
}

/* ── KEYFRAMES ─────────────────────────────────────────────── */
@keyframes invFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes dotBounce {
  0%, 100% { transform: translateY(0);  opacity: 1;   }
  50%       { transform: translateY(5px); opacity: 0.3; }
}
