* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

nav a {
  font-family: 'Roboto',sans-serif;
}

h1{font-size: 3.5em;}
h2{font-size: 2.5em;}
h3{font-size: 2em;}
ul{list-style: none;}
li{font-size: 1.25em;}

section {
  margin: 0;
  padding: 0;
}

section h2,
section p {
  margin: 0;
  padding: 0;
}
body{
    margin: 0;
    padding: 0;
    height: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  color: #000;
}

/* Móvil: mostrar botón y ocultar menú */
@media (max-width: 768px) {
    header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 10px 20px;
  }

  .menu-toggle {
    display: block;
  }

  nav.main-nav {
    display: none;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  nav.main-nav.open {
    display: flex;
  }

  nav.main-nav ul {
    flex-direction: column;
    width: 100%;
  }
}


@media (max-width: 600px){
  .overlay{
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
  }
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav.main-nav li {
  position: relative;
}

/* Enlaces principales */
nav.main-nav a {
  text-decoration: none;
  color: #000;
  padding: 10px 15px;
  display: inline-block;
  font-weight: 500;
}

/* Flechita ▼ */
.arrow {
  font-size: 0.6em;
  margin-left: 5px;
}

/* Dropdown oculto por defecto */
nav.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 999;
  border-radius: 4px;
}

/* Items del dropdown */
nav.main-nav .dropdown li a {
  padding: 10px 15px;
  display: block;
  color: #333;
}

nav.main-nav .dropdown li a:hover {
  background-color: #f0f0f0;
}

/* Mostrar dropdown en hover (escritorio) */
nav.main-nav li.has-dropdown:hover .dropdown {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  nav.main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav.main-nav .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
  }

  nav.main-nav li.has-dropdown.open .dropdown {
    display: block;
  }
}

@media (max-width: 768px) {
  .main-nav .dropdown {
    display: none;
    padding-left: 20px;
  }

  .main-nav li.has-dropdown.open .dropdown {
    display: block;
  }
}

.color-acento{ color: blue;}

body{
    font-family: 'Roboto',sans-serif;
    margin: 0;
}

.container{
    max-width: 1400px;
    margin: auto;
}

header{
    background-color: rgb(245, 245, 245);
    z-index: 999;

}

header .logo{
    margin: 0;
    padding: 5px 10px;
}

.logo-img{
    height: 50px;
    width: auto;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding: 10px 20px;
  max-width: 1400px;
  margin: auto;
}

header nav{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
}

header a{
    padding: 5px 12px;
    text-decoration: none;
    font-weight: bold;
    color: black;
}

header a:hover{
    color: rgb(17, 17, 142);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgb(245, 245, 245);
  z-index: 1000;
}

@media (min-width: 769px) {
  header.transparent {
    background-color: transparent !important;
    transition: background-color 0.3s ease;
  }

  header.transparent a {
    color: white !important;
  }

  header.transparent a:hover {
    color: #ccc !important;
  }

  header:not(.transparent) a {
    color: black !important;
  }
}

@media (min-width: 769px) {
  header.transparent .dropdown {
    background-color: rgba(0, 0, 0, 0.6) !important;
  }

  header.transparent .dropdown li a {
    color: white !important;
  }

  header.transparent .dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
}

@media (min-width: 769px) {
  /* Estilo del header cuando es transparente */
  header.transparent {
    background-color: transparent !important;
  }

  header.transparent nav a {
    color: white !important;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  /* Hover en menú principal en modo transparente */
  header.transparent nav a:hover {
    color: #f9c74f !important;
  }

  /* Dropdown en modo transparente */
  header.transparent .dropdown {
    background-color: rgba(0, 0, 0, 0.6) !important;
  }

  header.transparent .dropdown li a {
    color: white !important;
  }

  header.transparent .dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
  }

  /* Modo normal (después de scroll) */
  header:not(.transparent) nav a {
    color: black !important;
    transition: color 0.3s ease;
  }

  header:not(.transparent) nav a:hover {
    color: #f9c74f !important;
  }

  header:not(.transparent) .dropdown {
    background-color: white !important;
  }

  header:not(.transparent) .dropdown li a {
    color: black !important;
  }

  header:not(.transparent) .dropdown li a:hover {
    background-color: #f2f2f2 !important;
    color: black !important;
  }
}













