/* ==== 1. TIPOGRAFÍAS ==== */
@font-face {
  font-family: 'Bayamo';
  src: url('/Tipografias/Bayamo_Regular/Bayamo%20Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'STIXTwoText';
  src: url('/Tipografias/STIX_Two_Text/STIXTwoText-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Breathing';
  src: url('/Tipografias/breathing/Breathing%20Personal%20Use%20Only.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* ==== 2. RESET GENERAL ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==== 3. GLOBAL (body, h1, p, .btn, etc.) ==== */
html, body {
  scroll-behavior: smooth;
  color: #333;
  overflow-x: hidden;
  font-family: 'STIXTwoText', serif; /* Por defecto lo que más se repite en diseño */
  height: 100%;
  scroll-padding-top: 70px;
  overscroll-behavior: none;
  background-color: transparent;
}

h1, h2 {
  text-align: center;
  font-family: 'Breathing', cursive;
  color: #a07a4b;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  font-family: 'STIXTwoText', serif;
  color: #333;
}

.btn {
  display: block;
  width: fit-content;
  margin: 1rem auto;
  background: #b28d5c;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'STIXTwoText', serif;
}

.btn:hover {
  background-color: #9c7a45;
}

/* ==== 4. CABECERA ==== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #899385;
  overflow: hidden;
}

.header .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%); /* Centra en ambos ejes */
  max-width: 25%;
  height: auto;
}

/* ==== 5. CARRUSEL ==== */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
}

.carousel-images {
  display: flex;
  width: 400vw;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-texto {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  background-color: rgba(0, 0, 0, 0.19);
  color: #f2f2f2;
  font-family: 'Breathing', cursive;
  font-size: 1.7rem;
  padding: 0.7rem 0;
  text-align: center;
  z-index: 5;
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  background-color: #687065;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;

  
}

.carousel-btn i {
  transform: rotate(-45deg);
  font-size: 1.5rem;         
  line-height: 1;
  pointer-events: none;
 
}

.carousel-btn.prev {
  left: -15px;
}

.carousel-btn.next {
  right: -15px;
}

.carousel-btn:hover {
  background-color: #4f554d;
}


/* ==== 6. NOS CASAMOS ==== */
.nos-casamos {
  background-color: #899385;
  color: white;
  text-align: center;
  padding: 2.5rem 1rem 4rem;
  min-height: 100vh;
  font-family: 'STIXTwoText', serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  padding-top: 5rem;
}

.titulo-nos-casamos {
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  font-family: 'Breathing', cursive;
  color: white;
}

.img-noscasamos-integrado {
  width: 100vw;
  max-width: unset;
  margin-left: 50%;
  transform: translateX(-50%);
  display: block;
}


.ico-mensaje {
  width: 70px;
  margin: 0.1rem auto 0.6rem auto;
  display: block;
}

.mensaje-novia,
.mensaje-novio {
  font-size: 0.95rem;
  margin: 0.5rem auto;
  padding: 0 1rem;
  line-height: 1.45;
  font-family: 'STIXTwoText', serif;
  text-align: center;
  color: white;
}

.mensaje-novia em,
.mensaje-novio em {
  font-style: italic;
  font-weight: 600;
  display: block;
  margin-bottom: 0.05rem;
}


/* ==== 7. PADRES Y PADRINOS ==== */
.padres-padrinos {
  background-color: #e6e5e3;
  color: #666666;
  font-family: 'STIXTwoText', serif;
  padding: 5rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.padres-padrinos .titulo-seccion {
  font-family: 'Breathing', cursive;
  color: #a07a4b;
  font-size: 2.2rem;
  margin: 3rem 0 1rem;
  text-align: center;
}

.padres-padrinos .subtitulo {
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  margin: 1.2rem 0 0.2rem;
  text-align: center;
}

.padres-padrinos p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.2rem auto 1rem auto;
  max-width: 600px; /* Ajustado para que no se desparrame en pantallas grandes */
  text-align: center; /* Asegura centrado */
}


.hoja-izquierda,
.hoja-derecha {
  position: absolute;
  width: 350px;
  z-index: 0;
}

.hoja-izquierda {
  top: 32rem;
  left: 0;
}

.hoja-derecha {
  top: 8rem;
  right: 0;
}

/* ==== 8. CELEBRACIÓN ==== */
.celebracion {
  background-color: #687065;
  color: white;
  text-align: center;
  font-family: 'STIXTwoText', serif;
  position: relative;
  overflow: hidden;
}

.celebracion-img {
  width: 100%;
  margin-top: 0; /* antes -32px */
  margin-bottom: -10px; /* antes -20px */
  height: auto;
}


.celebracion-info {
  padding: 2.5rem 1rem 2rem;
}

.celebracion-hora {
  font-family: 'STIXTwoText', serif;
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: white;
}

.celebracion-lugar {
  font-family: 'STIXTwoText', serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: white;
}

.celebracion-direccion {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: white;
}

.celebracion-mapa-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 250px;
  background-image: url('assets/Celebración/Celebracion_boton.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.3s ease;
}

.celebracion-mapa-btn:hover {
  background-image: url('assets/Celebración/Celebracion_boton_hover.png');
}

/* ==== 9. RECEPCIÓN ==== */
.recepcion {
  background-color: #899385;
  color: white;
  text-align: center;
  font-family: 'STIXTwoText', serif;
  position: relative;
  overflow: hidden;
}

.recepcion-img {
  width: 100%;
  margin-top: 0;
  margin-bottom: -10px;
  height: auto;
}

.recepcion-info {
  padding: 2.5rem 1rem 2rem;
}

.recepcion-hora {
  font-family: 'STIXTwoText', serif;
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: white;
}

.recepcion-lugar {
  font-style: italic;
  color:white;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.recepcion-direccion {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: white;
}

.recepcion-mapa-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 250px;
  background-image: url('assets/Recepcion/recepcion_boton.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.3s ease;
}

.recepcion-mapa-btn:hover {
  background-image: url('assets/Recepcion/recepcion_boton_hover.png');
}


/* ==== 11. VESTIMENTA ==== */
.vestimenta {
  background-color: #f2f2f2;
  text-align: center;
  font-family: 'STIXTwoText', serif;
  position: relative;
  overflow: hidden;
  z-index: 1; /* Asegura que quede debajo de la franja */
  padding-top: 5rem;
}

.vestimenta-content {
  padding: 1.2rem 1rem 10rem;
  position: relative;
  z-index: 1;
  margin-top: -24px;
}

.vestimenta-icono {
  width: 70px;
  margin: 0.5rem auto 1rem;
  display: block;
}


.vestimenta-titulo {
  font-size: 2.5rem;
  font-family: 'Breathing', cursive;
  color: #a07a4b;
  margin: 0.2rem 0 1.2rem;
}

.vestimenta-formal {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: #666666;
  margin-bottom: 0.5rem;
}

.vestimenta-indicacion {
  font-size: 1.1rem;
  color: #666666;
  margin-bottom: 0.6rem;
}

.vestimenta-ramas {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(5%);
  width: 100%;
  max-width: 400px;
  z-index: 2;
  pointer-events: none;
}


/* ==== 12. MESA DE REGALOS ==== */
.mesa-regalos {
  background-color: #687065;
  color: white;
  text-align: center;
  font-family: 'STIXTwoText', serif;
  padding: 3rem 1rem 1rem;
}

.mesa-regalos-icono {
  width: 70px;
  margin: 1rem auto;
  display: block;
}

.mesa-regalos-titulo {
  font-family: 'Breathing', cursive;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.mesa-regalos-texto {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 auto 2.5rem;
  color: white;
  max-width: 600px;
}

.mesa-regalos-cuentas {
  font-family: 'STIXTwoText', serif;
  font-size: 1.5rem;         /* Igual que el texto anterior */
  color: white;
  line-height: 1.6;          /* Más compacto */
  margin: 1.5rem auto 1rem;
  text-align: center;
}

.mesa-regalos-cuentas p {
  margin: 0.2rem 0;          /* Menos espacio vertical */
  color: white;
}



/* ==== 13. CONTADOR ==== */
.contador {
  background-image: url('assets/Cuenta_regresiva/Cuenta_regresiva-fondo.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  text-align: center;
  font-family: 'STIXTwoText', serif;
  padding: 6rem 1rem 5rem;
  position: relative;
}

.contador-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contador-icono {
  width: 80px;
  margin-bottom: 1rem;
}

.contador-faltan {
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  color: #464646;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.contador-numero {
  font-size: 5rem;
  font-weight: 700;
  font-style: normal;
  color: #464646;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.contador-dias {
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  color: #464646;
  margin-bottom: 0.2rem;
  line-height: 1.5;
}

.contador-mensaje {
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  color: #464646;
  line-height: 1.3;
  margin-top: 1.2rem;
}

.btn-mapa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 0.85rem;
  background-color: #eaeae8;
  color: #687065;
  text-decoration: none;
  border: none;
  border-radius: 50px; /* 🎯 hace el botón más redondo */
  font-family: 'STIXTwoText', serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  margin: 1rem auto;
  gap: 0.6rem;
}

.btn-mapa:hover {
  background-color: #687065;
  color: white;
  transform: scale(1.03);
}
.contador-numeros {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contador-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Breathing', cursive;
  color:  #687065;
}

.contador-box div {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.05rem; /* 🎯 casi pegadito pero legible */
  line-height: 1.4;         /* más compacto verticalmente */
}
.contador-invitaciones {
    margin-top: 10px;
    font-size: 1.8rem;
    color: #555;
}


.contador-box p {
  font-size: 1.2rem;
  font-family: 'STIXTwoText', serif;
  margin-top: 0.4rem; 
  line-height: 1.4;
}
.section-wrapper {
  width: 100vw;
  justify-content: center;
  align-items: center;
  background-color: inherit; /* que tome el color del bg dinámico */
  position: relative;
  overflow: hidden;
}

.carrusel-bg { background-color: #899385; }
.noscasamos-bg { background-color: #899385; }
.padres-padrinos-bg { background-color: #e6e5e3; }
.celebracion-bg { background-color: #687065; }
.recepcion-bg { background-color: #899385; }
.vestimenta-bg { background-color: #f2f2f2; }
.mesa-regalos-bg { background-color: #687065; }
.contador-bg { background-color: #f4f4f4; }



/* ==== 15. ANIMACIONES SCROLL ==== */
.seccion-animada {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;

}

.seccion-animada.visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel,
.pantalla {
  border: none !important;
}
.confirmacion-content {
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.confirmacion-content h2 {
  font-size: 1.7rem;
  font-family: 'Breathing', cursive;
  color:  #687065;
  margin-bottom: 0.5rem;
}

.confirmacion-content p {
  font-family: 'STIXTwoText', serif;
  color: #000000;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.botones-confirmacion {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.boton-confirmar,
.boton-rechazar {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton-confirmar {
  background-color: #4caf50;
  color: white;
}

.boton-rechazar {
  background-color: #f44336;
  color: white;
}

.boton-confirmar:hover {
  background-color: #45a049;
}

.boton-rechazar:hover {
  background-color: #e53935;
}

.mensaje-confirmacion {
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: #ffffff;
  text-align: center;
  background-color: #4caf50;
  padding: 10px;
  border-radius: 10px;
}

/* Modal de Confirmación */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.modal-content h2 {
  margin-bottom: 1rem;
  font-family: 'Breathing', cursive;
  color: #687065;
}

.modal-content p {
  font-family: 'STIXTwoText', serif;
  margin-bottom: 1.5rem;
}

#btnCerrarModal {
  background-color: #687065;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
}

#btnCerrarModal:hover {
  background-color: #555c52;
}


/* ==== ESTILO TIPO IPHONE 14 EN PANTALLAS GRANDES ==== */
@media (min-width: 768px) {

  .logo {
    width: 110px;     /* Tamaño fijo pequeño */
    max-width: unset; /* Evita que el max-width anterior interfiera */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
  }
  
  
  .section-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
    background-color: inherit; /* Se hereda el color de fondo */
  }
  .pantalla {
    width: 450px; /* iPhone 14 como dijiste */
    margin: 0 auto;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  .carousel {
    width: 450px;
    margin: 0 auto;
  }

  .carousel-images {
    width: calc(450px * 4);
  }

  .carousel-images img {
    width: 450px;
    height: 100vh;
    object-fit: cover;
  }

  .img-noscasamos-integrado,
  .celebracion-img,
  .recepcion-img {
    width: 450px;
    height: auto;
  }

  .carrusel-bg {
    background-color: #899385;
  }
  .noscasamos-bg {
    background-color: #899385;
  }
  .padres-padrinos-bg {
    background-color: #e6e5e3;
  }
  .celebracion-bg {
    background-color: #687065;
  }
  .recepcion-bg {
    background-color: #899385;
  }
  .vestimenta-bg {
    background-color: #f2f2f2;
  }
  .mesa-regalos-bg {
    background-color: #687065;
  }
  .contador-bg {
    background-color: #f4f4f4;
  }
  .section-wrapper + .section-wrapper {
    border-top: none;
  }
  body {
    background-color: #899385; /* para prevenir parpadeo entre secciones */
  }
  
  
}
