@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");
@import url('https://fonts.googleapis.com/css2?family=Englebert&family=Finger+Paint&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: #ffffff;
  color: #333;
  overflow: hidden;
  padding: 0;
}

/* 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: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 1s ease;
}

.titulo-pantalla-inicial {
  font-family: "Englebert", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgb(184, 134, 11);
}

.titulo-portada {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow:  3px 3px 5px rgba(0, 0, 0, 1);
  text-align: center;
  z-index: 2;
  color: rgb(184, 134, 11);
}

.titulo-portada h1 {
  font-size: 4rem; 
  font-family: "Englebert", cursive;
  letter-spacing: 3px;
  margin: 0.5rem 0;
}

.titulo-portada p {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.2rem 0;
}

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

.contenido-inicial {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
  color: white;
  padding: 1.5rem;
}

.titulo {
  font-family: "Englebert", cursive;
  font-weight: 400;
  margin-bottom: 20px;
  color: rgb(184, 134, 11);
  font-size: 2rem;
}

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

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

.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

.btn-entrar {
  padding: 25px 80px;
  background: linear-gradient(45deg, #AEDFF7, #F7AECB);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
  letter-spacing: 5px;
  animation: pulso 1.2s infinite;
}

@keyframes pulso {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn-confirmar {
  padding: 15px 40px;
  background: linear-gradient(45deg, #AEDFF7, #F7AECB);
  text-decoration: none;
  display: block;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
  letter-spacing: 3px;
  transition: transform 0.3s;
}

/* 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;
}

.header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

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

.detalles{
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.detalles h3{
  font-family: "Englebert", cursive;
  font-size: 1.5rem;
  color: rgb(184, 134, 11);
  letter-spacing: 5px;
  font-weight: 600;
}

.detalles h2{
  font-family: "Englebert", cursive;
  font-size: 1.8rem;
  color: rgb(184, 134, 11);
  font-weight: 700;
  letter-spacing: 5px;
}

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

.confirmacion{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding-bottom: 2.5rem !important;
}

.confirmacion a.btn-entrar {
  text-decoration: none;
  display: inline-block;
}

.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 {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

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

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

.mapa {
  text-align: center;
}

.mapa svg,
.itinerario svg,
.vestimenta svg {
  width: 45px;
  height: 45px;
  margin-bottom: 1rem;
  color: rgb(184, 134, 11);
}

.confirmacion h1{
  font-family: "Englebert", cursive;
  letter-spacing: 2px;
  font-weight: bold;
  font-size: 1.8rem;
  color: rgb(184, 134, 11);
}

.confirmacion svg{
  width: 60px;
  height: 60px;
  color: rgb(184, 134, 11);
}

.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;
}

.img-vestimenta {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.img-vestimenta img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 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: rgb(184, 134, 11);
  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: 35px;
  height: 35px;
}

.timeline-content h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #000;
}

.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: #7f7c85;
  font-size: 0.8rem;
  font-weight: bold;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: rgb(184, 134, 11);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* 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;
}

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

/* contador */

.contador {
  background: transparent;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  padding: 10px 10px;
}

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

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

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

#contador>div span:first-child {
  display: block;
  font-family: "finger paint", cursive;
  font-size: 2em;
  font-weight: 400;
  color: rgb(184, 134, 11);
  margin-bottom: 8px;
}

#contador>div span:last-child {
  display: block;
  font-family: "Englebert", cursive;
  font-size: 0.75em;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}

/* Carrusel de fotos */
.carousel-container {
  perspective: 1000px;
  width: 100%;
  max-width: 100%;
  height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.polaroid {
  position: absolute;
  width: 400px;
  height: 450px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px;
  padding-bottom: 40px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1), box-shadow 0.3s ease;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
  border-radius: 2px;
}

.polaroid:hover,
.polaroid:active {
  transform: scale(1.08) translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.polaroid-img {
  width: 100%;
  height: 380px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  overflow: hidden;
  position: relative;
  background: #e0e0e0;
  background-size: cover;
  background-position: center;
}

.polaroid-label {
  margin-top: 12px;
  font-size: 13px;
  color: #333;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.3px;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

button {
  padding: 10px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
  font-weight: 500;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

button:hover {
  background: #f0f0f0;
  border-color: #999;
}

button:active {
  transform: scale(0.98);
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  touch-action: manipulation;
}

.dot.active {
  background: #333;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  h1 {
    font-size: 24px;
  }

  .carousel-container {
    height: 300px;
  }

  .polaroid {
    width: 250px;
    height: 250px;
    padding-bottom: 35px;
  }

  .polaroid-img {
    height: 190px;
  }

  button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .editor-section {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .carousel-container {
    height: 230px;
  }

  .polaroid {
    width: 150px;
    height: 180px;
    padding-bottom: 30px;
  }

  .polaroid-img {
    height: 125px;
  }

  .polaroid-label {
    font-size: 12px;
    margin-top: 8px;
  }
}

@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: transparent;
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    margin: auto;
  }

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


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

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

  #contador>div span:first-child {
    display: block;
    font-family: "Englebert", cursive;
    font-size: 4em;
    font-weight: 400;
    color: #000;
    margin-bottom: 8px;
  }

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

  .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;
  }
}