#hero {
  position: relative;
  width: 100%;
  height: 100vh; /* Altura total de la pantalla */
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.video_background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Para que se ajuste sin distorsión */
  z-index: -1; /* Para que esté detrás del contenido */
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Puedes ajustar la opacidad */
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
}

.mobile-video {
  display: none;
}

/* Muestra el video de escritorio por defecto */
.desktop-video {
  display: block;
}

/* A partir de 768px hacia abajo (móviles), se invierte */
@media (max-width: 768px) {
  .mobile-video {
    display: block;
  }

  .desktop-video {
    display: none;
  }
}








.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.whatsapp-icon img {
    width: 50px;
    height: 50px;
    transition: filter 0.1s ease-in;
}

.whatsapp-icon:hover img {
    filter: brightness(1.2) saturate(1.5) sepia(1) hue-rotate(85deg);
}

.whatsapp-icon .tooltip {
    position: absolute;
    right: 60px; /* desplaza la burbuja a la izquierda del ícono */
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: #000;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid #ccc;
    font-family: sans-serif;
}

/* Ajusta la colita para que apunte desde la izquierda hacia el ícono */
.whatsapp-icon .tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px; /* coloca la colita del lado derecho de la burbuja */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white; /* cambia de right a left */
    border-right: none;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.1));
}

/* Mostrar la burbuja */
.whatsapp-icon:hover .tooltip {
    opacity: 1;
}






#quienes-somos {
  scroll-margin-top: 100px; /* Ajusta según la altura de tu menú */
}

.quienes-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 20px;
  flex-wrap: wrap; /* permite que se acomode en móvil */
  text-align: center;
}

.info-box {
  flex: 1 1 30%; /* 3 cajas, cada una ocupa ~30% */
  background-color: transparent;
  padding: 20px;
  border-radius: 12px;
  box-shadow: none;
  align-items: flex-end;
}

.info-box h2 {
  font-size: 1.8em;
  margin-bottom: 50px;
  color: rgb(17, 17, 142);
  font-weight: 500;
  text-align: right;

  position: relative;
  display: inline-block;
}

.info-box h2::after{
    content: "";
    display: block;
    height: 3px;
    width: 50%;
    background-color: #f9c74f;
    margin-top: 8px;
    margin-left: auto;
    border-radius: 2px;
}

.info-box .info-img {
  width: 100%;
  height: 200px; /* Altura uniforme */
  object-fit: cover; /* Corta para que no se deforme */
  border-radius: 8px;
  margin-bottom: 50px;
}

.info-img{
    object-position: center 30%;
}

.info-box p {
  font-size: 1em;
  line-height: 1.5;
  margin: 0;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .quienes-container {
    flex-direction: column;
    align-items: center;
  }

  .info-box {
    width: 90%;
    margin-bottom: 20px;
  }
}






