
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}


#redes-sociales {
  position: fixed;
  right: 5%;
  font-size: 1.5rem;
  z-index: 100;
  position: fixed;
  top: 80%;
  list-style: none;
  transform: rotate(90deg);
}





.menu-item {
  width: 50px;
  height: 50px;
  position: absolute;
  left: 55%;
  line-height: 5px;
  margin: -50px 0 0 -55px;
  border-radius: 50%;
  z-index: -1;
  transition: all 0.3s ease-out;
}

.menu-item a {
  color: #fff;
  position: relative;
  display: block;
  transform: rotate(-90deg);
  margin: auto;
  font-size: 20px;
}


img{
  width: 100%;
  height: auto;
}


img,
.img-fluid,
.slider-item,
.carousel-card img {
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .slider-container {
    height: auto;
    flex-direction: column;
  }

  .slider-item.card {
    width: 100% !important;
    margin-bottom: 1rem;
  }

  .carousel-container {
    max-width: 100vw;
  }

  .carousel-card {
    min-width: 100vw !important;
    padding: 0 !important;
  }
}



.logo{
  margin:auto;
  width: 150px;
  height: 150px;
}

.logo1 {
  width: 50px;
  height: 50px;
}


.titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
}

.card-body{
  display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;

}


.slider-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
    scroll-snap-type: x mandatory;
} 

.slider-container img {
  flex: 0 0 100%;
  width: 80%;
  height: 80%;
  object-fit: cover;
  /* Vamos a añadir esto 👇 */
  scroll-snap-align: center;
}

#boton{
  width: 200px;
  padding: 1rem;
  font-size: 2rem;
}

/* APLICACION */

.explicacion{
  width:50% ;
  height: auto;
  align-items: center;
justify-content: center;
margin: auto;
margin-top: 20px;
background-color: aqua;
margin-bottom: 20px;
}

.linea {
  border-top: 1px solid black;
  height: 2px;
  max-width: 200px;
  padding: 0;
  margin: 20px auto 0 auto;
}

.divider:after,
.divider:before {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}

.text {
  font-size: 2em;
  color:#ff00ff;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;

}

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

 body {
   font-family: Arial, sans-serif;
   background-color: #f7f7f7;
   padding: 20px;
 }

 .carousel-container {
   position: relative;
   width: 100%;
   max-width: 900px;
   margin: auto;
   overflow: hidden;
 }

 .carousel-wrapper {
   display: flex;
   transition: transform 0.5s ease;
 }

 .carousel-card {
   min-width: calc(100% / 3);
   padding: 10px;
   box-sizing: border-box;
 }

 .carousel-card img {
   width: 100%;
   border-radius: 10px;
 }

 /* Botones de navegación */
 .prev,
 .next {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background-color: rgba(0, 0, 0, 0.5);
   color: white;
   border: none;
   padding: 10px;
   cursor: pointer;
 }

 .prev {
   left: 0;
 }

 .next {
   right: 0;
 }

 /* Ocultar los botones de navegación cuando están en los extremos */
 .carousel-wrapper:first-child .prev {
   display: none;
 }

 .carousel-wrapper:last-child .next {
   display: none;
 }

 .menu-container {
   text-align: center;
   margin-top: 50px;
 }

 #menu-button {
   padding: 10px 20px;
   font-size: 16px;
   cursor: pointer;
 }

 #icon-container {
   margin-top: 20px;
 }

 .icon {
   width: 50px;
   height: 50px;
   margin: 0 10px;
 }

 .hidden {
   display: none;
 }

/* Solo en móvil: apilar imágenes verticalmente y ajustar tamaño */
@media (max-width: 768px) {
  .slider-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    height: auto;
  }

  .slider-item.card {
    width: 90%;
    max-width: 320px;
  }
}