/* ======================================
   Boda Sagrada · Cream + rayos dorados + palomas
   ====================================== */

:root {
  --white:       #ffffff;
  --ivory:       #fefcf3;
  --cream:       #fdf8e8;
  --cream-deep:  #f6efd5;
  --sand:        #ede0bb;
  --gold:        #c9a96a;
  --gold-deep:   #8a7128;
  --gold-soft:   #e8d9b0;
  --accent:      #c9a96a;
  --accent-deep: #8a7128;
  --accent-soft: #f7eed7;
  --text:        #3d2e1f;
  --text-soft:   #6e5944;
  --text-mid:    #b09480;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Cormorant Garamond', serif;
  background:
    radial-gradient(ellipse at top center, rgba(201, 169, 106, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at top, var(--ivory) 0%, var(--cream) 100%);
  color: var(--text);
  line-height: 1.75;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Rayos celestiales en el top */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background:
    conic-gradient(from 180deg at 50% 0%,
      transparent 0deg,
      rgba(201, 169, 106, 0.15) 20deg,
      transparent 30deg,
      rgba(201, 169, 106, 0.1) 50deg,
      transparent 60deg,
      rgba(201, 169, 106, 0.18) 80deg,
      transparent 100deg,
      rgba(201, 169, 106, 0.1) 130deg,
      transparent 180deg);
  pointer-events: none;
  z-index: 1;
  animation: raysShimmer 12s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes raysShimmer {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0.95; }
}

.invite-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 110px 16px 80px;
  position: relative;
}

.hero__cross {
  font-size: 64px;
  color: var(--gold-deep);
  margin-bottom: 24px;
  letter-spacing: 0.2em;
  text-shadow: 0 4px 20px rgba(201, 169, 106, 0.4);
  animation: gentleGlow 4s ease-in-out infinite;
}
@keyframes gentleGlow {
  0%, 100% { text-shadow: 0 4px 20px rgba(201, 169, 106, 0.4); }
  50%      { text-shadow: 0 6px 30px rgba(201, 169, 106, 0.7); }
}

.hero__verse {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 420px;
  margin: 0 auto 28px;
  padding: 18px 0;
  border-top: 1px solid rgba(201, 169, 106, 0.4);
  border-bottom: 1px solid rgba(201, 169, 106, 0.4);
}

.eyebrow, .hero__eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 18px;
  display: block;
}

.hero__title {
  font-family: 'Sacramento', cursive;
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--text);
  line-height: 1;
  font-weight: 400;
}

.hero__amp {
  color: var(--gold-deep);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.5em;
  margin: 0 0.15em;
  vertical-align: middle;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 38px auto 28px;
  max-width: 320px;
}
.hero__divider span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero__divider em {
  font-style: normal;
  color: var(--gold-deep);
  font-size: 1.4rem;
}

.hero__date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-style: italic;
  color: var(--text);
}
.hero__time {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-top: 12px;
}

.hero__photo {
  width: clamp(220px, 50vw, 280px);
  aspect-ratio: 1/1;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--ivory);
  box-shadow:
    0 24px 50px rgba(110, 89, 68, 0.25),
    0 0 0 16px var(--cream-deep);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(5%); }

/* ===== Sections ===== */
section { padding: 70px 16px; text-align: center; }
section + section { border-top: 1px solid rgba(201, 169, 106, 0.18); }

section h2 {
  font-family: 'Sacramento', cursive;
  font-size: clamp(2.8rem, 8vw, 4rem);
  color: var(--text);
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1;
}

/* ===== Our story ===== */
.our-story {
  background: var(--ivory);
  margin: 28px auto 0;
  max-width: 640px;
  border-radius: 4px;
  padding: 50px 36px;
  border: 1px solid rgba(201, 169, 106, 0.4);
  box-shadow: 0 22px 48px rgba(110, 89, 68, 0.12);
  position: relative;
}
.our-story::before, .our-story::after {
  content: ''; position: absolute;
  width: 50px; height: 50px;
  border: 2px solid var(--gold);
}
.our-story::before { top: 8px;    left: 8px;    border-right: none; border-bottom: none; }
.our-story::after  { bottom: 8px; right: 8px;   border-left: none;  border-top: none; }
.our-story p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--text);
  line-height: 1.85;
}

