/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  display: flex;
  justify-content: center;
}

/* Fondo general */
body {
  font-family: 'EB Garamond', sans-serif;
  background-color: #FFFFFF;
  color: #333;
  overflow-x: hidden;
  width: 100%;

  max-width: 768px;     /* límite de ancho */
  margin: 0 auto;       /* centra en pantallas grandes */
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

/* Oculta por defecto */
.hidden {
  display: none;
}

/* OVERLAY INICIAL */

#desktop-warning {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.warning-box {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

.warning-box h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #333;
}

.warning-box p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

#desktop-warning #logo {
  margin-bottom: 1rem;
}

#view-desktop {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid #333; /* color del borde */
  border-radius: 25px;
  background: transparent;
  text-decoration: none;
  color: #333;
  font-weight: normal;
  transition: 0.3s;
}

#view-desktop:hover {
  background: #AD833C;
  color: #fff;
  border: none;
  transform: scale(1.1);
}

/* OVERLAY INICIAL ENDS */

/* CARTA */

/* --- NUEVO / MODIFICADO: Carta encima del hero --- */
.carta {
  position: fixed;       /* se queda fija sobre hero */
  inset: 0;              /* ocupa toda la pantalla */
  z-index: 10;           /* encima del hero */
  pointer-events: none;  /* no bloquea interacción con hero */
}

.carta-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(0);  /* centrado horizontal + movimiento vertical */
  width: 100%;
  max-width: 768px;
  object-fit: cover;
  will-change: transform, opacity;
  height: 100vh;
}

.carta-arriba { 
  top: 0; 
  z-index: 2; 
}  /* 11.avif encima */

.carta-abajo { 
  bottom: 0; 
  z-index: 1; 
} /* 12.avif debajo */

/* CARTA ENDS */

/* HERO */

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30rem 2rem 3rem; /* mucho padding-top para que hero se vea detrás de carta */
}

.hero-icon {
  width: 80px;
  max-width: 20%;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin: 0;
  font-weight: normal;
}

