html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Estilos generales para el contenedor de ley */
.gacetas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1px;
}
/* Estilo para el elemento select */

/* Estilo para las opciones del select */
/* Ajusta el estilo de la imagen en la opción */
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
    background-size: 15px;
    background-repeat: no-repeat;
    max-width: 100%;
    width: fit-content;
}

/* Ajusta el tamaño de la imagen en las opciones individuales */
.select2-results__option img {
  width: 20px !important; /* Ajusta el tamaño específico de la imagen */
}
/* Estilo para las opciones del menú desplegable */
.img-flag {
  width: 20px; /* Ajusta el tamaño de las banderas según sea necesario */
  margin-right: 5px; /* Espacio entre la bandera y el texto */
}
#languageSelector {
  width: 157px; /* Ajusta el ancho según sea necesario */
}
#languageSelector option {
  padding-left: 10px; /* Ajusta el espacio entre la imagen y el texto según sea necesario */
}
#languageSelector option[data-translation-key="Spanish"]::before {
  content: url("../../imagenes/BanderaMexico.png");
  margin-right: 10px; /* Espacio entre la imagen y el texto */
}

#languageSelector option[data-translation-key="English"]::before {
  content: url("../../imagenes/banderaEU.jpg");
  margin-right: 10px; /* Espacio entre la imagen y el texto */
  width: 50px;
}

#languageSelector option[data-translation-key="Portuguese"]::before {
  content: url("../../imagenes/banderaBrazil.png");
  margin-right: 10px; /* Espacio entre la imagen y el texto */
}
/*-------------------------------------------------------*/


.contenedor {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    overflow: hidden;
    cursor: pointer;
}

/* Estilos para el texto encima de la imagen */
.texto-encima {
    position: absolute;
    border-radius: 10px; /*Orillas del texto*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente para hacer el texto más legible */
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s;
}

.image {
    opacity: 1;
    display: block;
    width: 200px; /* Establecer un ancho fijo para todas las imágenes */
    height: 200px; /* Establecer una altura fija para todas las imágenes */
    object-fit: cover; /* Recortar la imagen para que se ajuste al tamaño especificado */
    transition: .5s ease;
    backface-visibility: hidden;
    margin: 10px; /* Agregar margen uniforme alrededor de cada imagen */
}

.contenedor:hover .image {
    opacity: 0.3;
}

a {
    text-decoration: none; /* Elimina la línea subrayada */
    color: inherit; /* Mantiene el color heredado (generalmente negro) */
}

/* Media Query para pantallas más pequeñas */
@media (max-width: 768px) {
    .contenedor {
        width: 100%;
        max-width: none;
        margin-right: 0;
    }
}

.container {
    max-width: 80%;
    /* Ajustado para abarcar el 80% de la pantalla */
    margin: 0 auto;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#contenedor_banner {
    margin-top: 100px;
    padding: 0px 50px;
    background-image: url("./FondoGaceta.png");
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

#contenedor_banner::before {
    content: "";
    background: rgba(0, 0, 0, 0.62);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.contenedor_logo_titulo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}

.contenedor_logo_titulo img {
    max-width: 200px;
    height: auto;
    display: block;
}

.contenedor_logo_titulo h2 {
    text-shadow: 2px 2px 2px #818181dc;
    text-align: center;
    color: #fcff58;
    font-family: "Helvetica", Sans-serif;
    font-size: 45px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 1px;
}

.contenedor_logo_titulo p {
    font-size: 25px;
    font-weight: 400;
    text-align: justify;
    width: 90%;
    line-height: 1.5;
    margin-top: 1px;
}

.contenedor_logo_titulo h3 {
    text-align: center;
}

.contenedor_logo_titulo h3 span {
    font-size: 25px;
    font-weight: 400;
    text-align: center;
    width: 90%;
    line-height: 1.5;
    text-transform: uppercase;
}