/* Fondo general del carrusel */
.servicios-carousel {
  width: 100vw;
  padding: 60px 0;
  background-image: url('Fondo2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Título */
.titulo-servicios {
  text-align: center;
  margin-bottom: 40px;
  color: rgba(0, 51, 102, 0.85);
  font-size: 2.5rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  text-decoration: none;
}

/* Contenedor del carrusel */
.carrusel-contenedor {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 40px;
}

.carrusel-ventana {
  overflow: hidden;
  width: 100%;
}

.carrusel-contenido {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

/* Cada tarjeta de servicio */
.servicio {
  flex: 0 0 calc((100% - 40px) / 3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 370px;
  cursor: pointer;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

/* Imagen y nombre (media) */
.servicio-media {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.6s ease, opacity 0.6s ease;
  z-index: 2;
}

.servicio.activo .servicio-media {
  transform: translateY(-100%);
  opacity: 0;
}

/* Descripción (oculta inicialmente) */
.servicio-descripcion {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #003366;
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.servicio.activo .servicio-descripcion {
  transform: translateY(0%);
  opacity: 1;
  z-index: 2;
}

/* Imagen */
.servicio img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 899px) {
  .servicio img {
    height: auto !important;
  }
}

/* Nombre del servicio */
.servicio-nombre {
  background-color: rgba(0, 51, 102, 0.85);
  color: white;
  width: 100%;
  padding: 12px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
  text-decoration: none;
}

.servicio-link:hover .servicio-nombre {
  background-color: #f9c74f;
  text-decoration: none;
}

/* Flechas del carrusel */
.flechas-container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 20px;
}

.flecha {
  pointer-events: all;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flecha:hover {
  background-color: #f9c74f;
}

@media screen and (max-width: 899px) {
  .servicio {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px; /* o el ancho que prefieras */
    margin: 0 auto; /* 🔹 Esto lo centra horizontalmente */
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
    position: relative;
  }

  .servicio-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    flex: none;
  }

  .servicio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

  .servicio.activo img {
    transform: translateY(-100%);
  }

  .servicio-descripcion {
    background-color: #003366;
    color: white;
    padding: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    text-align: center;
  }

  .servicio.activo .servicio-descripcion {
    max-height: 500px;
    opacity: 1;
  }
}  

@media screen and (max-width: 899px) {
  .carrusel-contenedor {
    padding: 0; /* 🔹 Elimina padding lateral que puede desalinear */
  }

  .flechas-container {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
    display: flex;
  }
}

.servicio a {
  text-decoration: none;
}






















#slogan {
  margin-top: 0;
  padding-top: 0;
}

#slogan {
  background-color: #0a3d62;
  padding: 80px 0;
  text-align: center;
  min-height: 150px;
}

.slogan-texto {
    font-style: italic;
  color: white;
  font-size: 1.5rem;
  font-weight: 400;
  font-family: 'Roboto', sans-serif;
  margin: 0;
}








#seccion-mapa{
    background-image: url(Fondo2.jpg);
    background-size: cover;
    background-position: center;
}

.mapa-contenedor {
  position: relative;
  display: block; /* mejor que inline-block para que ocupe ancho completo */
  width: 100%;
  height: 100%;
  max-width: none; /* para no limitar ancho */
  background-color: transparent;
}

.mapa-contenedor svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* para que mantenga proporción sin deformar */
}

.container-mapa {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  flex-direction: column; /* para que se apilen y el mapa quede centrado */
  gap: 0;
  background-color: transparent;
}

.mapa-contenedor svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#btn-cerrar {
  background-color: transparent;
  border: 1px solid #ccc;
  font-size: 18px;
  font-weight: bold;
  color: black;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#btn-cerrar:hover {
  background-color: red;
  color: white;
}

/* Ajustes específicos para pantallas pequeñas */
@media (max-width: 768px) {
  .leyenda-mapa {
    flex-direction: column;
    align-items: center;
    font-size: 16px;
  }

  .leyenda-mapa label {
    font-size: 16px;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 600px){
  .leyenda-superpuesta{
    position: static;
    left: auto;
    transform: none;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 15px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    line-height: 1.4;
  }

  .trabajo{
  background-color: orange;
}

.sin-trabajo{
  background-color: white;
}

  .leyenda-superpuesta div{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .color-box{
    margin-right: 6px;
    flex-shrink: 0;
  }

  .titulo-mapa h2{
    font-size: 1.4em;
    border-top: 2px solid #0a3d62;
    border-bottom: 2px solid #0a3d62;
    padding: 10px 0;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;

    color: #0a3d62; /* color azul oscuro */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  }

  #info-box{
    width: 90%;
  }
}

.mapa-contenedor svg{
  width: 100%;
  height: auto;
  display: block;
}

.leyenda-superpuesta{
  position: absolute;
  bottom: 10px;
  left: 40%;
  transform: translateX(-50%);
  background-color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 0.9em;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 10;
}

.mapa-contenedor{
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 1000px;
  background-color: transparent;
}

.color-box{
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.trabajo{
  background-color: #0a3d62;
}

.sin-trabajo{
  background-color: white;
}

.titulo-mapa{
  text-align: center;
  margin: 30px 0px 20px 0;
}

.container-mapa path{
  fill: aqua;
  stroke: black;
  stroke-width: 2px;
}

.container-mapa :hover{
  fill: blue;
}

.container-mapa{
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  background-color: transparent;
}

svg{
  border: 1px solid #ccc;
  background-color: white;
}

path{
  cursor: pointer;
  transition: fill 0.3s;
}

path :hover{
  fill: #0a3d62;
}

#info-box{
  position: relative;  
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  max-width: 600px;
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  box-sizing: border-box;
  overflow-wrap: break-word;
}

#info-texto{
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

#estado-nombre{
  font-size: 1.5em;
  margin: 0 0 10px 0;
  margin-top: 0;
  margin-bottom: 10px;
}

#estado-info{
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.imagen-estado{
  width: 150px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

#estado-imagen{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.imagenes-columna{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (max-width: 600px) {
  .container-mapa {
    flex-direction: column;
    align-items: center;
  }

  #info-box{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .imagen-estado {
    max-width: 300px;
    object-fit: cover;
    width: 100%;
  }

  #estado-proyectos{
    align-items: center;
  }
}

