*{
    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;}
p{font-size: 1.25em;}
ul{list-style: none;}
li{font-size: 1.25em;}

@media (max-width: 600px){
  .texto-mision{
    text-align: center;
  }

  .texto{
    text-align: center;
  }

  .container-mapa path{
  stroke: black;
  stroke-width: 2px;
}

 #sonora{
  fill: orange;
}

#sonora:hover{
  fill: rgb(132, 8, 8);
}

#guanajuato{
  fill: orange;
}

#guanajuato:hover{
  fill: rgb(132, 8, 8);
}

#queretaro{
  fill: orange;
}

#queretaro:hover{
  fill: rgb(132, 8, 8);
}

#veracruz{
  fill: orange;
}

#veracruz:hover{
  fill: rgb(132, 8, 8);
}

#jalisco{
  fill: orange;
}

#jalisco:hover{
  fill: rgb(132, 8, 8);
}

#oaxaca{
  fill: orange;
}

#oaxaca:hover{
  fill: rgb(132, 8, 8);
}

#hidalgo{
  fill: orange;
}

#hidalgo:hover{
  fill: rgb(132, 8, 8);
}

#estadodemexico{
  fill: orange;
}

#estadodemexico:hover{
  fill: rgb(132, 8, 8);
}

#tamaulipas{
  fill: orange;
}

#tamaulipas:hover{
  fill: rgb(132, 8, 8);
}

#nayarit{
  fill: orange;
}

#nayarit:hover{
  fill: rgb(132, 8, 8);
}

#quintanaroo{
  fill: orange;
}

#quintanaroo:hover{
  fill: rgb(132, 8, 8);
}

#sanluispotosi{
  fill: orange;
}

#sanluispotosi:hover{
  fill: rgb(132, 8, 8);
}

#ciudaddemexico{
  fill: orange;
}

#ciudaddemexico:hover{
  fill: rgb(132, 8, 8);
}

#guerrero{
  fill: orange;
}

#guerrero:hover{
  fill: rgb(132, 8, 8);
}

#nuevoleon{
  fill: orange;
}

#nuevoleon:hover{
  fill: rgb(132, 8, 8);
}

#coahuila{
  fill: orange;
}

#coahuila:hover{
  fill: rgb(132, 8, 8);
}

#sinaloa{
  fill: orange;
}

#sinaloa:hover{
  fill: rgb(132, 8, 8);
}

#colima{
  fill: orange;
}

#colima:hover{
  fill: rgb(132, 8, 8);
}

#bajacalifornia{
  fill: orange;
}

#bajacalifornia:hover{
  fill: rgb(132, 8, 8);
}

#bajacaliforniasur{
  fill: white;
}

#bajacaliforniasur:hover{
  fill: white;
}

#chihuahua{
  fill: white;
}

#chihuahua: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: orange;
}

#michoacan:hover{
  fill: rgb(132, 8, 8);
}

#puebla{
  fill: orange;
}

#puebla:hover{
  fill: rgb(132, 8, 8);
}

#tlaxcala{
  fill: white;
}

#tlaxcala:hover{
  fill: white;
}

#morelos{
  fill: white;
}

#morelos:hover{
  fill: white;
}

#chiapas{
  fill: white;
}

#chiapas:hover{
  fill: white;
}

#tabasco{
  fill: orange;
}

#tabasco:hover{
  fill: rgb(132, 8, 8);
}

#campeche{
  fill: white;
}

#campeche:hover{
  fill: white;
}

#yucatan{
  fill: white;
}

#yucatan:hover{
  fill: white;
}

  #hero{
    padding-top: 20px;
    height: auto;
  }

  .hero-content{
    padding-top: 0;
  }

  .hero-content h1{
    line-height: 1.2;
    margin: 0;
  }

  .servicios-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .tarjeta-servicio a{
    text-decoration: none;
    color: inherit;
  }

  .tarjeta-servicio{
    width: 100%;
    height: auto;
    text-align: center;
    padding: 15px;
    background-size: cover;
    background-position: center;
  }

  .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;
  }
}

.mobile-video{
  display: none;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .desktop-video{
    display: none;
  }

  .mobile-video{
    display: block;
  }

  #hero{
    height: 70vh;
  }

  .hero-content{
    font-size: 0.5em;
    padding: 0 20px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav .dropdown {
    display: none;
    padding-left: 20px;
  }

  .main-nav li.has-dropdown.open .dropdown {
    display: block;
  }
}