/* ===== Countdown ===== */
.countdown-section { background: var(--cream-deep); }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 480px;
  margin: 30px auto 0;
}
.cd-box {
  background: var(--ivory);
  border: 1px solid rgba(201, 169, 106, 0.35);
  border-radius: 4px;
  padding: 24px 8px 16px;
  box-shadow: 0 10px 22px rgba(110, 89, 68, 0.1);
}
.cd-box span {
  display: block;
  font-family: 'Sacramento', cursive;
  font-size: clamp(2.3rem, 7vw, 3rem);
  color: var(--gold-deep);
  line-height: 1;
}
.cd-box small {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-top: 10px;
}

/* ===== Cards ===== */
.card-elegant {
  background: var(--ivory);
  border: 1px solid rgba(201, 169, 106, 0.35);
  border-radius: 4px;
  padding: 42px 26px;
  max-width: 500px;
  margin: 26px auto 0;
  box-shadow: 0 22px 42px rgba(110, 89, 68, 0.1);
  position: relative;
}
.card-elegant::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 3px;
  background: var(--gold);
}
.card-elegant__icon {
  font-size: 38px;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.card-elegant h3 {
  font-family: 'Sacramento', cursive;
  font-size: 2.3rem;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1;
}
.card-elegant p {
  color: var(--text-soft);
  margin-bottom: 22px;
  font-style: italic;
  font-size: 1.1rem;
}

/* ===== Family ===== */
.family-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 620px;
  margin: 30px auto 0;
}
.family-card {
  background: var(--ivory);
  border: 1px solid rgba(201, 169, 106, 0.3);
  border-radius: 4px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(110, 89, 68, 0.08);
}
.family-card small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.family-card strong {
  font-family: 'Sacramento', cursive;
  font-size: 2.2rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.1;
  display: inline-block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn:hover {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-soft));
  color: var(--ivory);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(138, 113, 40, 0.4);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--ivory);
  border: none;
  padding: 15px 36px;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  border: 8px solid var(--ivory);
  box-shadow: 0 14px 30px rgba(110, 89, 68, 0.15);
  filter: sepia(5%);
}

/* ===== Gift ===== */
.gift-card {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream-deep) 100%);
  border: 1px solid rgba(201, 169, 106, 0.4);
  border-radius: 4px;
  padding: 42px 28px;
  max-width: 540px;
  margin: 28px auto 0;
  box-shadow: 0 22px 45px rgba(110, 89, 68, 0.12);
}
.gift-card__icon { font-size: 48px; margin-bottom: 12px; }
.gift-card a { color: var(--gold-deep); word-break: break-all; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; }

/* ===== Message ===== */
.message {
  background: var(--ivory);
  margin: 30px auto;
  max-width: 640px;
  border-radius: 4px;
  padding: 60px 32px;
  border: 1px solid rgba(201, 169, 106, 0.3);
  position: relative;
}
.message::before {
  content: '✟';
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  background: var(--ivory);
  padding: 0 14px;
  color: var(--gold-deep);
  font-size: 30px;
}
.message__body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--text);
  line-height: 1.85;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 70px 16px 40px;
  border-top: 1px solid rgba(201, 169, 106, 0.25);
}
.footer p {
  font-family: 'Sacramento', cursive;
  font-size: 2.8rem;
  color: var(--gold-deep);
  line-height: 1;
}
.footer small {
  display: block;
  margin-top: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mid);
  opacity: 0.6;
}

/* ===== Palomas volando ===== */
#doves { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.dove {
  position: absolute;
  font-size: 26px;
  opacity: 0.35;
  animation: doveFly linear infinite;
}
@keyframes doveFly {
  from { transform: translateX(-80px); }
  to   { transform: translateX(110vw); }
}

/* ===== Music ===== */
.music-btn {
  position: fixed; bottom: 18px; right: 18px;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--ivory);
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(138, 113, 40, 0.45);
  transition: transform 0.3s ease;
}
.music-btn:hover { transform: scale(1.1); }

@media (max-width: 480px) {
  .invite-wrap { padding: 0 16px; }
  section { padding: 50px 12px; }
  .hero { padding: 80px 8px 50px; }
  .countdown { gap: 8px; }
  .cd-box { padding: 18px 4px 12px; }
  .card-elegant, .message, .our-story, .gift-card { padding: 32px 22px; }
  body::before { width: 100%; }
}
