/* ======================================
   Boda Romántica · Floral pastel
   ====================================== */

:root {
  --blush:       #f4c2c2;
  --blush-soft:  #fce7e7;
  --blush-deep:  #d49595;
  --sage:        #a8b5a0;
  --sage-soft:   #d4dccc;
  --sage-deep:   #7a8a72;
  --cream:       #fdf8f3;
  --gold:        #c9a96a;
  --text:        #4a3030;
  --text-soft:   #7a6060;
  --white:       #ffffff;
}

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

body {
  font-family: 'Cormorant Garamond', serif;
  background:
    radial-gradient(ellipse at top, var(--blush-soft) 0%, var(--cream) 60%);
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

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

.hero__ornament {
  font-size: 40px;
  color: var(--blush-deep);
  margin-bottom: 18px;
  animation: gentleFloat 5s ease-in-out infinite;
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

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

.hero__title {
  font-family: 'Allura', cursive;
  font-size: clamp(3.5rem, 12vw, 6rem);
  color: var(--text);
  line-height: 1;
  font-weight: 400;
}

.hero__amp {
  color: var(--gold);
  font-style: italic;
  margin: 0 0.2em;
}

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

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

.hero__photo {
  width: clamp(200px, 50vw, 260px);
  aspect-ratio: 1/1;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: 0 20px 50px rgba(212, 149, 149, 0.35), 0 0 0 12px var(--blush-soft);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Sections ===== */
section { padding: 60px 16px; text-align: center; }

section h2 {
  font-family: 'Allura', cursive;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1;
}

/* ===== Countdown ===== */
.countdown-section { background: rgba(252, 231, 231, 0.4); }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 460px;
  margin: 30px auto 0;
}
.cd-box {
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: 16px;
  padding: 22px 8px 14px;
  box-shadow: 0 10px 22px rgba(212, 149, 149, 0.18);
}
.cd-box span {
  display: block;
  font-family: 'Allura', cursive;
  font-size: clamp(2rem, 7vw, 2.8rem);
  color: var(--blush-deep);
  line-height: 1;
}
.cd-box small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 8px;
  font-family: 'Cormorant Garamond', serif;
}

/* ===== Cards (locations + family) ===== */
.card-elegant {
  background: var(--white);
  border: 1px solid rgba(168, 181, 160, 0.3);
  border-radius: 18px;
  padding: 36px 24px;
  max-width: 480px;
  margin: 24px auto 0;
  box-shadow: 0 18px 35px rgba(122, 96, 96, 0.12);
}
.card-elegant__icon { font-size: 38px; margin-bottom: 12px; color: var(--sage-deep); }
.card-elegant h3 {
  font-family: 'Allura', cursive;
  font-size: 2rem;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1;
}
.card-elegant p {
  color: var(--text-soft);
  margin-bottom: 18px;
  font-style: italic;
  font-size: 1.05rem;
}

/* ===== Family blocks ===== */
.family-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 600px;
  margin: 24px auto 0;
}
.family-card {
  background: var(--white);
  border: 1px solid rgba(168, 181, 160, 0.3);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(122, 96, 96, 0.1);
}
.family-card small {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 6px;
}
.family-card strong {
  font-family: 'Allura', cursive;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  display: inline-block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: var(--sage-deep);
  border: 1px solid var(--sage);
  border-radius: 999px;
  transition: all 0.3s ease;
}
.btn:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(122, 138, 114, 0.3);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--blush-deep));
  color: var(--white);
  border: none;
  padding: 14px 36px;
  box-shadow: 0 12px 28px rgba(212, 149, 149, 0.35);
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 14px;
  border: 6px solid var(--white);
  box-shadow: 0 12px 28px rgba(122, 96, 96, 0.15);
}

/* ===== Message ===== */
.message {
  background: var(--white);
  margin: 24px auto;
  max-width: 600px;
  border-radius: 22px;
  padding: 42px 28px;
  border: 1px solid rgba(168, 181, 160, 0.2);
  box-shadow: 0 18px 40px rgba(122, 96, 96, 0.1);
}
.message__body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: var(--text);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 50px 16px 30px;
  border-top: 1px solid rgba(168, 181, 160, 0.2);
}
.footer p {
  font-family: 'Allura', cursive;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.footer small {
  display: block;
  margin-top: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.6;
}

/* ===== Pétalos cayendo ===== */
#petal-rain {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: 1;
}
.petal {
  position: absolute;
  top: -40px;
  font-size: 22px;
  animation: petalFall linear infinite;
  opacity: 0.6;
}
@keyframes petalFall {
  to { transform: translateY(110vh) rotate(360deg); }
}

/* ===== Music ===== */
.music-btn {
  position: fixed;
  bottom: 18px; right: 18px;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--blush-deep));
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(212, 149, 149, 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: 48px 12px; }
  .hero { padding: 70px 8px 50px; }
  .countdown { gap: 8px; }
  .cd-box { padding: 16px 4px 10px; }
  .card-elegant, .message { padding: 28px 20px; }
}
