.galeria-aliados {
      display: flex;           /* activa flexbox */
      flex-wrap: wrap;         /* permite saltar de línea si no caben */
      gap: 5px;                /* espacio entre elementos */
      justify-content: center; /* centra los hijos en horizontal */
      padding: 20px;           /* espacio interno */
      background: #f0f0f0;     /* fondo gris claro */
      max-width: 1118px;        /* ancho máximo */
      margin: 40px auto;       /* centra y da espacio arriba/abajo */
      border: 1px solid #999;  /* borde gris */
     /* background-image: url("images/imagenes_index/imagen_reg_lado.png"); */
}

.titulo-galeria {
  width: 100%;            /* ocupa todo el ancho dentro de la galería */
  text-align: center;     /* centra el texto */
  font-size: 26px;        /* tamaño grande */
  font-weight: bold;      /* negrita */
  margin-bottom: 25px;    /* espacio con respecto a las imágenes */
  color: #333;            /* color oscuro */
}


    .columna-aliados {
      width: 129px;
      position: relative; /* referencia para el overlay */
    }

    .columna-aliados a {
      display: block;
      position: relative; /* 👈 referencia directa para overlay */
    }

    .columna-aliados a img {
      width: 129px;
       height: 220px; 
      display: block;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    .overlay-aliados {
      position: absolute;   /* se posiciona dentro del <a> */
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
      color: #fff;
      font-size: 14px;
      display: flex;
      align-items: center;   /* centra vertical */
      justify-content: center; /* centra horizontal */
      opacity: 0;            /* oculto por defecto */
      transition: opacity 0.3s ease;
      border-radius: 5px;
    }

    .columna-aliados a:hover .overlay-aliados {
      opacity: 1; /* aparece al hacer hover */
    }

    /* contenedor de navegación */
.nav-botatrsig {
  margin: 10px auto;
  /*width: 76px;*/
  display: flex;
  justify-content: space-between; /* botones extremos */
  align-items: center;            /* centrado vertical */
  min-width: 900px;
  max-width: 1118px;
  /**border: 1px solid #999;**/
  padding: 10px;
  gap: 20px;
}

/* imágenes de botones */
.nav-botatrsig img {
  width: 60px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-botatrsig img:hover {
  transform: scale(1.1);
}

/* título centrado */
.nav-botatrsig h2 {
  flex: 1;                 /* ocupa el espacio central */
  text-align: center;
  font-size: 20px;
  color: #333;
  margin: 0;
}



/**prueba encabezado 2**/
.banner-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #beb7bb;
  padding: 0;
  margin: 0;
}

.banner-links a {
  position: relative;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  padding: 15px 0;
  text-align: left;   /* o center si prefieres centrado */
  display: block;
}

/* Línea divisoria entre enlaces */
.banner-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: #ccc;
}





/**contenido historias **/

.historias {
  background-color: #a0b4c2;  /* gris de la imagen */
  max-width: 1118px;
  margin: 20px auto;
  padding: 40px 20px;
  text-align: center;
}

.historias h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 30px;
}

/* Contenedor de los items */
.historias-container {
  display: flex;
  justify-content: space-around; /* espacio entre círculos */
  gap: 20px;
  flex-wrap: wrap;
}

/* Cada item */
.historia-item {
  background: transparent;
  flex: 0 1 200px;   /* ancho fijo aprox */
  text-align: center;
}

.historia-item a {
  text-decoration: none;
  color: inherit;
}

.historia-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  background: #ddd;
  margin-bottom: 10px;
}

.historia-item h3 {
  font-size: 18px;
  margin: 5px 0;
  font-weight: bold;
  color: black;
}

.historia-item p {
  font-size: 14px;
  margin: 0;
  color: black;
}

/* Ver más */
.ver-mas {
  margin-top: 20px;
  text-align: right; /* manda el texto al borde derecho */
}

.ver-mas a {
  color: white;
  font-size: 20px;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .historia-item img {
    width: 120px;
    height: 120px;
  }
  .historia-item h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .historias-container {
    flex-direction: column;
    align-items: center;
  }
  .historia-item {
    width: 80%;
  }
  .ver-mas {
    text-align: center;
  }
}


/**inicio carusel**/
/**.carrusel {
  margin: 20px;
  border: 1px solid #333;
  height: 311px;
  background: url("images/banner_marcas.png") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 5px;

  /* efecto fade en los bordes */
  /**-webkit-mask-image: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;

  mask-image: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}**/

/**.carrusel-track {
  display: absolute;
  gap: 5px;
  animation: scroll 25s linear infinite;
}

.carrusel img {
  width: 194px;
  height: 106px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #999;
  border-radius: 5px;
  padding: 5px;
  transition: transform 0.3s;
}

.carrusel img:hover {
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}**/

/**contenido marcas **/
.marcas {
  border: 0px solid #999;
  margin: 0px;
  padding: 5px;
  text-align: center;
/**background-color: fuchsia;**/
 /** background-image: url(images/imagenes_index/fondo_banner_marcas.PNG);**/
  background-size: cover;       /* cubre toda el área */
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  display: flex;
  flex-direction: column;       /* para que el h2 quede arriba */
  align-items: center;
  justify-content: flex-start;  /* que no se centre todo al medio */
  height: 313px;                /* <<<<< altura fija del banner */
}

.marcas h2 {
  color: white;
  font-size: 28px;
  margin: 10px 0 20px 0;        /* control del espacio hacia abajo-ala iazquierda-arriba-derecha*/
}

.marcas-container {
  display: flex;
  justify-content: center;
  gap: 0px;                    /* espacio entre logos */
  flex-wrap: wrap;
}

.marcas-item {
  background: transparent;
  flex: 1 1 200px;
  padding: 5px;
  text-align: center;
}

.marcas-item a {
  text-decoration: none;
  color: rgb(248, 8, 168);
  font-size: 20px;
}

.marcas-item img {
  width: 194px;
  height: 106px;
  object-fit: cover;
  border-radius: 0%;
  background: #ddd;
  margin-bottom: 0px;
}

.ver-mas-marcas {
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.ver-mas-marcas a {
  color: rgb(8, 8, 8);
  font-size: 20px;
  text-decoration: none;
}