.titulo-mapa{
  text-align: center;
  margin-bottom: 20px;
}

.titulo-mapa h2{
  margin: 0;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;

  color: #0a3d62; /* color azul oscuro */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#estado-proyectos{
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-direction: column;
}

#estado-proyectos li{
  background-color: #f3f3f3;
  padding: 8px 12px;
  border-radius: 5px;
  border-left: 4px solid #f9c74f;
  font-size: 0.9em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 600px){
  #info-box{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #estado-imagen{
    align-items: center;
  }

  #estado-proyectos{
    align-items: center;
  }

  #estado-nombre{
    font-size: 0.2em;
  }
}

#sonora{
  fill: white;
}

#sonora:hover{
  fill: white;
}

#guanajuato{
  fill: #0a3d62;
}

#guanajuato:hover{
  fill: #f9c74f;
}

#queretaro{
  fill: #0a3d62;
}

#queretaro:hover{
  fill: #f9c74f;
}

#veracruz{
  fill: #0a3d62;
}

#veracruz:hover{
  fill: #f9c74f;
}

#jalisco{
  fill: white;
}

#jalisco:hover{
  fill: white;
}

#oaxaca{
  fill: white;
}

#oaxaca:hover{
  fill: white;
}

#hidalgo{
  fill: #0a3d62;
}

#hidalgo:hover{
  fill: #f9c74f;
}

#estadodemexico{
  fill: #0a3d62;
}

#estadodemexico:hover{
  fill: #f9c74f;
}

#tamaulipas{
  fill: white;
}

#tamaulipas:hover{
  fill: white;
}

#nayarit{
  fill: white;
}

#nayarit:hover{
  fill: white;
}

#quintanaroo{
  fill: white;
}

#quintanaroo:hover{
  fill: white;
}

#sanluispotosi{
  fill: #0a3d62;
}

#sanluispotosi:hover{
  fill: #f9c74f;
}

#ciudaddemexico{
  fill: white;
}

#ciudaddemexico:hover{
  fill: white;
}

#coahuila{
  fill: #0a3d62;
}

#coahuila:hover{
  fill: #f9c74f;
}

#guerrero{
  fill: white;
}

#guerrero:hover{
  fill: white;
}

#nuevoleon{
  fill: white;
}

#nuevoleon:hover{
  fill: white;
}

#colima{
  fill: white;
}

#colima:hover{
  fill: white;
}

#bajacalifornia{
  fill: #0a3d62;
}

#bajacalifornia:hover{
  fill: #f9c74f;
}

#bajacaliforniasur{
  fill: white;
}

#bajacaliforniasur:hover{
  fill: white;
}

#chihuahua{
  fill: white;
}

#chihuahua:hover{
  fill: white;
}

#sinaloa{
  fill: white;
}

#sinaloa:hover{
  fill: white;
}

#durango{
  fill: white;
}

#durango:hover{
  fill: white;
}

#zacatecas{
  fill: white;
}

#zacatecas:hover{
  fill: white;
}

#aguascalientes{
  fill: white;
}

