

/* Effra Medium (peso 500) */
@font-face {
  font-family: 'Effra';
  src: url('../fonts/Effra-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

/* Effra Bold (peso 700) */
@font-face {
  font-family: 'Effra';
  src: url('../fonts/Effra Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

body, .navbar, .nav-link {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.carousel {
  position: relative;
  z-index: 1;
}
header, .navbar {
  z-index: 1000;
}

/* Usar Bold solo en títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Effra', Arial, sans-serif;
  font-weight: 700; /* Bold */
}
.invisible-o {
  color: #343a40; /* mismo color que el fondo */
  visibility: hidden;
}


body {
  font-family: 'Effra', Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
    margin: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
  min-height: 100%;
  height: auto;
  overflow-y: auto;
}

header {
    width: 100%;
    background: url('imagen.jpg') no-repeat center center;
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.banner-container {
  position: relative;
  display: inline-block;
}

.link-ubicacion {
  position: absolute;
  top: 1%;   
  left: 25.5%;  
  width: 35%;  
  height: 25%; 
  display: block;
}
.link-yt {
  position: absolute;
  top: 1%;   
  left: 84%;  
  width: 1.5%;  
  height: 25%; 
  display: block;
}
.link-fb {
  position: absolute;
  top: 1%;   
  left: 86.2%;  
  width: 1.5%;  
  height: 25%; 
  display: block;
}

.link-gobmexicali {
  position: absolute;
  top: 20%;   
  left: 25%;  
  width: 12%;  
  height: 40%; 
  display: block;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #4d4d4d; 
  color: #ffffff !important;
  font-family: 'Effra', Arial, sans-serif;	
}

.navbar {
    background-color: #343a40;
    position: fixed;
    top: 0; /* Para que la navbar no se solape con el header */
    padding-right: 2px; /* o 4px */	
    left: 0;
    width: 100%;
    z-index: 1000;	
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff !important;   /* Blanco */
  font-size: 15px;             /* Más grande */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus 
.navbar-nav .nav-link:active {	
    color: #c59e73 !important; /* Cambia el color al pasar el mouse o enfocar */
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.submenu {
    display: none;
    padding-left: 15px;
}

main {
    margin-top: calc(100px + 56px); /* Altura estimada de header + navbar */
    flex: 1;
    padding: 20px;
}

#contenido-dinamico {
  min-height: 100vh;
  overflow: visible;
  padding-bottom: 4rem;
}


.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: auto;
  max-height: 500px;
}

.text-video-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.text-video-section .texto, 
.text-video-section .video {
    width: 100%; /* Ocuparán el 100% en pantallas pequeñas */
}

@media (min-width: 768px) {
    .text-video-section .texto,
    .text-video-section .video {
        width: 50%;
    }
}

.contenedores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.contenedor {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

html, body {
    height: 100%;
}

.contenedor-principal {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.contenido {
    flex: 1;
}

footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
}

/* botones diseño*/

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

/* Botón primario */
.btn-primary {
    background-color: #841833; 
    color: white;
}

.btn-primary:hover {
    background-color: #571e28; /* Azul más oscuro */
}

/* Botón secundario */
.btn-secondary {
    background-color: #6c757d; /* Gris Bootstrap */
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62; /* Gris más oscuro */
}

/* Botón de éxito (verde) */
.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

/* Botón de advertencia (amarillo) */
.btn-warning {
    background-color: #ffc107;
    color: black;
}

.btn-warning:hover {
    background-color: #e0a800;
}

/* Botón de peligro (rojo) */
.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #bd2130;
}

/* Botón de información (azul claro) */
.btn-info {
    background-color: #17a2b8;
    color: white;
}





/* lineas doradas subtitulos */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: #c59e73;
}
.divider-gold {
    border-top: 2px solid #c59e73;
    margin: 2rem 0;
}


/*botón de infografias*/
.btn-outline-warning {
    border-width: 2px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-outline-warning:hover {
    background-color: #c59e73;
    color: black;
}


/*style nuevo boletines*/

.boletines-bg {
    background-image: url('imagenes/fondo_boletines.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
}

.boletines-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* oscurece la imagen para mejor contraste */
    z-index: 1;
}

.boletines-bg .container {
    position: relative;
    z-index: 2;
}


/*style nuevo infografia*/

.infografias-bg {
    background-image: url('imagenes/fondo_infografias.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
}

.infografias-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* oscurece la imagen para mejor contraste */
    z-index: 1;
}

.infografias-bg .container {
    position: relative;
    z-index: 2;
}

/* Botón infografias */
.btn-white-custom {
    background-color: #c59e73;
    color: black;
    font-weight: bold;
    border: 2px solid white;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-white-custom:hover {
    background-color: gold;
    color: black;
    border-color: gold;
}



/* html de infografías */

body {
  background: #f8f9fa;
}

.infografia-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.infografia-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.infografia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.infografia-card:hover img {
  transform: scale(1.05);
}

/* Estilo del ícono de reproducción en miniaturas de video */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  text-shadow: 0 0 10px black;
  pointer-events: none;
}

/* Fondo oscuro del modal */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}


/* Texto de la infografía*/


.infografia-descriptiva {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.infografia-descriptiva:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.infografia-descriptiva h5 {
  font-weight: 600;
  color: #333;
}

.infografia-descriptiva p {
  font-size: 0.95rem;
  color: #555;
}

.infografia-descriptiva-small {
  background-color: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  height: 100%;
}

.infografia-descriptiva-small:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.infografia-descriptiva-small .img-container {
  flex-shrink: 0;
  width: 80px;
}

.infografia-descriptiva-small img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.infografia-descriptiva-small h6 {
  font-weight: bold;
  font-size: 1rem;
}

.infografia-descriptiva-small p {
  font-size: 0.85rem;
  color: #555;
}

.infografia-descriptiva-small .play-icon {
  font-size: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* Botón de cierre del lightbox */
.btn-close-lightbox {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  text-shadow: 0 0 10px black;
  z-index: 1055;
  cursor: pointer;
  transition: color 0.3s;
}

.btn-close-lightbox:hover {
  color: gold;
}


.infografia-card .play-icon {
  display: none;           /* oculto por defecto */
}

.infografia-card.video-thumb .play-icon {
  display: block;          /* solo aparece en .video-thumb */
}