.color-acento{ color: #ce612a;}

body{
    font-family: 'Roboto',sans-serif;
    margin: 0;
}

button{
    font-size: 2em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white;
    background-color: #CE967B;
}

button:hover{
    background-color: #ce612a;
}

.container{
    max-width: 1400px;
    margin: auto;
}

header{
    background-color: rgb(245, 245, 245);
    z-index: 999;

}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content h1{
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 20px;
  margin: 0;
  line-height: 1.4;
  padding-top: 20px;
  word-wrap: break-word;
}

#hero {
    position: relative;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    padding-top: 100px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(0,0,0,0.6);
  color: white;
  text-align: center;
  z-index: 2;
}

header .logo{
    margin: 0;
    padding: 5px 10px;
}

.logo-img{
    height: 50px;
    width: auto;
}

header .container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

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: #ce612a;
}

#quienes-somos{
  background-image: url(Fondo2.jpg);
}

#quienes-somos .container,
.mision-container {
  display: flex;
  gap: 30px;
  padding: 20px 20px;
  max-width: 1300px;  /* más ancho */
  width: 90vw;
  margin: auto;
  align-items: stretch; /* hijos con misma altura */
}

/* Imagen de "Quiénes somos" */
.img-container {
  flex-shrink: 0;
  width: 100px;       /* más ancho */
  height: 600px;      /* más alto */
  border-radius: 10px;
  background-image: url("Quienes_somos.jpg");
  background-size: cover;
  background-position: center center;
  position: relative;
  z-index: 0;
  align-self: stretch;
  min-height: 300px;
}

/* Imagen de Misión */
.img-container-mision {
  flex-shrink: 0;
  width: 550px;       /* más ancho */
  height: 600px;      /* más alto */
  border-radius: 10px;
  background-image: url("refineria.jpg");
  background-size: cover;
  background-position: center center;
  position: relative;
  z-index: 0;
  align-self: stretch;
  min-height: 300px;
}

/* Texto para ambas secciones */
.texto,
.texto-mision {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 20px;
  margin: 0;
  position: relative;
  z-index: 1;
  color: black;
  text-align: left;
  max-width: 650px;   /* tamaño del texto igual */
}

/* Invertir orden en la sección Misión (imagen derecha, texto izquierda) */
.mision-container {
  flex-direction: row-reverse;
}

/* Párrafos texto justificado, margen controlado */
.texto p,
.texto-mision p {
  margin-top: 0;
  margin-bottom: 0;
  text-align: justify;
  line-height: 1.5em;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 960px) {
  #quienes-somos .container,
  .mision-container {
    flex-direction: column;
    padding: 40px 20px;
  }

  .img-container,
  .img-container-mision {
    width: 100%;
    height: 300px;  /* menos alto en móvil */
    min-height: auto;
    margin-bottom: 20px;
  }

  .texto,
  .texto-mision {
    max-width: 100%;
    padding: 0;
  }
}

#nuestros-servicios{
    background-color: rgb(163, 157, 157);
    color: white;
    text-align: center;
    background-image: url("Fondo4.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#nuestros-servicios .container{
    padding: 150px 12px;
}

#nuestros-servicios h2{
    margin-top: 0; 
    color: #ce612a;
    font-size: 3.5em;
}

#nuestros-servicios p{
    display: none;
}

#nuestros-servicios .servicio{
    background-position: center center;
    background-size: cover;
    padding: 50px;
    margin: 20px;
    border-radius: 15px;
}

#contacto .container{
    text-align: center;
    padding: 80px 20px;
}

#contacto li{
    margin: 16px 0px;
    font-weight: bold;
}

#contacto{
    background-color: rgb(30,30,30);
    color: white;
    background-image: url("Fondo3.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}


#certificaciones .container{
    text-align: center;
    padding: 200px 12px;
}

