/* ============================================
   BAUTIZO - ESTILOS
   ============================================ */

:root {
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark: #a8882e;
  --blue-deep: #1a2a3a;
  --blue-soft: #2c3e50;
  --blue-light: #e8f4fd;
  --blue-pale: #f0f7ff;
  --white: #ffffff;
  --cream: #faf8f5;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--blue-soft);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- PARTICLES ---- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- SECTIONS ---- */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: var(--blue-deep);
  color: var(--white);
}

.section-dark .section-desc {
  color: rgba(255,255,255,0.7);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-icon {
  font-size: 28px;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header .section-desc {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #0f1a2b 0%, #1a2a3a 40%, #2a3f4f 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,168,76,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,168,76,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 24px;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(72px, 15vw, 140px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.hero-date {
  font-size: 18px;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---- DETAILS GRID ---- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue-soft);
}

.detail-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--blue-deep);
}

.detail-main {
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-soft);
}

.detail-sub {
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

.detail-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.detail-link:hover {
  color: var(--gold);
}

/* ---- COUNTDOWN ---- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  min-width: 80px;
}

.countdown-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
}

/* ---- GALLERY CARRUSEL ---- */
.carousel-container {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  gap: 0;
  flex: 1;
  aspect-ratio: 1 / 1;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--gold-dark);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.gallery-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  font-style: italic;
}

.gallery-note code {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* ---- GODPARENTS ---- */
.godparents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 500px;
  margin: 0 auto;
}

.godparent-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.godparent-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-4px);
}

.godparent-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold-light);
}

.godparent-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.godparent-name {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}



/* ---- MUSIC BUTTON ---- */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--gold-light);
  border: 2px solid rgba(201,168,76,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.music-btn:hover {
  transform: scale(1.1);
  border-color: var(--gold);
}

.music-btn.playing {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--blue-soft);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ---- FOOTER ---- */
.footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 14px;
  color: var(--gray);
  border-top: 1px solid #eee;
}

/* ---- RSVP WHATSAPP ---- */
.rsvp-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: var(--shadow);
  text-align: center;
}

.rsvp-card-text {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.7;
}

.rsvp-card .btn svg {
  vertical-align: middle;
  margin-right: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .detail-card { padding: 24px 20px; }
  .rsvp-card { padding: 32px 20px; }
  .countdown { gap: 20px; }
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
