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

/* BODY */
body {
  font-family: 'Playfair Display', serif;
  background: radial-gradient(circle at top, #1a0f11, #0b0b0b);
  color: #f5f5f5;
  line-height: 1.8;
  font-size: 18px;
  letter-spacing: 0.5px;
}

/* HERO */
.hero {
  height: 100vh;
  background: url('./img/001.JPG') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* OVERLAY OSCURO */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
  z-index: 1;
}

.overlay {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.04);
  padding: 80px;
  border-radius: 30px;
  text-align: center;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

/* TITULO */
.title {
  font-family: 'Great Vibes', cursive;
  font-size: 5em;
  letter-spacing: 3px;
  margin-bottom: 10px;
  animation: fadeInDown 1.5s ease;
  background: linear-gradient(45deg, #ffffff, #f1c6c6, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* FRASE */
.frase {
  font-size: 1.3em;
  max-width: 600px;
  margin: 20px auto;
  opacity: 0.9;
  font-style: italic;
}

/* FECHA */
.date {
  font-size: 2rem;
  margin-top: 10px;
  letter-spacing: 2px;
}

/* COUNTDOWN */
.countdown {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.countdown div {
  padding: 15px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 1.2em;
}

/* SCROLL */
.scroll-indicator {
  margin-top: 20px;
  font-size: 1.5em;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

/* INVITACIÓN */
.invitation {
  padding: 120px 20px;
  display: flex;
  justify-content: center;
}

.card {
  max-width: 600px;
  text-align: center;
  padding: 60px 40px;
  border-radius: 25px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* TEXTO INVITACIÓN */
.intro-text {
  letter-spacing: 2px;
  font-size: 0.9em;
  opacity: 0.7;
}

.parrafo-especial {
  text-align: center;
}

.names {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5em;
  margin: 20px 0;
  background: linear-gradient(45deg, #ffffff, #f1c6c6, #ffffff);
  -webkit-background-clip: text;
}

.invite-text {
  font-size: 1.2em;
  margin-bottom: 20px;
}

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

/* Asegura que el contenido quede encima */
.hero, .invitation, .event, .timeline, .location, .gifts, .rsvp {
  position: relative;
  z-index: 2;
}

/* SECCIONES */
.section-title {
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 3em;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

/* EVENTO */
.event {
  padding: 100px 20px;
}

.event-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.event-card {
  background: rgba(255,255,255,0.04);
  padding: 30px;
  border-radius: 20px;
  width: 280px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  transition: all 0.4s ease;
}

.event-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

/* TIMELINE */
.timeline {
  position: relative;
  width: 85%;
  margin: 120px auto;
}

.line {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #7a1f2b, transparent);
}

.step {
  position: relative;
  width: 50%;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.step.show {
  opacity: 1;
  transform: translateY(0);
}

.step.left {
  left: 0;
}

.step.right {
  left: 50%;
}

.content {
  padding: 20px;
}

.content img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  transition: all 0.5s ease;
}

.content img:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* TEXTO TIMELINE */
.text h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2em;
  margin-bottom: 10px;
}

.text p {
  opacity: 0.9;
}

/* PALETA */
.palette {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.color {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.c1 { background: #6e1c1c; }
.c2 { background: #8c2f2f; }
.c3 { background: #a85757; }
.c4 { background: #c47c7c; }

/* UBICACIÓN */
.location {
  padding: 50px 20px;
  text-align: center;
}

.maps-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* BOTONES */
.btn-map,
.btn-whatsapp {
  position: relative;
  overflow: hidden;
  padding: 12px 25px;
  border-radius: 40px;
  text-decoration: none;
  color: white;
  font-size: 1em;
  transition: all 0.3s ease;
}

.btn-map::after,
.btn-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-map:hover::after,
.btn-whatsapp:hover::after {
  opacity: 1;
}

.btn-map:hover,
.btn-whatsapp:hover {
  transform: scale(1.05);
}

.google { background: #4285F4; }
.waze { background: #33ccff; }

.btn-whatsapp {
  background: #25D366;
  display: inline-block;
  margin-top: 20px;
  padding: 15px 35px;
  font-size: 1.1em;
}

/* REGALOS */
.gifts {
  padding: 100px 20px;
  text-align: center;
}

/* RSVP */
.rsvp {
  padding: 20px 20px;
  text-align: center;
}

/* ANIMACIONES */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* RESPONSIVE */
@media (max-width: 768px) {

  .title {
    font-size: 3em;
  }

  .overlay {
    padding: 40px;
  }

  .step {
    width: 100%;
    left: 0 !important;
  }

  .line {
    display: none;
  }

  .event-grid {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {

  /* BODY */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO */
  .hero {
    height: auto;
    padding: 60px 20px;
  }

  .overlay {
    padding: 30px 20px;
    border-radius: 20px;
  }

  /* TITULO */
  .title {
    font-size: 2.5em;
    letter-spacing: 1px;
  }

  .frase {
    font-size: 1em;
    max-width: 100%;
  }

  .date {
    font-size: 1.5rem;
  }

  /* COUNTDOWN */
  .countdown {
    flex-wrap: wrap;
    gap: 10px;
  }

  .countdown div {
    font-size: 1em;
    padding: 10px 12px;
  }

  /* INVITACIÓN */
  .invitation {
    padding: 80px 15px;
  }

  .card {
    padding: 40px 20px;
  }

  .names {
    font-size: 2.5em;
  }

  .invite-text {
    font-size: 1em;
  }

  /* SECCIONES */
  .section-title {
    font-size: 2.2em;
  }

  /* EVENTOS */
  .event {
    padding: 80px 15px;
  }

  .event-grid {
    flex-direction: column;
    align-items: center;
  }

  .event-card {
    width: 100%;
    max-width: 320px;
  }

  /* TIMELINE */
  .timeline {
    width: 100%;
    margin: 80px auto;
  }

  .step {
    width: 100%;
    left: 0 !important;
    margin-bottom: 50px;
  }

  .line {
    display: none;
  }

  .text h2 {
    font-size: 1.8em;
  }

  /* IMÁGENES */
  .content img {
    border-radius: 15px;
  }

  /* PALETA */
  .color {
    width: 35px;
    height: 35px;
  }

  /* MAPS */
  .maps-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .btn-whatsapp {
    width: 100%;
    padding: 14px;
  }

  /* GIFTS */
  .gifts {
    padding: 80px 15px;
  }

  /* RSVP */
  .rsvp {
    padding: 60px 15px;
  }

}