#certificaciones{
    background-image: url("Fondo2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.imagenes-certificaciones{
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.imagenes-certificaciones img{
    width: 250px;
    height: auto;
    object-fit: contain;
}

.imagenes-certificaciones img  :hover{
    transform: scale(1.05);
}

#clientes{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

footer{
    background-color: rgb(230,230,230);
}

footer p{
    margin: 0;
    padding: 12px;
    color: rgb(100,100,100);
    font-size: 0.75em;
}

footer .container{
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}



.slider{
    width: 75vw;
    height: auto;
    margin: auto;
    overflow: hidden;
}

.slider .slide-track{
    display: flex;
    animation: scroll 40s linear infinite;
    -webkit-animation: scroll 40s linear infinite;
    width: calc(200px * 28);
}

.slider .slide{
    width: 200px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slider .slide img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    0%{
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100%{
        -webkit-transform: translateX(calc(-200px * 14));
        transform: translateX(calc(-200px * 14));
    }
}

.slider1{
    width: 75vw;
    height: auto;
    margin: auto;
    overflow: hidden;
}

.slider1 .slide-track1{
    display: flex;
    animation: scroll1 40s linear infinite;
    -webkit-animation: scroll1 40s linear infinite;
    width: calc(200px * 12);
}

.slider1 .slide1{
    width: 200px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slider1 .slide1 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes scroll1 {
    0%{
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100%{
        -webkit-transform: translateX(calc(-200px * 6));
        transform: translateX(calc(-200px * 6));
    }
}

.slider2{
    width: 75vw;
    height: auto;
    margin: auto;
    overflow: hidden;
}

.slider2 .slide-track2{
    display: flex;
    animation: scroll 40s linear infinite;
    -webkit-animation: scroll 40s linear infinite;
    width: calc(200px * 18);
}

.slider2 .slide2{
    width: 200px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slider2 .slide2 img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    0%{
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100%{
        -webkit-transform: translateX(calc(-200px * 9));
        transform: translateX(calc(-200px * 9));
    }
}

@media (min-width: 720px){
    header{
        position: fixed;
        width: 100%;
    }
    header .container{
        flex-direction: row;
        justify-content: space-between;
    }

    header nav{
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 20px;
    }

    #quienes-somos .container{
        display: flex;
        justify-content: space-evenly;
        padding: 110px 5px;
    }

    #quienes-somos .texto{
        width: 50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #quienes-somos h2{
        margin-top: 0px;
    }

    #quienes-somos .img-container{
        background-image: url("Quienes\ somos.jpg");
        background-size: cover;
        background-position: center center;
        height: 550px;
        width: 600px;
    }




















#nuestros-servicios {
  padding: 80px 40px;
  background-color: #f4f4f4;
  text-align: center;
}

.titulo-servicios {
  font-size: 48px;
  margin-bottom: 60px;
  color: #323337;
  text-transform: uppercase;
  font-weight: 700;
}

/* Contenedor de tarjetas */
.servicios-container {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: center;
}

/* Tarjetas */
.tarjeta-servicio {
  position: relative;
  flex: 1 1 33.33%; /* 3 tarjetas, cada una un tercio */
  height: 500px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px;
  color: white;
  overflow: hidden;
  text-decoration: none;

  background-size: cover;
  background-position: center;
  /* Filtro azul oscuro */
  filter: brightness(0.4) sepia(1) hue-rotate(180deg) saturate(2);
  transition: filter 0.2s ease-in-out;
}

/* Pseudo elemento para filtro separado de texto */
.tarjeta-servicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) sepia(1) hue-rotate(180deg) saturate(2);
  transition: filter 0.2s ease-in-out;
  z-index: 0;
}

/* Quitar filtro al hacer hover (pasa rápido) */
.tarjeta-servicio:hover::before {
  filter: none;
}

.tarjeta-servicio:hover {
  filter: none;
}

/* Contenido dentro */
.overlay {
  position: relative;
  color: #fff;
  text-align: left;
  max-width: 400px;
  z-index: 1;
  user-select: none;
}

.overlay h3 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
}

.overlay p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

/* Imagenes de fondo personalizadas */
.fondo-construccion {
  background-image: url("Construccion1.jpg");
}

.fondo-ingenieria {
  background-image: url("ingenieria5.jpeg");
}

.fondo-especialidades {
  background-image: url("Construccion8.jpg");
}

/* Responsive para móvil */
@media (max-width: 900px) {
  .servicios-container {
    flex-direction: column;
  }

  .tarjeta-servicio {
    flex: 1 1 100%;
    height: 350px;
    padding: 20px;
  }

  .overlay {
    max-width: 100%;
    text-align: center;
  }
}



