.navegacion {
  width: 100%;
  z-index: 100;
  background: #fff;
  text-align: center;
  position: relative;
  height: 100px;
  max-height: 100%;
}

.navegacion nav {
  width: 100%;
  max-width: 100%;
  margin: 0px;
  padding: 0px;
  display: block;
}

.boton-menu {
  display: none;
}

.boton-menu span {
  width: relative;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  display: block;
  margin-top: auto;
}

.menu {
  list-style: none;
  width: 100%;
  display: block;
}
.menu ul {
  list-style: none;
  width: 100%;
  display: flex;
  padding: 0;
  margin: 0;
}

.menu li {
  display: inline-block;
}

.menu li a {
  display: block;
  padding: 10px;
  color: #000000;
  text-decoration: none;
  font-family: "verdana";
}

.menu li a:hover {
  background: #00c19f;
}

.text {
  width: 100%;
  max-width: 100%;
  margin: auto;
  margin-top: 20px;
}

.menu li ul {
  display: none;
  position: fixed;
  min-width: 17%;
  max-width: 17%;
}

.menu li:hover > ul {
  display: block;
  background-color: #fff;
}

.menu li ul li {
  position: relative;
  display: inline;
}

.menu li ul li ul {
  right: 0px;
  top: 0px;
}

@media screen and (max-width: 700px) {
  .boton-menu {
    width: 100%;
    margin: auto;
    display: block;
    z-index: 100;
    text-align: left;
    height: auto;
    background-color: #00c19f;
  }

  .navegacion nav {
    position: relative;
    left: -100%;
    width: 215px;
    height: auto;
    background: #00c19f;
    height: auto;
    text-align: center;
  }

  .menu li {
    display: block;
  }
  .menu li ul {
    display: none;
    position: relative;
    min-width: 17%;
    max-width: 17%;
  }
}

/* Cominexo Carrucel */

/* FONDO Y TEXTO GLOBAL */
body {
  color: #f0f0f0; /* Texto claro, no blanco */

  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

/* CONTENEDOR GENERAL DEL CARRUSEL */
.carrusel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ÁREA VISIBLE: SOLO 3 TARJETAS */
.carrusel-viewport {
  width: 100%;
  padding-top: 8px; /* o un poco más si quieres aire */
  overflow: hidden;
}

/* CONTENEDOR INTERNO DESPLAZABLE */
.carrusel {
  display: flex;
  gap: 16px;
  transition: transform 0.3s ease;
}

/* TARJETAS INDIVIDUALES */
.tarjeta {
  flex: 0 0 calc(100% / 3 - 10.66px); /* 3 visibles y resta el gap */
  box-sizing: border-box;
  background: #565555;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.tarjeta:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px);
}

.tarjeta img {
  margin: 0;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.tarjeta h3 {
  margin: 16px 0;
  padding: 0 10px;
  font-size: 1.1rem;
  color: #f0f0f0;
}

/* FLECHAS DE NAVEGACIÓN */
.flecha {
  background: #565555;
  color: #f0f0f0;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flecha:hover {
  background: #444;
}

@media (max-width: 900px) {
  .tarjeta {
    flex: 0 0 calc(100% / 2 - 8px); /* 2 visibles */
  }
}

@media (max-width: 600px) {
  .tarjeta {
    flex: 0 0 100%; /* 1 visible */
  }
}

/* Fin Carrucel */

/* INICIO SECCION GALERIA */
.galeria-seccion {
  max-width: 1050px;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.galeria-seccion img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.galeria-seccion img:hover {
  transform: scale(1.03);
}

/* FIN SECCION GALERIA */

/* EMPIEZA MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
/* Imagen centrada */
.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
/* Botón de cerrar */
.cerrar-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

/* Oculto por defecto */
.hidden {
  display: none;
}
/* FIN MODAL */

@media screen and (max-width: 1140px) {
  .navegacion {
    width: 100%;
    margin: 0px;
    display: block;
    z-index: 100;
    text-align: center;
    height: 150px;
  }
  .menu li ul {
    display: none;
    position: block;
    min-width: 17%;
    max-width: 17%;
  }
}

@media screen and (max-width: 699px) {
  .navegacion {
    width: 100;
    margin: 0px;
    display: block;
    height: 75px;
    z-index: 100;
    text-align: center;
    background-color: #00c19f;
  }
  .menu li ul {
    display: none;
    position: relative;
    min-width: 100%;
    max-width: 100;
  }
}