#aguascalientes:hover{
  fill: white;
}

#michoacan{
  fill: #0a3d62;
}

#michoacan:hover{
  fill: #f9c74f;
}

#puebla{
  fill: #0a3d62;
}

#puebla:hover{
  fill: #f9c74f;
}

#tlaxcala{
  fill: white;
}

#tlaxcala:hover{
  fill: white;
}

#morelos{
  fill: white;
}

#morelos:hover{
  fill: white;
}

#chiapas{
  fill: white;
}

#chiapas:hover{
  fill: white;
}

#tabasco{
  fill: white;
}

#tabasco:hover{
  fill: white;
}

#campeche{
  fill: white;
}

#campeche:hover{
  fill: white;
}

#yucatan{
  fill: white;
}

#yucatan:hover{
  fill: white;
}

@media (max-width: 768px) {
  .color-box.trabajo {
    background-color: #0a3d62 !important;
    border: 1px solid #999;
  }

  .color-box.sin-trabajo {
    background-color: white !important;
    border: 1px solid #999;
  }

  .leyenda-superpuesta div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }

  .leyenda-superpuesta {
    background-color: rgba(255,255,255,0.95);
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .color-box {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 3px;
    border: 1px solid #ccc;
  }
}

.imagen-estado{
  max-width: 150%;
  height: 100px;
  object-fit: cover;
  display: block;
}

#estado-imagen{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (max-width: 600px){
     .container-mapa path{
 stroke: black;
 stroke-width: 2px;
     }

     #sonora{
  fill: white;
}

#sonora:hover{
  fill: white;
}

#guanajuato{
  fill: #0a3d62;
}

#guanajuato:hover{
  fill: #f9c74f;
}

#queretaro{
  fill: #0a3d62;
}

#queretaro:hover{
  fill: #f9c74f;
}

#veracruz{
  fill: #0a3d62;
}

#veracruz:hover{
  fill: #f9c74f;
}

#jalisco{
  fill: white;
}

#jalisco:hover{
  fill: white;
}

#oaxaca{
  fill: white;
}

#oaxaca:hover{
  fill: white;
}

#hidalgo{
  fill: #0a3d62;
}

#hidalgo:hover{
  fill: #f9c74f;
}

#estadodemexico{
  fill: #0a3d62;
}

#estadodemexico:hover{
  fill: #f9c74f;
}

#tamaulipas{
  fill: white;
}

#tamaulipas:hover{
  fill: white;
}

#nayarit{
  fill: white;
}

#nayarit:hover{
  fill: white;
}

#quintanaroo{
  fill: white;
}

#quintanaroo:hover{
  fill: white;
}

#sanluispotosi{
  fill: #0a3d62;
}

#sanluispotosi:hover{
  fill: #f9c74f;
}

#ciudaddemexico{
  fill: white;
}

#ciudaddemexico:hover{
  fill: white;
}

#coahuila{
  fill: #0a3d62;
}

#coahuila:hover{
  fill: #f9c74f;
}

#guerrero{
  fill: white;
}

#guerrero:hover{
  fill: white;
}

#nuevoleon{
  fill: white;
}

#nuevoleon:hover{
  fill: white;
}

#colima{
  fill: white;
}

#colima:hover{
  fill: white;
}

#bajacalifornia{
  fill: #0a3d62;
}

#bajacalifornia:hover{
  fill: #f9c74f;
}

#bajacaliforniasur{
  fill: white;
}

#bajacaliforniasur:hover{
  fill: white;
}

#chihuahua{
  fill: white;
}

#chihuahua:hover{
  fill: white;
}

#sinaloa{
  fill: white;
}

#sinaloa:hover{
  fill: white;
}

#durango{
  fill: white;
}

#durango:hover{
  fill: white;
}

#zacatecas{
  fill: white;
}

#zacatecas:hover{
  fill: white;
}

#aguascalientes{
  fill: white;
}

#aguascalientes:hover{
  fill: white;
}

#michoacan{
  fill: #0a3d62;
}

#michoacan:hover{
  fill: #f9c74f;
}

#puebla{
  fill: #0a3d62;
}

#puebla:hover{
  fill: #f9c74f;
}

