/* =========================
   VARIABLES DE COLOR
========================= */
:root {
  --rosa-suave: #f3c6d3;
  --rosa-claro: #fdecef;
  --dorado: #c9a24d;
  --dorado-brillo: linear-gradient(135deg, #f5d98f, #c9a24d, #9f7c19);
  --texto-oscuro: #3b3b3b;
  --blanco: #ffffff;
}

/* =========================
   RESET BÁSICO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  background: var(--rosa-claro);
  color: var(--texto-oscuro);
  text-align: center;
  overflow-x: hidden;
}

/* =========================
   DECORACIONES LATERALES
========================= */
.decor {
  position: fixed;
  top: 50%;
  width: 180px;
  opacity: 0.2;
  transform: translateY(-50%);
  z-index: 0;
}

.decor-left {
  left: -40px;
}

.decor-right {
  right: -40px;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding: 60px 20px;
  background: var(--blanco);
  z-index: 1;
}

.hero h1.script {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  background: var(--dorado-brillo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.hero h2 {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem; /* más grande */
  font-weight: 600;
  margin-top: 10px;
}

/* =========================
   FOTO PRINCIPAL
========================= */

.photo-frame {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 20px;
  border-radius: 18px;
  padding: 6px;
  background: var(--dorado-brillo);
}


.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}


/* =========================
   FECHA Y LUGAR
========================= */
.date,
.place {
  font-size: 1.1rem;   /* +1 punto aprox */
  font-weight: 700;    /* negrita */
  margin: 6px 0;
}

.date i,
.place i {
  color: #c9a24d; /* dorado */
  margin-right: 8px;
  font-size: 1.2em;
}


/* =========================
   CONTADOR
========================= */
.countdown {
  background: var(--rosa-suave);
  padding: 40px 20px;
}

.countdown h3 {
  margin-bottom: 20px;
  font-size: 1.6rem;
}

#timer {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

#timer div {
  background: var(--blanco);
  border-radius: 14px;
  padding: 18px 22px;
  min-width: 90px;
  border: 2px solid var(--dorado);
  box-shadow: 0 8px 18px rgba(201,162,77,0.25);
}


#timer span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--dorado);
}

/* =========================
   RSVP
========================= */
.rsvp {
  padding: 60px 20px;
  background: var(--blanco);
}

.rsvp h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

/* =========================
   FORMULARIO PASO A PASO
========================= */
form {
  max-width: 420px;
  margin: 0 auto;
}

.step {
  display: none;
  animation: fade 0.4s ease;
}

.step.active {
  display: block;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: none;
  height: 100px;
}

/* =========================
   BOTONES
========================= */
button {
  background: var(--dorado-brillo);
  color: var(--blanco);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 20px rgba(201,162,77,0.45);
}


/* =========================
   ANIMACIONES
========================= */
@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .photo-frame {
    max-width: 100%;
    padding: 4px;
  }

  .carousel {
    max-width: 100%;
  }

}

/* =========================
   PANTALLA DE AGRADECIMIENTO
========================= */
.thank-you {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.thank-you h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: var(--dorado-brillo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.thank-you p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.slide {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slide.active {
  opacity: 1;
  position: relative;
}


.hero {
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from {opacity:0; transform: translateY(20px);}
  to {opacity:1; transform: translateY(0);}
}


.decor {
  opacity: 0.6;
}

.photo-frame {
  position: relative;
  box-shadow: 
    0 10px 25px rgba(201,162,77,0.35),
    0 0 20px rgba(201,162,77,0.25);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow:
      0 10px 25px rgba(201,162,77,0.25),
      0 0 15px rgba(201,162,77,0.15);
  }
  to {
    box-shadow:
      0 14px 35px rgba(201,162,77,0.45),
      0 0 28px rgba(201,162,77,0.35);
  }
}

.slide {
  backface-visibility: hidden;
}

body {
  background: linear-gradient(180deg, #fdecef 0%, #ffffff 60%);
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(201,162,77,0.8);
  border-radius: 50%;
  animation: float 12s linear infinite;
}

@keyframes float {
  from { transform: translateY(100vh); opacity: 0; }
  50% { opacity: 0.8; }
  to { transform: translateY(-10vh); opacity: 0; }
}

.thank-you {
  animation: popIn 0.8s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.music-box {
  margin-top: 25px;
  text-align: center;
}

.music-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #b08a3c;
  margin-bottom: 12px;
}

/* ====== AJUSTE MÓVIL PARA FOTOS GRANDES ====== */
@media (max-width: 768px) {

  .photo-frame {
    max-width: 92%;
  }

  .carousel {
    max-width: 92%;
  }

  .slide {
    width: 100%;
    height: auto;
    border-radius: 18px;
  }

}
