/* ======================================
   Graduación Carlos · Académico azul + oro
   ====================================== */

:root {
  --navy:      #0f1e3d;
  --navy-deep: #050d22;
  --navy-soft: #1d3160;
  --gold:      #d4af37;
  --gold-bright:#e8c963;
  --gold-deep: #8a7128;
  --cream:     #f7f3e9;
  --white:     #ffffff;
  --text:      #1a2742;
  --text-soft: #4a5980;
}

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

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

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

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

.hero__cap {
  font-size: 56px;
  margin-bottom: 16px;
  animation: gentleFloat 4s ease-in-out infinite;
}
@keyframes gentleFloat { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

.eyebrow,
.hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero__script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 500;
  color: var(--gold);
  margin-top: 10px;
}

.hero__seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto;
  max-width: 280px;
}
.seal-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.seal-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  font-weight: 700;
}

.hero__date {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-style: italic;
  color: var(--navy);
  margin-top: 18px;
}
.hero__time {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-top: 8px;
}

.hero__photo {
  width: 220px;
  height: 220px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--gold);
  box-shadow: 0 20px 50px rgba(15, 30, 61, 0.3), 0 0 0 14px rgba(212, 175, 55, 0.15);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

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

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

/* ===== Countdown ===== */
.countdown-section {
  background: var(--navy);
  color: var(--cream);
  position: relative;
}
.countdown-section h2 { color: var(--cream); }
.countdown-section .eyebrow { color: var(--gold-bright); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.cd-box {
  background: var(--navy-deep);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 22px 8px 14px;
}
.cd-box span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  color: var(--gold-bright);
  font-weight: 700;
}
.cd-box small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 6px;
  opacity: 0.7;
}

/* ===== Achievements ===== */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 600px;
  margin: 24px auto 0;
}
.ach-box {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 24px rgba(15, 30, 61, 0.12);
}
.ach-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.ach-box small {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

/* ===== Locations ===== */
.loc-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 24px;
  max-width: 480px;
  margin: 24px auto 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 18px 35px rgba(15, 30, 61, 0.12);
}
.loc-icon { font-size: 40px; margin-bottom: 12px; }
.loc-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}
.loc-card p {
  color: var(--text-soft);
  margin-bottom: 18px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.4);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-bright));
  color: var(--navy);
  border: none;
  padding: 14px 32px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(138, 113, 40, 0.4);
}

/* ===== 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: 8px;
  border: 4px solid var(--gold);
}

/* ===== Message ===== */
.message {
  background: var(--navy);
  color: var(--cream);
  margin: 24px auto;
  max-width: 640px;
  border-radius: 12px;
  padding: 50px 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(15, 30, 61, 0.3);
}
.message .eyebrow { color: var(--gold-bright); }
.message__body {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: var(--cream);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 50px 16px 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}
.footer p {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  font-style: italic;
  font-weight: 600;
}
.footer small {
  display: block;
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.6;
}

/* ===== Confetti ===== */
#confetti {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: 1;
}
.confetto {
  position: absolute;
  top: -20px;
  width: 8px; height: 14px;
  animation: confettiFall linear infinite;
  opacity: 0.7;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); }
}

/* ===== 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), var(--gold-bright));
  color: var(--navy);
  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: 48px 12px; }
  .hero { padding: 60px 8px 40px; }
  .countdown { gap: 6px; }
  .cd-box { padding: 16px 4px 10px; }
  .loc-card, .message { padding: 28px 20px; }
  .ach-grid { grid-template-columns: 1fr; }
}
