@import url("https://fonts.googleapis.com/css2?family=Baloo+2&family=Chewy&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Pacifico&display=swap");

@font-face {
  font-family: 'HighSociety';
  src: url('/fonts/HighSociety.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: "Segoe UI", sans-serif;
  background: #dbc2ec;
  color: #333;
  overflow: hidden;
  padding: 50px 20px;
}

/* fonts */

.pacifico-regular {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
}

.chewy-regular {
  font-family: "Chewy", system-ui;
  font-weight: 400;
  font-style: normal;
}

.baloo-2 {
  font-family: "Baloo 2", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Pantalla inicial */
.pantalla-inicial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 1s ease;
  overflow: hidden;
}

.fondo-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.titulo-pantalla-inicial {
  font-family: "HighSociety", sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #725d97;
  margin-bottom: 1rem;
}

.titulo-portada {
  color: #725d97;
  width: 100%;
  z-index: 1;
  position: absolute;
  text-align: center;
}

.titulo-portada p {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: bold;
  margin: 5px;
}

.titulo-portada h1 {
  font-family: "Noto Sans", sans-serif;
  font-size: 3.5rem;
  margin: 5px;
}

.p-pantalla-inicial {
  font-family: "HighSociety", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #725d97;
}

.contenido-inicial {
  position: relative;
  z-index: 1;
  color: white;
  padding: 1.5rem;
}

.titulo {
  font-family: "pacifico", cursive;
  font-weight: 400;
  margin-bottom: 20px;
  color: #89004f;
  font-size: 1.8rem;
}

.parrafo {
  font-family: "Noto Sans", sans-serif;
  font-size: 1.1rem;
  color: #333;
}

.subtitulo {
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  margin-top: 15px;
  color: #725d97;
  font-weight: bold;
}

button {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn-heart {
  background: linear-gradient(145deg, #D8C2F2, #725d97);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 78, 105, 0.4);
  position: relative;
}

.btn-heart.animate {
  animation: heartbeat 0.6s ease;
}

.btn-heart::after {
  content: "💗";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  opacity: 0;
}

.btn-heart.animate::after {
  animation: floatHeart 1s ease;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  10% {
    transform: scale(0.9);
  }

  20% {
    transform: scale(1.1);
  }

  30% {
    transform: scale(1.05);
  }

  40% {
    transform: scale(1.15);
  }

  50% {
    transform: scale(1);
  }
}

@keyframes floatHeart {
  0% {
    opacity: 1;
    top: -30px;
  }

  100% {
    opacity: 0;
    top: -80px;
  }
}

/* Invitación principal */
.invitacion {
  display: none;
  animation: fadeIn 1.5s ease forwards;
  height: 100vh;
  animation: gradientShift 20s ease infinite;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

.nombre {
  font-family: "Billo", sans-serif;
  font-size: 2.5rem;
  color: #6b5b95;
}

.detalles,
.confirmacion,
.itinerario,
.vestimenta {
  padding: 2rem 1.5rem;
  text-align: center;
}

.confirmacion {
 height: 190px;
}

.confirmacion a.btn-heart {
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.detalles .cita {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #89004f;
  text-align: right;
}

.detalles .pensamiento {
  margin-top: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.portada {
  width: 100vw;
  height: 100vh;
  margin-left: -20px;
  /* Compensa el padding left del body */
  margin-right: -20px;
  /* Compensa el padding right del body */
  margin-top: -50px;
  /* Compensa el padding top del body */
  margin-bottom: 30px;
  overflow: hidden;
}

.portada img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.itinerario .timeline {
  margin-top: 4rem;
}

.mapa {
  padding: 0;
  margin: 0;
  text-align: center;
}

.mapa svg,
.confirmacion svg,
.itinerario svg,
.vestimenta svg {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: #89004f;
}

.mapa h3 {
  margin-bottom: 1rem;
}

.mapa h4 {
  margin-bottom: 1.5rem;
}

.map-salon {
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  height: 300px;
  overflow: hidden;
}

.map-salon iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.direccion {
  display: inline-block;
  margin-top: 0.5rem;
  color: #6b5b95;
  margin-bottom: 20px;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* timeline */

.timeline {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 3px;
  background-color: #89004f;
  top: -30px;
  bottom: -30px;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 25px;
}

/* Contenido de cada item */
.timeline-content {
  padding: 0 10px 0 10px;
  height: 50px;
  width: 45%;
  margin: 0 auto;
  position: relative;
  top: 50%;
  transform: translateY(-30%);
}

.timeline-content svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
}

.timeline-content h3 {
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #89004f;
}

.timeline-content p {
  color: #ff69b4;
  line-height: 1.6;
  margin-bottom: 10px;
}

.timeline-content .date {
  display: inline-block;
  font-family: "Noto Sans", sans-serif;
  color: #725d97;
  font-size: 0.8rem;
  font-weight: bold;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #89004f;
  border-radius: 50%;
  /* Hace que sea un círculo */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  /* Centra el círculo */
  z-index: 1;
  /* Coloca el círculo sobre la línea */
}

/* Items a la IZQUIERDA */
.timeline-item.left .timeline-content {
  padding-left: 60px;
  margin-left: 0;
  margin-right: auto;
}

/* Items a la DERECHA */
.timeline-item.right .timeline-content {
  margin-left: auto;
  margin-right: 0;
  padding-right: 60px;
}

.timeline-item.left .timeline-content svg {
  left: 20px;
  /* Pegado al margen izquierdo */
}

/* SVG en tarjetas de la DERECHA - va al borde DERECHO (externo) */
.timeline-item.right .timeline-content svg {
  right: 20px;
  /* Pegado al margen derecho */
}

/* contador */

.contador {
  background: #dbc2ec;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
}

#contador h2 {
  background: #ffe0ff;
  color: white;
  padding: 1rem;
}

#contador {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

#contador>div {
  background: #ffe0ff;
  padding: 25px 10px;
  text-align: center;
}

#contador>div span:first-child {
  display: block;
  font-size: 1.5em;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

#contador>div span:last-child {
  display: block;
  font-size: 0.75em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Carrusel de fotos */
.carrusel-container {
  max-width: 500px;
  width: 100%;
  position: relative;
  margin: auto;
}

.carrusel {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid {
  background: #fff;
  padding: 15px;
  padding-bottom: 60px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 400px;
  position: absolute;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.polaroid-imagen {
  width: 100%;
  aspect-ratio: 4/3;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  color: #999;
  overflow: hidden;
}

.polaroid-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-texto {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  text-align: center;
  font-family: "Courier New", monospace;
  color: #333;
  font-size: 0.9em;
}

/* Posiciones de las fotos apiladas */

.polaroid {
  transform-origin: center center;
}

.polaroid[data-pos="0"] {
  z-index: 5;
  transform: translateY(0) rotate(-2deg) scale(1);
  opacity: 1;
}

.polaroid[data-pos="1"] {
  z-index: 4;
  transform: translateY(-15px) translateX(25px) rotate(4deg) scale(0.95);
  opacity: 0.9;
}

.polaroid[data-pos="2"] {
  z-index: 3;
  transform: translateY(-25px) translateX(-20px) rotate(-3deg) scale(0.9);
  opacity: 0.7;
}

.polaroid[data-pos="3"] {
  z-index: 2;
  transform: translateY(-30px) translateX(15px) rotate(5deg) scale(0.85);
  opacity: 0.5;
}

.polaroid[data-pos="4"] {
  z-index: 1;
  transform: translateY(-35px) translateX(-10px) rotate(-4deg) scale(0.8);
  opacity: 0.3;
}

.polaroid[data-pos="hidden"] {
  z-index: 0;
  transform: translateY(-40px) translateX(0px) rotate(0deg) scale(0.7);
  opacity: 0;
  pointer-events: none;
}

.polaroid:hover[data-pos="0"] {
  transform: translateY(-10px) rotate(-2deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.15);
}

.controles {
  display: none;
}

.control-btn:hover {
  background: #000;
  color: #fff;
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

.indicadores {
  display: none;
}

.indicador {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 600px) {
  .polaroid {
    width: 280px;
    padding: 12px;
    padding-bottom: 50px;
  }

  .carrusel {
    height: 370px;
  }

  .polaroid-texto {
    font-size: 0.8em;
  }

  .control-btn {
    width: 45px;
    height: 45px;
  }

  .polaroid-imagen {
    font-size: 3em;
  }
}

@media (min-width: 768px) {
  body {
    padding: 30px;
    padding-bottom: 50px;
  }

  .portada {
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -30px;
  }

  .titulo-portada {
    top: 80%;
    transform: translateY(-50%);
  }

  .titulo-portada h1 {
    font-size: 4.5rem;
  }

  .titulo-portada p {
    font-size: 1.5rem;
  }

  .contador {
    background: #dbc2ec;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    margin: auto;
  }

  .polaroid {
    width: 450px;
  }

  .parrafo {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
  }

  .titulo {
    font-size: 2.2rem;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-content .date {
    font-size: 0.9rem;
  }

  .subtitulo {
    font-size: 1.2rem;
  }

  .direccion {
    font-size: 1.1rem;
  }

  .mapa svg,
  .confirmacion svg,
  .itinerario svg,
  .vestimenta svg {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .detalles .cita {
    font-size: 1.4rem;
  }
}