/* service-website
  001 - generales
  002 - nabbar
*/

/* 001 - generales */

html {
    box-sizing: border-box;
    font-size: 16px;
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-style: normal;
    scroll-behavior: smooth;
}
    
*,
*::after,
*::before {
   box-sizing: inherit;
}
    
body {
   margin: 0;
   padding: 0;
   overflow-x: hidden;
   background-color: #222;
}

ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

a{
    text-decoration: none;
    color: #000;
}

h1, h2, h3, h4, h5, h6, p{
    padding: 0;
    margin: 0;
}

h1{
    font-weight: 900;
    color: #b00101;
    font-size: clamp(2.2rem, 4vw, 5rem);
}

h2{
    font-size: clamp(1.9rem, 3vw, 4rem);
    font-weight: 700;
}

h3, h4, h5, h6{
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 3rem);
    font-style: italic;
}

em{
    font-style: italic;
}

img, picture{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.span_h2{
    color: #8c0000;
}

.div_red{
    width: 100%;
    height: 25px;
    background-color: #b00101;
}

/*navbar*/
.nav_bar{
    position: sticky;
    top: 0;
    width: 100%;
    height: 120px;
    background-color: #ffffffc1;
    z-index: 1000;
}

.nav_central{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 60px;
}

.nav_ul{
    display: flex;
    width: 70%;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.nav_li{
    padding: 8px 12px;
}

.nav_link{
    transition: 0.5s;
}

.nav_li:hover .nav_link{
   color: #8c0000;
}

.nav_activ{
    display: block;
    color: #fff;
    background-color: #000;
    padding: 3px 8px;
    border-radius: 5px 0 5px 0;
}

.nav_logo{
    height: 100%;
    width: auto;
    animation: rotate-img 5s linear infinite;
}

@keyframes rotate-img {
    from{
        transform: rotateY(180deg);
    }
    to{
        transform: rotateY(-180deg);
    }
}

/* Oculta botón en pantallas grandes */
.hamburger {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .nav_central {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .nav_ul {
        flex-direction: column;
        width: 100%;
        display: none;
        background-color: #ffffff;
        margin-top: 10px;
        padding: 0;
    }

    .nav_ul.active {
        display: flex;
    }

    .nav_li {
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }

    .nav_logo {
        height: 60px;
    }

    .hamburger {
        display: block;
    }
}

.hero{
    background-image: url(../img/bg-img_portada.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: calc(100vh - 80px);
    width: 100%;
}

.hero_info{
    width: 70%;
    min-width: 360px;
    max-width: 850px;
    height: 100%;
    padding: 30px ;

}

.slogan{
    font-size: clamp(1rem, 2vw, 2.5rem);
}

.hero_gancho{
    margin-top: 40px;
}

/*boton de ancla */
.learn-more{
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    margin-top: 50px;
    width: 280px;
    height: auto;
}
   
   
   .learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #8c0000;
    border-radius: 1.625rem;
}
   
   .learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}
   
   .learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}
   
   .learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}
   
   .learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #282936;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
}
   
   .learn-more:hover .circle {
    width: 100%;
}
   
   .learn-more:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(1rem, 0);
}
   
   .learn-more:hover .button-text {
    color: #fff;
}