.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.7);
  overflow: auto;
  padding: 40px 20px;
}

.modal-contenido {
  position: relative;
  background-color: #fff;
  max-width: 700px;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Cerrar botón */
.cerrar {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Slider contenedor */
.slider-modal {
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 10px;
  box-sizing: border-box;
  position: relative;
}

/* Pista de slides */
.slide-track1 {
  display: flex;
  animation: scroll 20s linear infinite;
  gap: 20px;
}

/* Cada slide */
.slide-track1 .slide1 {
  flex: 0 0 auto;
  width: 220px;
  margin-right: 15px;
  border-radius: 6px;
  overflow: hidden;
}

.slide-track1 .slide1 img {
  width: 100%;
  height: auto;
  display: block;
}

/* Animación infinita */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#modal-slider1 {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

#slide-track1 {
  display: flex;
  gap: 10px;
  min-width: 100%;
  padding-bottom: 10px;
}

.slide1 {
  flex: 0 0 auto;
  width: 250px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide1 img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

#slide-track1 {
  display: flex;
  overflow: hidden;
  width: 100%;
  /* altura fija para que las imágenes tengan referencia */
  height: 250px; 
  position: relative;
}

.slide1 {
  flex: 0 0 auto; /* no se encogen ni crecen, ancho según contenido */
  width: 300px; /* ancho fijo o ajustable a tu gusto */
  margin-right: 10px; /* espacio entre slides */
}

.slide1 img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* corta y ajusta para llenar el slide sin deformar */
  display: block;
  border-radius: 8px; /* opcional, bordes redondeados */
}

.modal-slider1 {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 20px;
}

#slide-track1 {
  display: flex;
  width: max-content; /* ajusta al ancho total de los slides */
  animation: scroll 15s linear infinite;
}

.slide1 {
  flex: 0 0 auto;
  width: 250px; /* ancho fijo para cada slide */
  margin-right: 10px;
}

.slide1 img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

/* Animación para el scroll infinito */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%));
  }
}



