.encabezado{
    background-image: url(../assets/img/bodafondo2.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 500px;
    position: sticky;
}

.navbar{
    font-family: "Bitcount Single", system-ui;
    background-color: #00000000 !important;
}

main{
    font-family: "Roboto Condensed", sans-serif;
}


h1{
    color: rgb(44, 44, 44);
    text-align: center;
}
/* Main */
.contenedor{
    display: flex;
    justify-content: center;
    align-items: center;
}

.texto h2{
    font-size: 140px;
}

.separador{
    border: none;
    border-top: 2px solid #ccc;
}

.contenedor-carta{
    background-color: #9c916b;
}

.contenedor-carta h3{
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #FFF;
}

.grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.item-servicio{
    width: 250px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    color: #FFF;
    text-align: center;
}

.item-servicio img{
    width: 50px;
    margin-bottom: 15px;
}

.item-servicio h4{
    margin-bottom: 10px;
    font-size: 20px;
}

.item-servicio p{
    font-size: 14px;
    line-height: 1.4;
}

/* Publicidad */
.publicidad h3{
    text-align: center;
}

.calesita{
    width: 60%;
    margin: 10px auto;
}

/* Icono whatsapp */
.float{
	position:fixed;
	width:50px;
	height:50px;
	bottom:30px;
	right:20px;
	background-color:#ffffff;
	color:#ffffff;
	border-radius:50px;
	text-align:center;
  font-size:30px;
	box-shadow: 2px 2px 3px #999;
  z-index:100;
}
.float:hover {
	text-decoration: none;
	color: #FFF;
  background-color:#1ab152;
  animation-iteration-count: infinite;
}

.my-float{
	margin-top:16px;
}

/* Footer */

.redes-sociales{
    display: flex;
    justify-content: space-between;
    width: 15%;
    height: 15%;
    align-items: center;
}



/* Style Nosotros */

 .nosotros-nosotros{
    background-color: #9c916b;
 }

.nosotros-nosotros img{
    width: 100%;
    height: 500px;
}

.nosotros-nosotros p{
    color: #FFF;
    font-size: 15px;
}



/* Formulario*/
.titulo{
    background-image: url(../assets/img/fondoboda\ \(1\).jpg);
    color: #FFF;
    background-repeat: no-repeat;
    background-size: cover;
}
.titulo h1{
    color: #000000;
}



/*Style boda*/
.lineatemporal h2{
    text-align: center;
}
.lineatemporal h3{
    text-align: center;
}
.lineatemporal p{
   display: flex;
   justify-content: center;
   align-items: center;
   height: 100px;
   text-align: center;
   margin-left: 20%;
   margin-right: 20%;
}

.timeline{
  width: 800px;
  height: 20px;
  list-style: none;
  text-align: justify;
  margin: 80px auto;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 45%,
    rgb(161, 161, 161) 51%,
    rgba(255,255,255,0) 57%,
    rgba(255,255,255,0) 100%);
}
.timeline:after {
  display: inline-block;
  content: "";
  width: 100%;
}
.timeline li {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #9b9b9b;
  text-align: center;
  line-height: 1.2;
  position: relative;
  border-radius: 50%;
}
.timeline li:before {
  display: inline-block;
  content: attr(data-year);
  font-size: 26px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.timeline li:nth-child(odd):before {
  top: -40px;
}
.timeline li:nth-child(even):before {
  bottom: -40px;
}
.timeline li:after {
  display: inline-block;
  content: attr(data-text);
  font-size: 16px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.timeline li:nth-child(odd):after {
  bottom: 0;
  margin-bottom: -10px;
  transform: translate(-50%, 100%);
}
.timeline li:nth-child(even):after {
  top: 0;
  margin-top: -10px;
  transform: translate(-50%, -100%);
}

.preboda{
    border: #000000 solid;
    height: 550px;
    width: 1286px;
    position: relative;
    margin-left: 2.7%;
    background-color: #ffffff;
}

.preboda h3{
    position: absolute;
    top: 30%;
    text-align: center;
    color: #ffffff;
    margin-right: 40%;
    margin-left: 45%;
    text-shadow: 3px 3px 5px rgb(0, 0, 0);
}

.preboda p{
    position: absolute;
    top: 40%;
    text-align: center;
    color: #ffffff;
    margin-left: 30%;
    margin-right: 30%;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

.contenedor-boda{
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.item{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 45%;
    margin-top: 5%;
}

.item img{
    width: 80%;
    height: auto;
    margin-top: 5%;
}

.ceremonia img{
    margin-left: 15%;
    margin-top: 5%;
    width: 70%;
    position: relative;
}   

.caja1 h3{
    position: absolute;
    text-align: center;
    left: 45%;
    top: 350%;
    color: white;
    text-shadow: 3px 3px 5px black;
}

.caja1 p{
    position: absolute;
    text-align: center;
    top: 360%;
    left: 40%;
    right: 40%;
    color: white;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}











/*Modo resposive*/
/* Estilos por defecto (para pantallas pequeñas/móviles) */
/*Inicio*/

@media screen and (max-width: 768px){
    h1 {
  color: rgb(44, 44, 44);
  text-align: center;
  font-size: 2.5em; 
}

.texto h2 {
  font-size: 2.2em;
  text-align: center;
}


.contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
}

/* El video: se ajusta al ancho de la pantalla */
.video {
  width: 100%;
  max-width: 500px;
}

.video video {
  width: 100%;
  height: auto;
}

.texto {
  text-align: justify;
}

.separador {
  width: 80%; 
  margin: 10px auto;
}

}

/*Bodas*/
@media screen and (max-width: 768px) {

  .lineatemporal p {
    margin-left: 5%;
    margin-right: 5%;
    text-align: justify;
  }
  .timeline {
    width: 100%;
    height: auto;
    background: none; /* Elimina la línea de fondo para móviles */
    margin: 20px auto;
    display: block; /* Vuelve a un comportamiento de bloque para que los elementos se apilen */
  }
  .timeline li {
    display: block; /* Cada elemento de la lista ocupa su propia línea */
    width: 90%;
    margin: 10px auto;
  }
  .timeline li:before, .timeline li:after {
    position: static; /* Elimina el posicionamiento absoluto */
    transform: none;
    display: block;
    margin-top: 5px;
  }
  .timeline li:nth-child(odd):before, .timeline li:nth-child(even):before,
  .timeline li:nth-child(odd):after, .timeline li:nth-child(even):after {
    top: auto;
    bottom: auto;
  }
}

/* Estilos de las imágenes y sus contenedores */
.preboda, .ceremonia {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 20px 0;
  border: none;
}

.preboda img, .ceremonia img {
  width: 100%;
  height: auto;
  position: static;
}

.preboda h3, .preboda p, .caja1 h3, .caja1 p {
  position: static;
  text-align: center;
  color: black;
  text-shadow: none;
  margin: 5px 0;
  padding: 0 15px;
}

.contenedor-boda {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  margin-top: 20px;
}

.item img {
  width: 100%;
  height: auto;
  margin-top: 15px;
}
}


/*Nosotros*/
@media screen and (max-width: 768px) {
    .ubicacion{
        width: 100%;
    }
}