/*principales*/
.flex_contenedor{
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.flex_text_item{
    padding-left: 150px;
    padding-right: 100px;
    color: #fff;
}

.img_industrial{
    width: 70%;
    padding-left: 50px;
    transition: 1s;
}

.img_industrial:hover{
    transform: rotateY(720deg);
}

.ul_flex_item{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.ul_flex_item li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ul_flex_item li .fa-solid{
    font-size: 2.2rem;
    margin-right: 20px;
    margin-top: 20px;
    color: #b00101;
}

.span_li_industriales{
    text-align: center;
    color: #8c0000;
    font-size: 1.2rem;
}

.industrias{
    padding-top: 50px;
    padding-bottom: 80px;
}

.industrias_p{
    margin-top: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.calidad_contenido{
    position: relative;
    background-image: url(../img/bg_calidad.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 600px;
    background-position: right;
}

.calida_left{
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.calidad_p{
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 4rem);
    color: #fff;
}

.servicios_contenido{
    width: 100%;
    padding: 100px 120px;
}

.servicios_grid_index{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 40px;
}

.servicios_grid_item{
    height: 500px;
    position: relative;
}

.servicios_img{
    position: absolute;
}

.servicios_grid_h4{
    color: #fff;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-weight: 900;
    transition: 0.4s;
}

.servicios_grid_item:hover .servicios_grid_h4{
    color: #ff0000;
    text-shadow: 1px 1px 3px #000000dd;
}

.contador {
  padding: 3rem 0;
  text-align: center;
}

.contador_contenedor {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contador_item {
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 200px;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.contador_item:hover {
  transform: scale(1.05);
}

.contador_titulo {
  font-size: 2rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.contador_numero {
  font-size: 6rem;
  font-weight: bold;
  color: #b00101;
}

.articulos {
  padding: 3rem 1rem;
  background-color: #f5f5f5;
  text-align: center;
}

.articulos_contenedor {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
}

.articulos_item {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 300px;
  max-width: 300px;
  text-align: left;
}

.articulos_imagen {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.articulos_titulo_articulo {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 1rem;
}

.articulos_fecha {
  font-size: 0.9rem;
  color: #666;
  margin: 0 1rem 1rem;
}

.articulos_boton {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: #007BFF;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.articulos_boton:hover {
  background-color: #0056b3;
}

.footer{
    width: 100%;
    background-image: url(../img/bg_contacto.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.flex_footer{
    display: flex;
    padding: 50px 120px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer_item{
    width: 45%;
    min-width: 300px;
}

.footer_leyenda{
    border-left: solid 5px #b00101;
    padding-left: 10px;
}

.footer_leyenda_title{
    color: #b00101;
    font-size: 4rem;
    font-weight: 700;
}

 .footer_leyenda_sub{
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer_img{
    max-width: 270px;
}

.footer_item_info{
    display: flex;
    align-items: flex-start;
}

.footer_item_info i{
    color: #b00101;
    font-size: 2rem;
    margin-right: 20px;
    padding-top: 8px;
}

.footer_h5{
    color: #b00101;
    font-size: 1.5rem;
}

.footer_item_p{
    color: #fff;
    font-size: 1.2rem;
}

/* From Uiverse.io by SyedShahzaib7 */ 
.wrapper {
  width: 420px;
  background: rgb(36, 0, 0);
  background: linear-gradient(
    90deg,
    #240000 9%,
    #790909 68%,
    #ff0000 97%
  );
  backdrop-filter: blur(9px);
  color: #fff;
  border-radius: 12px;
  padding: 30px 40px;
}
.form-login {
  font-size: 36px;
  text-align: center;
}
.wrapper .input-box {
  position: relative;
  width: 100%;
  height: 50px;
  margin: 30px 0;
}
.input-box input, .input-box textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  font-size: 16px;
  color: #fff;
  padding: 20px 45px 20px 20px;
}

.input-box textarea {
    resize: none;
    height: 70px;
}

.input-box input::placeholder, .input-box textarea::placeholder {
  color: #fff;
}

.wrapper .btn {
  width: 150px;
  height: 45px;
  background: #fff;
  border: none;
  outline: none;
  border-radius: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 16px;
  color: #333;
  font-weight: 600;
  margin-left: 90px;
  margin-top: 10px;
}

.nos {
  padding: 3rem 1rem;
  color: #000;
}

.nos_titulo {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #8c0000;
  margin-bottom: 2rem;
}

.nos_proyectos_lista{
  color: #fff;
}

/* VALORES */
.nos_valores_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.nos_valor_item {
  background-color: #f5f5f5;
  padding: 1rem;
  border-left: 5px solid #b00101;
  border-radius: 5px;
}

.nos_valor_titulo {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nos_valor_texto {
  font-size: 0.95rem;
}

/* PROYECTOS */
.nos_proyectos_contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

.nos_proyectos_texto {
  flex: 1 1 300px;
}

.nos_proyectos_lista {
  list-style: disc inside;
  font-size: 0.95rem;
  line-height: 1.6;
}

.nos_proyectos_imagen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  padding: 45px 150px;
}

.nos_gal_img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    box-shadow: 2px 2px 10px 3px #0000004d;
}

.nos_proyectos_imagen img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* RAZONES */
.nos_razones_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.nos_razon_item {
  background-color: #f9f9f9;
  padding: 1.2rem;
  border-left: 5px solid #8c0000;
  border-radius: 6px;
}

.nos_razon_titulo {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.nos_razon_texto {
  font-size: 0.95rem;
  line-height: 1.4;
}

.servicios_grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 50px auto 25px;
}

.servicios_lista_tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.servicio_subitem {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #8c0000;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio_subitem i {
  font-size: 1.4rem;
  color: #b00101;
  flex-shrink: 0;
}

.servicio_subitem p {
  margin: 0;
  font-size: 0.95rem;
}

.servicio_subitem:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.servicios_galeria {
  margin: 1.5rem 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.servicios_galeria img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  height: 120px;
}

.servicios_subtitulo, .servicios_intro{
  color: #fff;
}

.servicios_titulo{
  color: #b00101;
  margin-top: 30px;
}

.proyectos {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.proyectos_titulo {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #8c0000;
  margin-bottom: 0.5rem;
}

.proyectos_intro {
  text-align: center;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.proyectos_categoria {
  margin-bottom: 3rem;
}

.proyectos_categoria_titulo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #b00101;
  margin-bottom: 1.5rem;
  border-left: 6px solid #b00101;
  padding-left: 0.75rem;
}

.proyectos_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.proyectos_item {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyectos_item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.proyectos_item img {
  width: 100%;
  min-width: 300px;
  height: 250px;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.proyectos_item img:hover {
  filter: brightness(0.95);
}

.proyectos_info {
  padding: 1rem;
}

.proyectos_nombre {
  font-size: 1.1rem;
  font-weight: 600;
  color: #8c0000;
  margin: 0 0 0.5rem;
}

.destacar{
  border: 5px solid #b00101;
  box-shadow: 0 0 15px 3px #fff;
}

.proyectos_ubicacion,
.proyectos_servicio {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.3rem;
}

.proyectos_descripcion {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #222;
}

/* Scroll animation (sutil fade-in con desplazamiento) */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .proyectos_item img {
    height: 160px;
  }

  .proyectos_categoria_titulo {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .proyectos_titulo {
    font-size: 1.8rem;
  }

  .proyectos_item img {
    height: 140px;
  }
}


@media screen and (min-width: 800px) and (max-width: 1199px) {

    .flex_text_item{
        padding-left: 80px;
        padding-right: 40px;
    }
}

/* Celulares en horizontal */
@media screen and (max-width: 799px) {
    .flex_contenedor{
        flex-direction: column;
    }

    .flex_text_item{
        padding: 50px 15px;
    }

    .confianza_img{
        display: none;
    }

    .contador_contenedor {
    flex-direction: column;
    gap: 1.5rem;
  }

  .articulos_contenedor {
    flex-direction: column;
  }

  .articulos_item {
    max-width: 100%;
  }

  .flex_footer{
    flex-direction: column;
    width: 100%;
    padding: 5px 34px;

  }

  .footer_item{
    width: 100%;
  }

  .footer_formulario{
    padding-top: 35px;
  }

  .wrapper{
    width: 100%;
  }

  .nos_proyectos_contenedor {
    flex-direction: column;
    text-align: center;
  }

  .nos_proyectos_texto,
  .nos_proyectos_imagen {
    flex: 1 1 100%;
  }

  .nos_proyectos_imagen{
    padding: 30px 5px;
  }

}

@media screen and (max-width: 580px) {

    .img_industrial{
        width: 90%;
        padding-left: 0;
    }


    .hero{
        background-image: url(../img/bg-img_portada_movil.jpg);
    }
    
    .hero_info{
        width: 100%;
    }
}  


  /* Tablets en vertical */
  @media screen and (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
    /* Estilos para tablets en vertical */
}
  
  /* Tablets en horizontal */
  @media screen and (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
    /* Estilos para tablets en horizontal */
}
  
.learn-more .white{
    color: #fff;
}

.fw900{
    font-weight: 900;
}
  
 
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}


/* Contenedor principal del blog */
.blog_contenedor {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1rem;
  background-color: #000; /* fondo negro también aquí */
}

/* Título principal del blog */
.blog_titulo {
  text-align: center;
  font-size: 2.2rem;
  color: #8c0000; /* Guinda fuerte */
  margin-bottom: 2rem;
}

/* Lista sin viñetas */
.blog_lista {
  list-style: none;
  padding: 0;
}

/* Cada artículo listado */
.blog_item {
  margin-bottom: 2rem;
  border-bottom: 1px solid #444; /* Borde gris oscuro */
  padding-bottom: 1.5rem;
}

/* Título del artículo */
.blog_item_titulo {
  font-size: 1.4rem;
  color: #8c0000;
  margin-bottom: 0.5rem;
}

/* Enlace del título */
.blog_item_titulo a {
  text-decoration: none;
  color: #8c0000;
}

.blog_item_titulo a:hover {
  text-decoration: underline;
}

/* Información secundaria (fecha, comentarios) */
.blog_item_meta {
  font-size: 0.9rem;
  color: #ccc;
}

.blog_articulo {
  font-size: 1rem;
  color: #fff;
  line-height: 1.6;
  margin: 2rem 0;
}

.blog_subtitulo {
  color: #8c0000;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.comentarios_lista {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.comentarios_lista li {
  background: #111;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #8c0000;
  border-radius: 5px;
  color: #eee;
}

.blog_formulario input,
.blog_formulario textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #000;
  color: #fff;
}

.blog_formulario button {
  margin-top: 1rem;
  background-color: #8c0000;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.blog_formulario button:hover {
  background-color: #b00101;
}

.comentario_text, .comentario_h3{
  color: #fff;
}

/* From Uiverse.io by vinodjangid07 */ 
.Btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: fixed;
  top: 50%;
  right: 0;
  /* overflow: hidden; */
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.3s;
}

.svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(0px);
  letter-spacing: 0.8px;
  border-radius: 10px;
  transition: all 0.3s;
  border: 1px solid rgba(156, 156, 156, 0.466);
}

.BG {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: #075e54;
  z-index: -1;
  border-radius: 10px;
  pointer-events: none;
  transition: all 0.3s;
}

.Btn:hover .BG {
  transform: rotate(35deg);
  transform-origin: bottom;
}

.Btn:hover .svgContainer {
  background-color: rgba(156, 156, 156, 0.466);
  backdrop-filter: blur(4px);
}

.learn-more .curriculum_white{
  color: #fff;
}