/* 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;
  }

  #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;
}

.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: orange;
}

.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;
}

svg{
  border: 1px solid #ccc;
  background-color: white;
}

path{
  cursor: pointer;
  transition: fill 0.3s;
}

path :hover{
  fill: orange;
}

#info-box{
  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;
}

#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 #ff7f00;
  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: orange;
}

#sonora:hover{
  fill: rgb(132, 8, 8);
}

#guanajuato{
  fill: orange;
}

#guanajuato:hover{
  fill: rgb(132, 8, 8);
}

#queretaro{
  fill: orange;
}

#queretaro:hover{
  fill: rgb(132, 8, 8);
}

#veracruz{
  fill: orange;
}

#veracruz:hover{
  fill: rgb(132, 8, 8);
}

#jalisco{
  fill: orange;
}

#jalisco:hover{
  fill: rgb(132, 8, 8);
}

#oaxaca{
  fill: orange;
}

#oaxaca:hover{
  fill: rgb(132, 8, 8);
}

#hidalgo{
  fill: orange;
}

#hidalgo:hover{
  fill: rgb(132, 8, 8);
}

#estadodemexico{
  fill: orange;
}

#estadodemexico:hover{
  fill: rgb(132, 8, 8);
}

#tamaulipas{
  fill: orange;
}

#tamaulipas:hover{
  fill: rgb(132, 8, 8);
}

#nayarit{
  fill: orange;
}

#nayarit:hover{
  fill: rgb(132, 8, 8);
}

#quintanaroo{
  fill: orange;
}

#quintanaroo:hover{
  fill: rgb(132, 8, 8);
}

#sanluispotosi{
  fill: orange;
}

#sanluispotosi:hover{
  fill: rgb(132, 8, 8);
}

#ciudaddemexico{
  fill: orange;
}

#ciudaddemexico:hover{
  fill: rgb(132, 8, 8);
}

#coahuila{
  fill: orange;
}

#coahuila:hover{
  fill: rgb(132, 8, 8);
}

#guerrero{
  fill: orange;
}

#guerrero:hover{
  fill: rgb(132, 8, 8);
}

#nuevoleon{
  fill: orange;
}

#nuevoleon:hover{
  fill: rgb(132, 8, 8);
}

#colima{
  fill: orange;
}

#colima:hover{
  fill: rgb(132, 8, 8);
}

#bajacalifornia{
  fill: orange;
}

#bajacalifornia:hover{
  fill: rgb(132, 8, 8);
}

#bajacaliforniasur{
  fill: white;
}

#bajacaliforniasur:hover{
  fill: white;
}

#chihuahua{
  fill: white;
}

#chihuahua:hover{
  fill: white;
}

#sinaloa{
  fill: orange;
}

#sinaloa:hover{
  fill: rgb(132, 8, 8);
}

#durango{
  fill: white;
}

#durango:hover{
  fill: white;
}

#zacatecas{
  fill: white;
}

#zacatecas:hover{
  fill: white;
}

#aguascalientes{
  fill: white;
}

#aguascalientes:hover{
  fill: white;
}

#michoacan{
  fill: orange;
}

#michoacan:hover{
  fill: rgb(132, 8, 8);
}

#puebla{
  fill: orange;
}

#puebla:hover{
  fill: rgb(132, 8, 8);
}

#tlaxcala{
  fill: white;
}

#tlaxcala:hover{
  fill: white;
}

#morelos{
  fill: white;
}

#morelos:hover{
  fill: white;
}

#chiapas{
  fill: white;
}

#chiapas:hover{
  fill: white;
}

#tabasco{
  fill: orange;
}

#tabasco:hover{
  fill: rgb(132, 8, 8);
}

#campeche{
  fill: white;
}

#campeche:hover{
  fill: white;
}

#yucatan{
  fill: white;
}

#yucatan:hover{
  fill: white;
}






























    #certificaciones .container{
        display: flex;
        justify-content: space-evenly;
    }

    #certificaciones .texto1{
        width: 50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #certificaciones h2{
        margin-top: 0px;
    }

    #certificaciones .img-container{
        background-image: url("Calidad.png");
        background-size: cover;
        background-position: center center;
        height: 500px;
        width: 400px;
    }
    
    #contacto .container{
        text-align: initial;
    }

    #contacto ul{
        margin-left: 100px;
    }

    footer .container{
        justify-content: flex-end;
    }

    #clientes h2{
        text-align: center;
    }
}

@media (min-width: 1200px){
    #contacto{
        background-position-x: calc(100vw - 800px);
        background-image: url("Fondo3.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    }
}

.form-content {
    margin-top: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    color: black;
}

.form-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-content form {
    display: flex;
    flex-direction: column;
}

.form-content label {
    margin: 10px 0 5px;
    font-weight: bold;
}

.form-content input,
.form-content textarea {
    padding: 10px;
    border: 1px solid #0d0101;
    border-radius: 5px;
}

.form-content .btn {
    margin-top: 20px;
    background-color: #CE967B;
    color: black;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-content .btn:hover {
    background-color: #ce612a;
}

.contacto-flex{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.datos-contacto{
    flex: 1;
    font-size: 1.2em;
}

.imagen-contacto{
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    display: none;
}

@media (min-width: 720px){

    .imagen-contacto{
        display: block;
    }

    .contacto-flex{
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .datos-contacto{
        max-width: 40%;
        align-self: center;
    }

    .form-content{
        max-width: 50%;
    }
}

.btn-enlace {
    font-size: 2em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
    background-color: #CE967B;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-enlace:hover {
    background-color: #ce612a;
}

.con-offset{
    padding-top: 100px;
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-icon img {
    width: 50px;
    height: 50px;
}

.whatsapp-icon img {
  transition: 0.3s ease;
}

.whatsapp-icon:hover img {
  filter: hue-rotate(120deg) brightness(1.2) saturate(1.5);
}

footer a {
    color: black;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
  .color-box.trabajo {
    background-color: orange !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;
  }

  .tarjeta-servicio {
    text-decoration: none;
    color: inherit;
  }
}

#sfczf5fxyxm6fzmq1fygj8n86dpkf4ls4gk a {
  pointer-events: none;
}

.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;
}

#contacto iframe {
  width: 100%;
  max-width: 100%;
  height: 300px; /* o el alto que gustes para móvil */
  border: 0;
  box-sizing: border-box;
}