#tlaxcala{
  fill: white;
}

#tlaxcala:hover{
  fill: white;
}

#morelos{
  fill: white;
}

#morelos:hover{
  fill: white;
}

#chiapas{
  fill: white;
}

#chiapas:hover{
  fill: white;
}

#tabasco{
  fill: white;
}

#tabasco:hover{
  fill: white;
}

#campeche{
  fill: white;
}

#campeche:hover{
  fill: white;
}

#yucatan{
  fill: white;
}

#yucatan:hover{
  fill: white;
}
}

/* SOLO EN MÓVIL (anula el position absolute y la mueve abajo del mapa) */
@media (max-width: 768px) {
  .mapa-contenedor {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* alinea hijos a la derecha */
  }

  .leyenda-superpuesta {
    position: static !important;
    margin-top: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
    width: auto;
    max-width: 90%;
  }

  .leyenda-superpuesta div {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
}

#presencia {
  scroll-margin-top: 100px; /* Ajusta según la altura de tu header */
}

svg path.activo {
  transition: fill 0.3s ease;
}

#info-box {
  display: flex;
  flex-direction: column; /* Para que el nombre esté arriba */
  align-items: center;
  gap: 20px;
  padding: 20px;
  position: relative; /* para el botón cerrar */
  max-width: 900px; /* ajusta según tu diseño */
  margin: 0 auto;
}

#estado-nombre {
  order: 0;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

#estado-imagen, #estado-proyectos {
  display: flex;
  flex-direction: column; /* imágenes y proyectos en columna */
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#estado-imagen {
  order: 1;
  width: 45%;
}

#estado-proyectos {
  order: 2;
  width: 45%;
  list-style-position: inside;
  padding-left: 10px;
  overflow-y: auto;
}

#info-texto {
  display: none; /* Si no lo usas, lo ocultas */
}

#contenido-estado {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  justify-content: center;
}

#contenido-estado {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

#estado-imagen, #estado-proyectos {
  flex: 1 1 45%;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}










.cuadricula-certificaciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0; /* Sin separación */
  width: 100vw;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* sombra suave tipo hoja */
  border-radius: 12px;
  overflow: hidden;
  min-height: 100vh;
}

.h2-cuadro {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  background-image: url('fondo-politica.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
}

.h2-cuadro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(10, 61, 98, 0.74);
  z-index: 0;
}

.h2-cuadro h2 {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  margin: 0;
}

.imagen-certificado {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.primer-parrafo {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.parrafos-restantes {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* Cada cuadro ya no tiene bordes, ni separación */
.cuadro {
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Primer párrafo */
.primer-parrafo {
  position: relative;
  color: white; /* texto oscuro para que contraste con fondo claro */
  padding: 30px;
  background-image: url('Fondo2.jpg'); /* pon la ruta correcta */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Overlay azul para primer-parrafo */
.primer-parrafo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(22, 71, 127); /* azul con transparencia */
  z-index: 0;
}

/* El texto debe estar encima del overlay */
.primer-parrafo > * {
  position: relative;
  z-index: 1;
}

/* Párrafos restantes */
.parrafos-restantes {
  position: relative;
  color: white;
  padding: 30px;
  background-image: url('Fondo2.jpg'); /* puedes usar otra imagen si lo deseas */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Overlay azul para parrafos-restantes con tono diferente */
.parrafos-restantes::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #0a3d62; /* azul un poco más oscuro y más opaco */
  z-index: 0;
}

.parrafos-restantes > * {
  position: relative;
  z-index: 1;
}

/* Imagen */
.imagen-certificado {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;  /* para que no se salga nada */
}

.imagen-certificado img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: cover; /* ajusta la imagen sin deformarla */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .imagen-certificado{
        display: none;
    }

  .cuadricula-certificaciones {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .h2-cuadro,
  .imagen-certificado,
  .primer-parrafo,
  .parrafos-restantes {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }
}

#certificaciones a{
    text-decoration: none;
    color: white;
    text-align: center;
    display: flex;
    margin-top: 100px;
    font-size: 18px;
}

#certificaciones a:hover{
    color: #f9c74f;
}

.subrayado-animado {
  font-size: 2em;
  font-weight: bold;
  display: inline-block;
}










.imagen-fondo-fija {
  height: 500px; /* Ajusta la altura que quieras */
  background-image: url('imagen-fija.jpg'); /* Pon aquí la ruta correcta */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Fija la imagen al hacer scroll */
}
@media (max-width: 768px) {
  .imagen-fondo-fija {
    background-image: none; /* Quita imagen */
    /* o también podrías hacer background-attachment: scroll; */
    height: 0;
    overflow: hidden;
  }
}











.slider {
    width: 100%;
    overflow: hidden;
    margin: auto;
}

.slide-track {
    display: flex;
    gap: 110px; /* MÁS espacio entre logos */
    animation: scrollSmooth 30s linear infinite;
    width: calc((220px + 110px) * 14); /* ancho total considerando 10 logos con separación */
}

.slide {
    width: 200px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes scrollSmooth {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * ((220px + 110px) * 7)));
    }
}