.hero-names {
  font-size: 2rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 1.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.countdown-item span {
  font-size: 1.5rem;
  font-weight: normal;
}

.countdown-item small {
  font-size: 0.8rem;
  color: #555;
}

/* --- espaciador extra para asegurar scroll --- */
.hero::after {
  content: '';
  display: block;
}

/* HERO ENDS */

/* IMAGEN ANCHA */

.imagen-ancha {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden; /* Asegura que el contenido no se salga si la imagen es más grande */
}

.imagen-ancha img {
  width: 100%;
  height: auto; /* Mantiene las proporciones originales */
  object-fit: cover; /* Recorta la imagen para ajustarse si es necesario */
  display: block; /* Elimina espacios adicionales en imágenes inline */
}

.imagen-ancha video {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Corta o ajusta el video para cubrir toda la pantalla */
}

.imagen-ancha .img-ancha {
  width: 100%;
  height: auto; /* Mantiene las proporciones originales */
  object-fit: cover; /* Recorta la imagen para ajustarse si es necesario */
  display: block; /* Elimina espacios adicionales en imágenes inline */
}

.img-mask-complete {
  /* Máscara: blanco (arriba) visible, transparente (abajo) recortado */
  -webkit-mask-image: url('img/rasgado_completo_mobile.webp');
  -webkit-mask-position: bottom;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;

  mask-image: url('img/rasgado_completo_mobile.webp');
  mask-position: bottom;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.texto-sobre-imagen {
  width: 80%;
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: center;
  font-size: 1.2rem;
  text-shadow: -3px 1px 2px rgb(0 0 0);
}

.texto-sobre-imagen span {
  font-style: italic;
}

/* IMAGEN ANCHA ENDS */

/* COUPLE */

.couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 1rem 6rem;
}

.couple-image-container {
  width: 300px;  /* ajusta según tu diseño */
  height: 200px; /* ajusta según tu diseño */
  -webkit-mask-image: url('img/forma.svg');
  mask-image: url('img/forma.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  overflow: hidden;
}

.couple-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.texto-novia, .texto-novio {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 500px;
}

.texto-novia span, .texto-novio span {
  text-transform: uppercase;
}

.nombre-novia, .nombre-novio {
  font-weight: normal;
  font-size: 1.6rem;
  font-family: 'Rouge Script';
}

.heart-gif {
  width: 80px;
  height: auto;
  margin-top: 1rem;
}

/* COUPLE ENDS */

/* PARALLAX SECTION */

.parallax-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 70vh; /* ajusta según quieras */
  place-items: center;
}

.parallax-img {
  width: 100%;
  height: 120%;        /* más alto que la sección para permitir parallax */
  object-fit: cover;   /* asegura que ocupe todo el contenedor */
  transform-origin: center center;
  will-change: transform;
  position: absolute;
  top: -30%;           /* centra la imagen extra para parallax */
  left: 0;
}

.parallax-text {
  position: absolute;
  top: 10%;
  width: 80%;
  text-align: center;
  color: #333;
  font-size: 1rem;
  pointer-events: none;
}

.parallax-text span {
  font-style: italic;
}

/* PARALLAX ENDS */

/* PADRES */

.padres-section {
  text-align: center;
  margin: 0;          /* evita espacios extras con secciones anteriores */
  padding: 0 0 2rem; /* separación interna */
}

.padres-container {
  padding: 0 2rem;
  margin: -4rem 0 2rem;
}

.padres-header {
  width: 100%;
  display: block;
  margin: 0;           /* pegado a la sección anterior */
}

.padres-text {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}

.padres-title {
  font-family: 'Rouge Script';
  font-weight: normal;
  font-size: 2.5rem;
  margin: 2rem auto;
}

.padres-persona {
  margin-bottom: 2rem;
}

.padres-img {
  width: 150px;         /* ajustable según diseño */
  height: auto;
  border-radius: 10px;  /* opcional */
  display: block;
  margin: 0 auto 1rem;
}

.padres-names {
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.5;
}

/* PADRES ENDS */

/* PADRINOS */

.padrinos-section {
  text-align: center;
  margin: 0;            /* pegado a la sección anterior */
  padding: 2rem 1rem 8rem;   /* espacio interno */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.padrinos-img-header {
  width: 150px;
  display: block;
  margin: 0;            /* pegado a la sección anterior */
}

.padrinos-text {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}

.padrinos-title {
  font-family: 'Rouge Script';
  font-weight: normal;
  font-size: 2.5rem;
  margin: 1rem auto;
}

.padrinos-names {
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.5;
}

/* PADRINOS ENDS */

/* SAVE THE DATE */

.save-date-section {
  text-align: center;
  padding: 0;
}

.date-container {
  padding: 2rem 1rem 0;
}

.save-date-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.save-date-title {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  align-items: flex-end;
}

.save-date-title .font1 {
  font-family: 'EB Garamond';
}

.save-date-title .font2 {
  font-family: 'Rouge Script';
  font-style: italic;
}

.save-date-image-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.5rem; /* espacio blanco entre partes */
  margin-bottom: 1.5rem;
}

.image-part {
  position: relative;
  width: 6rem;  /* ajustable */
  height: 8rem; /* ajustable */
  background-image: url('img/Save The Date M & J. E-66.webp'); /* misma imagen en los tres divs */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Ajustar la porción visible de la imagen para cada div */
.image-part:nth-child(1) { background-image: url('img/partes_01.jpg'); /* misma imagen en los tres divs */ }
.image-part:nth-child(2) { background-image: url('img/partes_02.jpg'); /* misma imagen en los tres divs */ }
.image-part:nth-child(3) { background-image: url('img/partes_03.jpg'); /* misma imagen en los tres divs */ }

.image-part {
  perspective: 600px; /* profundidad 3D */
}

.image-part span {
  display: inline-block;
  color: white;
  font-size: 2rem;
  margin-bottom: 0.5rem;

  /* empieza al revés */
  transform: rotateX(180deg);
  transition: transform 2s ease-out; /* más lento y suave */
  transform-style: preserve-3d;
}

/* Cuando entra en viewport */
.image-part.visible span {
  transform: rotateX(0deg);
}


.date-number {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.full-date-text {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.date-footer {
  width: 100%;
  display: block;
  margin: 0;           /* pegado a la sección anterior */
}

/* SAVE THE DATE ENDS */

/* DETALLES */

.detalles {
  text-align: center;
}

.detalles-container {
  padding: 0 1rem 4rem;
}

.detalles-img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.detalles-titulo {
  font-family: 'Rouge Script';
  font-weight: normal;
  font-size: 3rem;
  margin: 0.5rem 0;
}

.detalles-lugar {
  font-weight: normal;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin: 0.3rem 0;
}

.detalles-direccion {
  font-size: 0.9rem;
  color: #555;
  margin: 1rem 0 0.2rem;
}

.detalles-hora {
  font-family: 'Rouge Script';
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem 0;
}

.detalles-botones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.boton {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid #333; /* color del borde */
  border-radius: 25px;
  background: transparent;
  text-decoration: none;
  color: #333;
  font-weight: normal;
  transition: 0.3s;
}

.boton:hover {
  background: #AD833C;
  color: #fff;
  border: none;
  transform: scale(1.1);
}

/* DETALLES ENds */

/* ITINERARIO */
.itinerario {
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.itinerario h2 {
  font-family: 'Rouge Script';
  font-size: 3rem;
  font-weight: normal;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 0.2fr 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
}

.timeline-img img {
  max-width: 100px; /* ajusta según quieras */
  height: auto;
}

.timeline-line .dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
  bottom: 0;
}

.timeline-line {
  position: relative;
  width: 1px;
  height: 100%;
  margin: 0 auto;
  border-left: 1px dashed #000; 
  background: none;
}

.down-arrow {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-30%) rotate(90deg);
  transform-origin: center;
  font-size: 20px;
}

.timeline-content {
  text-align: center;
  word-wrap: break-word;
}

.timeline-content h3 {
  font-weight: normal;
  text-transform: uppercase;
}

.timeline-content p {
  color: #AD833C;
}

/* ITINERARIO ENDS */

/* MESA DE REGALOS */

.mesa-de-regalos {
  text-align: center;
  margin: 3rem auto;
  max-width: 800px;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mesa-de-regalos h2 {
  font-family: 'Rouge Script';
  font-size: 2.3rem;
  font-weight: normal;
}

.regalos-container {
  margin: 0 8rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mesa-imagen-principal img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.mesa-texto {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #333;
}

.mesa-footer {
  font-size: 0.8rem;
  color: #333;
  width: 80%;
}

.mesa-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: center;
}

.mesa-links a img {
  max-width: 150px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.mesa-links a img:hover {
  transform: scale(1.05);
}

/* MESA DE REGALOS ENDS */

/* POP-UP GIFTS */
.popup_sobre {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup_sobre-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  background-size: contain;
  padding: 0 40px 30px;
  text-align: center;
  border-radius: 8px;
  height: auto;
  width: 350px;
}

.popup_sobre_text {
  font-weight: 100;
  text-align: justify;
}

.popup_sobre_text .frase {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.popup_sobre_text h3 {
  margin: 0;
  line-height: normal;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.close {
  position: relative; /* Relativo al contenedor del popup */
  top: 10px;          /* A 10px del borde superior */
  left: 150px;
  font-size: 24px;
  cursor: pointer;
  color: #000;
  background: none;   /* Sin fondo */
  border: none;
}

@media screen and (max-width: 450px) {

}

@media screen and (max-width: 450px) {
  .h2-popup {
    font-size: 50px;
  }
}

/* POP-UP GIFTS ENDS */

/* POP-UP ENVIAR */
.popup_enviar {
  position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup_enviar-content {
  display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    background-size: contain;
    padding: 0 20px 20px;
    text-align: center;
    border-radius: 8px;
    height: auto;
    width: 400px;
}

.popup_enviar_text h3 {
  margin: 0;
  line-height: normal;
  font-size: 35px;
}

.closeE {
  position: relative; /* Relativo al contenedor del popup */
  top: 10px;          /* A 10px del borde superior */
  left: 150px;
  font-size: 24px;
  cursor: pointer;
  color: #000;
  background: none;   /* Sin fondo */
  border: none;
}

/* POP-UP ENVIAR ENDS */

/* DRESSCODE */

/* Dresscode */
.dresscode {
  text-align: center;
  padding: 2rem 1rem 4rem;
}

.dresscode-img {
  max-width: 250px;
  margin: 0 auto;
  display: block;
  transition: 0.5s;
}

.dresscode-img:hover {
  transform: scale(1.05);
}

.dresscode-title {
  font-family: 'Rouge Script';
  font-weight: normal;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.dresscode-subtitle {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 1rem;
  color: #555;
  letter-spacing: 2px;
}

.dresscode-text {
  font-size: 1rem;
  color: #333;
  max-width: 400px;
  margin: 0 auto;
}

/* DRESSCODE ENDS */

/* RSVP SECTION */

.rsvp-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0 0 0;
}

.rsvp-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/background2.avif");
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 1;
}

.rsvp-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

/* Tarjetas */
.rsvp-card {
  position: relative;
  padding: 2rem 2rem 0;
  width: 100%;
  max-width: 768px;
  text-align: center;
}

.rsvp-tables {
  margin: 2rem 0 0 0;
}

/* Textos */
.rsvp-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 100;
}

.rsvp-card p {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.rsvp-card .rsvp-img {
  width: 180px;
  transition: 0.3s;
}

.rsvp-card .rsvp-img:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (min-width: 769px) {
  .rsvp-container {
    flex-direction: row;
  }
  .rsvp-card {
    flex: 1 1 40%;
  }
}

@media (max-width: 768px) {
  .rsvp-container {
    flex-direction: column;
    gap: 4rem;
  }
  .rsvp-card .rsvp-img {
    width: 120px;
  }

}

.titulo-rsvp .linea {
  font-size: 2.5rem;
  letter-spacing: 1px;
  margin: 0;
  color: #333;
  text-align: center;
  text-transform: uppercase;
}

/* Responsividad */
@media (max-width: 768px) {
  .titulo-rsvp .linea {
    font-size: 1.5rem;
  }
}

.btn-rsvp {
  font-family: 'EB Garamond';
  padding: 0.6rem 1.2rem;
  color: #333;
  background: none;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 140px;
  border-radius: 20px;
  /* Sombra 3D */
  box-shadow: 0px 2px 2px 0px rgb(0 0 0 / 22%);
  border: 1px solid #666;
}

.btn-rsvp:hover {
  background-color: #AD833C;
  color: #fff;
  border: none;
  transform: scale(1.1);
}

.form-control {
  display: block;
  width: 100%;
  height: auto;
  font-size: 0.9rem;
  line-height: 1.42857;
  color: #333;
  margin: 2rem 0 0;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.row:before, .row:after {
  content: " ";
  display: table;
}

.row:after {
  clear: both;
}

.form-component-col-1 {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: auto;
  grid-template-columns: 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.form-component-col-2 {
  grid-column-gap: 0.3rem;
  grid-row-gap: 16px;
  grid-template-rows: auto;
  grid-template-columns: 0.2fr 1fr 0.2fr 1fr;
  grid-auto-columns: 0.2fr 1fr 0.2fr 1fr;
  display: grid;
}

.form-input {
  font-family: 'EB Garamond';
  border: none ;
  color: #FFFFFF;
  background-color: transparent;
  border-radius: 2.3125rem;
  min-height: 52px;
  padding: .9375rem 1.25rem;
  font-size: 0.9rem;
  text-align: left;
}

.form-input::placeholder {
  font-size: 0.9rem;
  line-height: 1.375rem;
  font-weight: 100;
}

.form-input.is-text-area {
  resize: none;
  min-height: 10rem;
  padding-top: .75rem;
  font-size: 0.9rem;
}

.input-spec, .select-spec {
  color: #333;
  vertical-align: middle;
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.42857;
  display: block;
  border: 1px solid #666;
}

.input-spec::placeholder, .select-spec::placeholder {
  color: #333;
}

textarea.input-spec, textarea.select-spec {
  height: auto;
}

label {
  color: #333;
}

/* RSVP SECTION ENS */

/* INVITADOS */

.invitados-section {
  text-align: center;
  width: 90%;
  margin: 2rem auto 0;
  padding: 60px 20px;
  background-color: #D6BD93;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  color: #333;
}

.invitados-section h2 {
  font-size: 1.5rem;
  font-weight: 100;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.invitados-section h3 {
  font-size: 1rem;
  font-weight: 100;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.pases-numero {
  font-size: 2.5rem;
}

.linea-horizontal {
  width: 30%;
  max-width: 300px; /* ajusta si quieres más corta o más larga */
  color: #fff;
  background-color: #333;
  height: 1px;
  margin: 0 auto; /* centrada con espacio arriba/abajo */
}

.pases-subtitulo {
  font-size: 1rem;
  margin: 0.5rem auto;
}

.pases-nota {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 500px;
  margin: 2rem auto 0;
}

/* Responsividad */
@media (max-width: 768px) {
  .pases-nota {
    font-size: 0.9rem;
  }
}

/* INVITADOS ENDS */

/* DECORACIÓN */

/* DECORACIÓN */

.seccion-relativa {
  position: relative;
}

.decoracion {
  position: absolute;
  width: 80px;
  z-index: 2;
  pointer-events: none;

  transform: translateX(0); /* posición final */
  transition: transform 0.1s linear; /* opcional, para suavizar */
}

.decoracion.from-left {
  --start-x: -100px; /* posición inicial fuera de la pantalla */
}

.decoracion.from-right {
  --start-x: 100px;
}

/* Posiciones específicas */
.decoracion-couple {
  width: 300px;
  left: -5%;
  opacity: 1;
  z-index: -1;
  top: -60px;
}

.decoracion-couple-footer {
  width: 300px;
  right: 0;
  opacity: 1;
  bottom: 0;
  transform: translateX(15%) translateY(15%);
}

.decoracion-itinerario {
  width: 500px;
  left: 0;
  opacity: 1;
  top: 0;
}

.decoracion-regalos {
  width: 300px;
  right: -15%;
  opacity: 1;
  top: 0;
  transform: rotateY(180deg);
}

.decoracion-invitados {
  width: 200px;
  left: 0;
  opacity: 1;
  top: 0;
}

/* DECORACIÓN ENDS */

/* PRELOADER */

/* Estilos del pre-loader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#logo {
  font-size: 2rem;
  font-weight: 100;
  color: #AD833C;
  text-transform: uppercase;
}

/* Contenido del loader */
.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Texto de carga */
.loading-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

/* Barra de carga */
.loading-bar {
  width: 200px;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress {
  width: 0%;
  height: 100%;
  background-color: #AD833C;
  animation: progressAnimation 2s infinite;
}

/* Animación de la barra de progreso */
@keyframes progressAnimation {
  0% {
      width: 0%;
  }
  50% {
      width: 70%;
  }
  100% {
      width: 100%;
  }
}

/* PRELOADER ENDS */

/* ANIMACIONES */

.fade-in {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translate(0, 0);
}

/* Desde arriba */
.fade-in-top {
  transform: translateY(-30px);
}
.fade-in-top.show {
  transform: translateY(0);
}

/* Desde abajo */
.fade-in-bottom {
  transform: translateY(30px);
}
.fade-in-bottom.show {
  transform: translateY(0);
}

/* Desde la izquierda */
.fade-in-left {
  transform: translateX(-30px);
}
.fade-in-left.show {
  transform: translateX(0);
}

/* Desde la derecha */
.fade-in-right {
  transform: translateX(30px);
}
.fade-in-right.show {
  transform: translateX(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 1s ease, transform 1s ease;
  display: block; /* para que el picture se comporte como bloque */
  max-width: 100%; /* para que no se salga */
}

.slide-in-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* Opcional: que la img interna ocupe todo el contenedor */
.slide-in-left img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50%);
  transition: opacity 1s ease, transform 1s ease;
  display: block; /* para que el picture se comporte como bloque */
  max-width: 100%; /* para que no se salga */
}

.slide-in-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* Opcional: que la img interna ocupe todo el contenedor */
.slide-in-rigt img {
  width: 100%;
  height: auto;
  display: block;
}

.fall-rotate {
  opacity: 0;
  transform: rotate(-30deg) translateY(-50px); /* empieza rotado y más arriba */
  transform-origin: top center; /* punto de giro arriba */
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.fall-rotate.show {
  opacity: 1;
  transform: rotate(0deg) translateY(0); /* termina en su posición normal */
}

/* ANIMACIONES ENDS */

/* AUDIOS */

/* 🔘 Botón flotante */
  .music-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease;
  }

  .music-bubble:hover {
    transform: scale(1.1);
  }

  /* Overlay inicial (transparente y centrado) */
.tap-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 260ms ease, visibility 260ms ease;
  visibility: visible;
  opacity: 1;
  top: -25%;
}

.tap-overlay-inner{
  padding: 14px 20px;
  border-radius: 12px;
  text-align: center;
  color: #555;
}

.tap-overlay p {
   margin:0; 
   font-weight:600; 
   font-size:1.1rem; }

.tap-overlay small { 
  display:block; 
  margin-top:6px; 
  font-size:0.85rem; 
  opacity:0.95; }

/* clase para ocultar */
.tap-overlay.hidden{ opacity:0; visibility:hidden; pointer-events:none; }


/* AUDIO ENDS */

/* POP-UP */

#mute-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Estilos de la ventana pop-up */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ece8e5;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  width: 500px;
}

.popup-content button, .btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid #333; /* color del borde */
  border-radius: 25px;
  background: transparent;
  text-decoration: none;
  color: #333;
  font-weight: normal;
  transition: 0.3s;
  margin-top: 1rem;
}

.popup-content button:hover, .btn:hover {
  background: #AD833C;
  color: #fff;
  border: none;
  transform: scale(1.1);
}

.popup-content a {
  text-decoration: none;
}

.popup-text {
  width: 400px;
}

.h3-popup {
  color: #AD833C;
  font-size: 30px;
  font-weight: normal;
}

.h2-popup {
  color: #AD833C;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 40px;
  line-height: normal;
}

.popup-p {
  font-weight: 100;
}

.popup-p span {
  font-size: 1.25rem;
}

@media screen and (max-width: 450px) {
  .h2-popup {
    font-size: 1.5rem;
  }
  .popup-p {
    font-size: 16px;
  }
}

@media screen and (max-width: 600px) {
  .popup-text {
    width: 300px;
  }
  .popup-content {
    width: 350px;
  }
}

/* POP-UP ENDS */