/* Tipografías principales */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: #1B404C; /* texto principal */
  background-color: #ffffff;
  max-width: 100%;
}

footer{
    margin-top: 2%;
}

#logoGobierno{
    width: 320px;
}

.textoCarrusel{
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);    
}

p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  color: #68a4c4; /* color*/
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: RGBA(104, 164, 196, 0.75);
  text-decoration: none;
}

.textoServicios{
   font-size: 12px;
   margin: 0;
}

.texto-sobre-imagen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  padding: 5px;
  width: 95%;
  max-height: 95%;
  overflow-y: auto;
  font-size: 12px;
}

h1,h2,h3,h4,h5 {
  font-family: 'Raleway', sans-serif;
  color: #FFFFFF; /* color */
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/*Estilo botón menú moviles*/
.navbar-toggler {
  --bs-navbar-toggler-focus-width: 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem #00254E; /* color personalizado */
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: calc(100vh - 100px); /* Resta el alto del header */
    overflow-y: auto;
  }
}

/* Estilo personalizado para la barra de navegación */
.navbar-custom {
    background-color: #00254E;
    color: #ffffff;
}


.navbar-custom .navbar-nav .nav-link,
.navbar-custom .navbar-brand,
.navbar-custom .dropdown-toggle {
    color: #ffffff;
}

.navbar-custom .nav-link:hover,
.navbar-custom .dropdown-item:hover {
    color: #cccccc;
}

/* Fondo del menú desplegable */
.navbar-custom .dropdown-menu {
    background-color: #00254E;
    border: none;
}

.navbar-custom .dropdown-item {
    color: #ffffff;
}

/* Efecto al pasar el mouse sobre los enlaces del menú */
.navbar-nav .nav-link {
  transition: all 0.3s ease;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: white;
  transform: scale(1.05);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/*quitar la barra de desplazamiento horizontal en moviles*/
.navbar, .navbar-collapse, .container, .container-fluid {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Estilo para el menú desplegable */
.dropdown-menu {
  background-color: #00254E;
}

.dropdown-item {
  color: white;
}

.dropdown-item:hover {
  background-color: #00254E;
  color: #fff;
}

.contenidoFooter{
  font-size: 14px;
  margin: 24px 0px 0px;
  padding-left: 10%;
  position: relative;
  text-align: left;
}

#fondoCarrusel{
  background-size: cover;
  background-position: center;   
  /*padding-top: 60px;*/
}

#carousel p, #carousel h5, #carousel h2 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

/* Fondo del preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* color institucional */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Estilo del spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #00254E; /* Azul institucional */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animación giratoria */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.encabezado{
  padding-top: 70px;
}

.linea-subrayado {
  position: relative;
  width: 80px;
  height: 2px;
  background-color: #94A4AB; /* línea lateral*/
}

.linea-subrayado::after {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background-color: #5D83B1; /* linea central */
}

/*Sección de servicios, en ún inicio se consideró como actividades*/
.actividad-item {
  position: relative;
}

.actividad-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.actividad-item .overlay {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.actividad-item:hover .overlay {
  opacity: 1;
}

.actividad-item:hover img {
  transform: scale(1.05);
}

.actividad-item .contenido p {
  font-weight: bold;
}

.actividad-item .contenido ul {
  font-size: 0.7rem;
  text-align: justify;
}

#conagua img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}

#mapa{
  border:0; 
  width: 100%; 
  height: 370px; 
}

.ajuste-por-header {
  margin-top: 5%;
}

.parrafo{
  color: #212529;
  text-align: justify;
}

.titulo{
  color: #5D83B1;
}

/*efecto zoom en imagen organigrama*/
.zoom-in-on-load {
  opacity: 0;
  transform: scale(0.8);
  animation: zoomInFade 1.5s ease-out forwards;
}

@keyframes zoomInFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