#clientes h1 {  
  text-align: center;
  margin-bottom: 50px; /* opcional: separación con el slider */
  margin-top: 0;

  border-top: 2px solid #0a3d62;
  border-bottom: 2px solid #0a3d62;
  padding: 10px 0;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;

  color: #0a3d62; /* color azul oscuro */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}









.footer {
  padding: 40px 0px;
  background-color: #000000;
  color: white;
  font-family: Arial, sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.link, .form-content {
  flex: 1 1 300px; /* Crecen y se encogen con base mínima de 300px */
  min-width: 280px;
}

.link h3, .form-content h2 {
  font-size: 20px;
  color: #F9FAFC;
  margin-bottom: 15px;
}

.link a {
  font-size: 16px;
  color: #C5C5C5;
  display: block;
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.3s;
  display: inline;
}

.link a:hover {
  color: #0a3d62;
}

.footer li {
  font-size: 16px;
  color: white;
  margin-bottom: 10px;
}

/* Formulario */
.form-content form {
  display: flex;
  flex-direction: column;
}

.form-content label {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.form-content input[type="text"],
.form-content input[type="email"],
.form-content textarea {
  padding: 8px 10px;
  margin-bottom: 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
}

.form-content textarea {
  min-height: 80px;
}

.form-content .btn {
  background-color: #0a3d62;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-content .btn:hover {
  background-color: #f9c74f;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 40px 15px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .link, .form-content {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
  }

  .form-content form {
    width: 100%;
  }
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  padding: 10px 20px;
  text-align: right;       /* Alinea el texto a la derecha */
  color: #888888;
  font-size: 10px;         /* Más pequeño */
  font-family: Arial, sans-serif;
  border-top: 1px solid #333333;
  width: 100%;
  box-sizing: border-box;  /* Para que padding no afecte ancho */
}

.footer-bottom a:hover{
    color: #f9c74f;
}

.footer a {
  color: inherit;
}

.footer-logo img {
  max-height: 60px; /* ajusta tamaño del logo */
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-logo {
    display: none;
  }

  .footer-left {
    max-width: none !important;  /* Quitar cualquier ancho fijo */
    width: 100% !important;      /* Que ocupe todo el ancho */
    margin: 0 auto !important;   /* Centrado horizontal */
    padding: 0 15px;             /* Un poco de espacio a los lados */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: none !important;
  }

  .footer-logo {
    display: none !important;
  }

  /* Opcional, para que el contador ocupe menos y se vea centrado */
  .visit-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
  }
}

.subrayado {
  position: relative;
  display: inline-block; /* Para que la línea se base en el ancho del texto */
}

.subrayado::before {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0; /* Inicia desde el lado derecho */
  width: 50%; /* Hasta la mitad del texto */
  height: 3px;
  background-color: #0a3d62; /* Azul corporativo */
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
  flex: 1;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  margin-right: 40px;
  transform: translateX(-30px);
}

.footer-logo img {
  max-width: 150px;
}

.visit-counter p {
  color: white;
  font-size: 1em;
  margin-bottom: 5px;
}

.visit-counter img {
  max-width: 100px;
}