* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: "Oswald", sans-serif;
    background-color: #000000;

    background: url(../img/intro-bg.jpg);
    color: black;

  }
  
  /* Header */
  header{
    width: 100%;
    height: 40px;
    margin: auto;
    background:#10375c;

  }

  .cabecera{

    display: flex;
    align-items: center;

  
   
  }



  .inicio-boton {

    border-bottom: 2px solid red;
  }

  .nav-main  img {

    width: 166px;
    height: 80px;
    margin:0px 44px;
    margin-bottom: -20px;

}

.cabecera a{
  text-decoration: none;
  color: white;
  padding: 0 10px;
}

.info {


  margin-left: 500px;
}

.aparecer{
  display: none;
}
.cabecera .info a{

  color: white;
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: normal;


}

.cabecera .info a:hover{
  color: #dbe3e5;

}

/* Servicios */




.distru{

  display: flex;

  justify-content: space-around;
  align-items: center;
  flex-wrap:  wrap;

}

.boxe-distru{
  /* background:rgb(255, 254, 254, .5); */
  width: 95%;
}
.distru img{
  width: 200px;
  height: 200px;


  padding: 10px;
  margin:10px;
}

.distru h2{

  color:#2f3640;
  font-size: 33px;
}

.distru strong{
  color: #fa1616;
}

.servicios{



  padding: 10px;
  display: flex;
  flex-flow: column nowrap;
  margin: 30px;
 
}

.servicios h1{
  color:#2f3640;
  text-transform: uppercase;
  font-size: 35px;
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.servicios p{
  color:#2f3640;
  font-size: 22px;

}

.servicios-btn{

  background: rgb(26, 58, 236);
  width: 120px;
  height: 45px;
  border-radius: 8px;
  border:1px solid rgb(26, 58, 236);
  margin-top: 15px;
}

.servicios-btn:hover{

  background: rgb(56, 84, 240);
  border:1px solid rgb(56, 84, 240);
}

.servicios a{

  color:white;
  font-size: 20px;
  letter-spacing: 1px;
  
}



.servicios img{

  width: 200px;
  height: 200px;
  float: left;
  margin-right: 20px;
}

.espacios{

  flex-direction: row;
}





/* apartado */


.apartado{  

  background: rgb(240, 35, 35);
  margin-top: -49px;
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;

}



.apartado p{

  font-size: 55px;
  letter-spacing: 2px;
  color: white;
}

.apartado span{
  font-weight: bold;
  font-size: 55px;

  color: white;
}



.menu-ocultar {
  display: none;
}

  /*  */
 

  a{
    text-decoration: none;
  }
  
  ul {
    list-style: none;
  }
  
  .container {
    width: 100%;
    margin: auto;
  }
  
  /* Navigation */
  .nav-main {
    font-size: 18px;
    display: flex;
   
    align-items: center;
    height: 80px;


  
 

 
  }

  .nav-menu a{

    color:black;
    text-decoration:none;
    text-transform: uppercase;
    padding: 10px;
    letter-spacing: 1px;

  }

  
  .nav-brand {
    width: 70px;
    margin-left: 20px;
    margin: 2px;
  }
  
  /* Navbar Left */
  .nav-main ul {
    display: flex;
    justify-content:flex-end;
  }
  
  .nav-main ul li {
    padding: 10px;
  }
  
  .nav-main ul li a {
    padding: 2px;
  }
  
  .nav-main ul li a:hover {
    border-bottom: 3px solid red;
  }
  
  .nav-main ul.nav-menu {
    flex: 1;
    margin-left: 20px;
  }
  
  hr {
    margin: 10px 0;
  }
  
  /* Responsive Button */
  .menu-btn {
    cursor: pointer;
    position: absolute;
    top: 55px;
    right: 50px;
    z-index: 2;
    display: none;

  }
  
  /* SHOWCASE */
  
  .btn {
    cursor: pointer;
    display: inline-block;
    text-align: center;
    border: 0;
   
    padding: 10px 20px;
    background: #262626;
    color: #fff;
    font-size: 25px;
    border: 1px solid #fff;
  }
  
  .btn:hover {
    opacity: 0.9;
  }
  

  .mapa{

    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    margin-bottom: 26px;
    margin-top: 10px;
    filter: brightness(80%);
    box-sizing: border-box;
  }

  .mapa:hover{
    filter: brightness(100%);
  }
  .showcase {
    width: 100%;
    height: 500px;
    background: url("../img/banner3.jpg");

    background-size: cover;
    background-attachment: contain;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    justify-content: flex-end;
    padding-bottom: 80px;
    margin-bottom: 50px;
 
  }
  
  .showcase h2,
  .showcase p {
    margin-bottom: 80px;
  }


.showcase h2{

    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    color:white;
    font-size: 30px;
    letter-spacing: 3px;
}

.showcase p{

    background:rgb(0 , 0, 0,.7);
    padding: 14px 10px;
    color:white;
    font-size: 25px;
    letter-spacing: 3px;
    width: 500px;

    margin:0px 0 200px 20px;

}
  
  .showcase .btn {
    margin-top: 20px;
  }
  

  /* center table */

  .center-cont{
    background: rosybrown;
  }
  /* News Cards */
  .news-cards {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;



    margin-top: 130px;
    padding: 30px;
  }

li{

  list-style:none;
}
  .centro{

    width: 40%;
  }

  .centro h1{
    color:#2f3640;
    text-transform: uppercase;
    font-size: 55px;
    margin-bottom: 10px;
    letter-spacing: 3px;
  }

  .centro p{
    width: 90%;
    font-size: 20px;
    text-align: left;
    color:#2f3640;

  }

  .list{

    padding:0 10px;
  }
  
  .news-cards img {
    width: 450px;
    height: 340px;
    border-radius:10px;
  }

 
  
 

  .news-cards h3 {
    font-size: 23px;
    margin: 10px 0;
    font-weight: normal;
    letter-spacing: 2px;
    color: blue;
  }
  
  .news-cards a {
    padding: 20px 0;
    color: black;
    text-transform: uppercase;
    display: inline-block;
    font-weight: bold;
  }

  .news-cards a:hover{
    border-bottom: 3px solid yellow;
    
  }
  .mostrar{
    display:none;
  }


  
  /* CARDS BANNER ONE */
  .cards-banner-one {
    width: 100%;
    height: 350px;
    background: url("./img/tech-red.jpg");
    margin-bottom: 40px;
  }
  
  .cards-banner-one .content {
    width: 40%;
    padding: 90px 0 0 30px;
    color: #fff;
  }
  
  .cards-banner-one p,
  .cards-banner-two p {
    margin: 10px 0 20px 0;
  }
  
  /* CARDS BANNER TWO*/
  .cards-banner-two {
    width: 100%;
    height: 350px;
    background: url("./img/image-five.jpg") no-repeat center center/cover;
  }
  
  .cards-banner-two .content {
    width: 50%;
    padding: 100px 0 0 30px;
  }
  
  /* Follow */
  .social {
    margin: 50px;
  }
  .social p {
    text-align: center;
    font-size: 30px;
    margin-bottom: 20px;
  }
  .links {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .links a {
    margin: 0 30px;
  }
  

  .s-aparecer {
    display:none;
  }
  .links a i {
    font-size: 3rem;
  }
  
  /* Links */
  .footer-links {
    background: #2f3640;
    color: #616161;
    font-size: 12px;
    padding: 35px 0;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
  }
  
  .footer-container ul {
    margin: 0 auto;
  }

  .footer-container h3{
      text-transform: uppercase;
      color: white;
      font-size: 20px;
  }
  

  .footer-container a{

    color:#fddb3a;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 5px;
}

  
  .footer {
    background: #2f3640;
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 16px;
 
    padding-bottom: 20px;
  }
  
  /* Mobil */

  @media (max-width: 1240px){

    .info {


      margin-left: 100px;
    }
  }

  @media (max-width: 850px){


    .news-cards {
      display: flex;
      flex-flow: row wrap;
      justify-content: center;
   
  
  
  
      margin-top: 70px;
      padding: 30px;
    }
  
    .centro h1{
      color:#2f3640;
      text-transform: uppercase;
      font-size: 35px;
      margin-bottom: 10px;
      letter-spacing: 3px;
    }
  
    .centro{
  
      width: 95%;
    }
    .centro p{
  
      font-size: 19px;
  
    }
  
    .list{
  
      padding:0 10px;
    }
    
    .news-cards img {
      width: 350px;
      height: 250px;
      border-radius:10px;
      margin-left: 20px;
      margin-top: 10px;
    }
    
    .apartado p {
      font-size: 30px;
    }
    .apartado span {
      font-size: 30px;
    }
    .showcase p{

      background: rgb(0 , 0, 0,.7);
      padding: 14px 10px;
      color:white;
      font-size: 20px;
      letter-spacing: 3px;
      width: 400px;
      margin: 0px 0 240px 100px;
 
  
  }

    .cabecera{

      display: flex;
      align-items: center;
      justify-content: space-around;
  
     
     
    }
    .cabecera a{
      flex-direction: row;
    }

    .cabecera a{
      padding: 0 2px;
    }

    .cabecera .info a{

      color: white;
      font-size: 15px;
      font-weight: normal;

    
    
    }
  }
 
  @media (max-width: 740px) {

/* NUEVA SECCION DE MENUPQUEﾃ前 */


    .nav-main a{
      color:white;
    }



/*  */
    .news-cards {
      display: flex;
      flex-flow: row wrap;
      justify-content: center;
   
  
  
  
      margin-top: 70px;
      padding: 30px;
    }
  
    .centro h1{
      color:#2f3640;
      text-transform: uppercase;
      font-size: 35px;
      margin-bottom: 10px;
      letter-spacing: 3px;
    }
  
    .centro{
  
      width: 95%;
    }
    .centro p{
  
      font-size: 19px;
  
    }
  
    .list{
  
      padding:0 10px;
    }
    
    .news-cards img {
      width: 350px;
      height: 200px;
      border-radius:10px;
      margin-left: 20px;
      margin-top: 10px;
    }
      

    .showcase{

      background-size: cover;
      background-attachment: cover;
      display: flex;
      /* justify-content: center;
      align-items: center; */
      width: 100%;
      height: 300px;

    }

    .showcase p{

      text-align: center;
      align-items: center;
      margin:0px 0 -30px auto;
      width: 100%;
 
    }
    .apartado p {
      font-size: 30px;
    }
    .apartado span {
      font-size: 30px;
    }    


    .cabecera{
      display:none;
    }

    .aparecer{
      display: block;
      display: flex;
  
      justify-content:center;
      background:#10375c;
    }


  .strong-desaparecer{
    display: none;
  }
    .aparecer a{
      text-decoration: none;
      color: white;
      padding: 0 10px;
    }
    .aparecer .correo{

      flex: 1 1 auto
    }

    .aparecer .telefono{

      flex: 1 1 auto
    }
    .aparecer .nav-res{

      flex: 1 1 auto
    }

    .desaparecer {
      display: none;
    }
    .menu-btn {
      display: block;
    }
  
    .menu-btn:hover {
      opacity: 0.5;
    }
  
    .nav-main ul.nav-menu {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      background: #2f3640;
      width: 50%;
      height: 100%;
      border-right: #ccc 1px solid;
      opacity: 0.9;
      padding: 30px;
      transform: translateX(-500px);
      transition: transform 0.5s ease-in-out;
    }
  
    .nav-main ul.nav-menu li {
      padding: 20px;
      border-bottom: #ccc solid 1px;
      font-size: 14px;
    }
    .nav-main ul.nav-menu li:last-child {
      border-bottom: 0;
    }
  
    .nav-main ul.nav-menu.show {
      transform: translateX(-20px);
    }
  
    .nav-main ul.nav-menu-right {
      margin-right: 50px;
    }
  
    .news-cards {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .cards-banner-one .content,
    .cards-banner-two .content {
      width: 80%;
    }
  
    .footer-links .footer-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  

  
  @media (max-width: 540px) {
    .nav-main a{
      color:white;
    }

    .menu-ocultar {
      display: block;
    }

    .news-cards {
      display: flex;
      flex-flow: row wrap;
      justify-content: center;
   
  
  
  
      margin-top: 70px;
      padding: 30px;
    }
  
    .centro h1{
      color:#2f3640;
      text-transform: uppercase;
      font-size: 35px;
      margin-bottom: 10px;
      letter-spacing: 3px;
    }
  
    .centro{
  
      width: 95%;
    }
    .centro p{
  
      font-size: 19px;
  
    }
  
    .list{
  
      padding:0 10px;
    }
    
    .news-cards img {
      width: 250px;
      height: 130px;
      border-radius:10px;
      margin-right: 20px;
      margin-top: 10px;
 
    }
  

    .showcase{

      background-size: cover;
      background-attachment: cover;
      display: flex;
      /* justify-content: center;
      align-items: center; */
      width: 100%;
      height: 300px;

    }

    .showcase p{

      text-align: center;
      align-items: center;
      margin:0px 0 -30px auto;
      width: 100%;
 
    }
    .apartado p {
      font-size: 22px;
    }
    .apartado span {
      font-size: 22px;
    }

    .nav-res{
      display:none;
    }
    .news-cards {
      grid-template-columns: 1fr;
    }
  
    .cards-banner-one .content,
    .cards-banner-two .content {
      width: 100%;
      padding: 60px 20px;
    }
    .footer-links .footer-container {
      grid-template-columns: 1fr;
    }
  
    .footer-links .footer-container ul {
      text-align: center;
    }
    .menu-btn{

      right: 30px;
    }
  }



/* Galasys9 entre 364 y 740 */



@media (max-width:365px){

  .nav-main a{
    color:white;
  }
  .menu-ocultar {
    display: block;
  }  
  .boxe-distru{
    width: 90%;
    margin: 85px;
    margin-top: -20px;
    box-sizing: border-box;
  }  
  .distru img{
    width: 75px;
  

  }
  /* .distru h2{

    font-size: 15px;
  }

  .distru img{
    width: 100%;
  } */

  .servicios h1{

    font-size: 20px;
  }
  .news-cards {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
 



    margin-top: 70px;
    padding: 30px;
  }

  .centro h1{
    color:#2f3640;
    text-transform: uppercase;
    font-size: 35px;
    margin-bottom: 10px;
    letter-spacing: 3px;
  }

  .centro{

    width: 95%;
  }
  .centro p{

    font-size: 18px;

  }

  .list{

    padding:0 10px;
  }
  
  .news-cards img {
    width: 200px;
    height: 100px;
    border-radius:10px;
    margin-left: 20px;
    margin-top: 10px;
  }


    .showcase{

      background-size: cover;
      background-attachment: cover;
      display: flex;
      /* justify-content: center;
      align-items: center; */
      width: 100%;
      height: 300px;

    }

    .showcase p{

      text-align: center;
      align-items: center;
      margin:0px 0 -30px auto;
      width: 100%;
 
    }


    .apartado{
      flex-direction: column;
    }

    .s-desaparecer{
      display: none;
    }

    .s-aparecer{
      display:block;
    }    
 
    

}

@media (max-width:465px){

  .nav-main a{
    color:white;
  }  

  .menu-ocultar {
    display: block;
  }  

  .distru h2{

    font-size: 15px;
    margin-left: 30px;
  }

  .boxe-distru{
    width: 85%;
    margin: 75px;
    margin-top: -20px;
  }  

  .distru img{
    width: 100px;


  
  
    padding: 5px;
    margin:15px;
  }
  .servicios h1{

    font-size: 20px;
  }
  .news-cards {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
 



    margin-top: 70px;
    padding: 30px;
  }

  .centro h1{
    color:#2f3640;
    text-transform: uppercase;
    font-size: 35px;
    margin-bottom: 10px;
    letter-spacing: 3px;
  }

  .centro{

    width: 95%;
  }
  .centro p{

    font-size: 18px;

  }

  .list{

    padding:0 10px;
  }
  
  .news-cards img {
    width: 200px;
    height: 100px;
    border-radius:10px;
    margin-left: 20px;
    margin-top: 10px;
  }

  .showcase{

    background-size: cover;
    background-attachment: cover;
    display: flex;
    /* justify-content: center;
    align-items: center; */
    width: 100%;
    height: 300px;

  }

  .showcase p{

    text-align: center;
    align-items: center;
    margin:0px 0 -30px auto;
    width: 100%;

  }


  .apartado{
    flex-direction: column;
  }

  .s-desaparecer{
    display: none;
  }

  .s-aparecer{
    display:block;
  }    

  




}

@media (max-width:705px){

  .nav-main a{
    color:white;
  }  

  .menu-ocultar {
    display: block;
  }  

  .distru h2{

    font-size: 20px;
  }

  .distru img{
    width: 120px;
  
  
    padding: 10px;
    margin:10px;
  }
  .servicios h1{

    font-size: 20px;
  }  

  .news-cards {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
 



    margin-top: 70px;
    padding: 30px;
  }

  .centro h1{
    color:#2f3640;
    text-transform: uppercase;
    font-size: 35px;
    margin-bottom: 10px;
    letter-spacing: 3px;
  }

  .centro{

    width: 95%;
  }
  .centro p{

    font-size: 18px;

  }

  .list{

    padding:0 10px;
  }
  
  .news-cards img {
    width: 300px;
    height: 150px;
    border-radius:10px;
    margin-left: 20px;
    margin-top: 10px;
  }

  .showcase{

    background-size: cover;
    background-attachment: cover;
    display: flex;
    /* justify-content: center;
    align-items: center; */
    width: 100%;
    height: 300px;

  }

  .showcase p{

    text-align: center;
    align-items: center;
    margin:0px 0 -30px auto;
    width: 100%;

  }


  .apartado{
    flex-direction: column;
  }

  .s-desaparecer{
    display: none;
  }

  .s-aparecer{
    display:block;
  }    

  




}
/* ==========================================================================
   MEJORAS MODERNAS Y DINÁMICAS PARA MAQ-SAI
   ========================================================================== */

/* 1. Desplazamiento suave y elegante entre secciones */
html {
    scroll-behavior: smooth;
}

/* 2. Aplicar tipografía moderna e industrial en todo el sitio */
body, h1, h2, h3, h4, h5, h6, p, a, li {
    font-family: 'Montserrat', sans-serif !important;
}

/* 3. Efecto dinámico de elevación y sombra al pasar el cursor sobre las secciones */
.news-cards div, .centro div, .apartados img, .renta img, .refacciones img {
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.news-cards div:hover, .centro div:hover, .apartados img:hover, .renta img:hover, .refacciones img:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18) !important;
}

/* 4. Diseño del botón flotante moderno de WhatsApp */
.btn-whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white !important;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-whatsapp-flotante:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
    color: white !important;
}
/* ==========================================================================
   EFECTOS PREMIUM DE ALTO IMPACTO
   ========================================================================== */

/* 1. Animación de "Respiro" para el botón de WhatsApp (Llama la atención sin molestar) */
.btn-whatsapp-flotante {
    animation: pulso-bazar 2s infinite !important;
}

@keyframes pulso-bazar {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 2. Modernizar el cuadro negro central (Adiós a las esquinas rígidas de antes) */
.showcase p {
    background-color: rgba(24, 26, 27, 0.82) !important; /* Fondo negro translúcido más elegante */
    border-radius: 16px !important;                     /* Esquinas redondeadas modernas */
    padding: 35px !important;                           /* Más aire y espacio para el texto */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;  /* Sombra flotante tridimensional */
    border-left: 6px solid #f37021 !important;          /* Barra vertical naranja industrial a la izquierda */
}
/* ==========================================================================
   MENÚ DE NAVEGACIÓN MODERNO (LÍNEA ROJO BRILLANTE)
   ========================================================================== */
.nav-main ul li a {
    position: relative;
    text-decoration: none !important;
    color: #181a1b !important; /* Negro industrial elegante por defecto */
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

/* El texto cambia al mismo rojo brillante al pasar el mouse */
.nav-main ul li a:hover {
    color: #ff0000 !important; 
}

/* La línea inferior: un solo color rojo brillante sólido */
.nav-main ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #ff0000; /* Rojo brillante puro */
    transition: width 0.3s ease;
}

/* La línea se despliega al pasar el mouse */
.nav-main ul li a:hover::after {
    width: 100%;
}
/* ==========================================================================
   CABECERA FLOTANTE (CORREGIDA - SIN DESACOMODAR)
   ========================================================================== */

/* 1. Sombra sutil para despegar la barra del fondo de las nubes */
.cabecera {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    z-index: 9999;
}

/* 2. Resetear el contenedor derecho para eliminar el cuadro negro y el brinco */
.cabecera .info {
    background-color: transparent !important; 
    padding: 0 !important;                     
    display: inline-block !important;
}

/* 3. Efecto dinámico de iluminación para los textos de la barra azul */
.cabecera a, .info a {
    transition: color 0.3s ease !important;
}

/* Al pasar el mouse sobre correo, teléfono o enlaces de arriba, encenderán en rojo brillante */
.cabecera a:hover, .info a:hover {
    color: #ff0000 !important; 
}
/* ==========================================================================
   PANTALLA INICIAL PREMIUM (FULL-SCREEN HERO)
   ========================================================================== */

/* 1. Convertir el contenedor en un banner de pantalla completa */
header.showcase {
    background-image: url('../img/hero-maqsai.webp') !important; 
    background-size: cover !important;        /* La imagen cubre todo el espacio */
    background-position: center !important;   /* Centra la maquinaria */
    background-repeat: no-repeat !important;

    /* EFECTO PARALLAX: La imagen se queda fija al bajar (apariencia moderna) */
    background-attachment: fixed !important;  

    /* Altura completa: Ocupa el 100% de la pantalla del usuario */
    min-height: 100vh !important; 

    /* Centrado perfecto de tu tarjeta de texto negra con bordes redondos */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    margin: 0 !important;
    padding: 0 20px !important;
    position: relative !important;
}

/* 2. Filtro Oscuro Inteligente para que el texto resalte e impacte */
header.showcase::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.45) !important; /* Oscurece sutilmente el fondo */
    z-index: 1 !important;
}

/* 3. Forzar que tu letrero de texto se quede al frente del filtro oscuro */
header.showcase p {
    position: relative !important;
    z-index: 2 !important; 
}
/* ==========================================================================
   RECUADRO ROJO PREMIUM (.APARTADO) - CORREGIDO Y ESTILIZADO
   ========================================================================== */
.apartado {
    /* 1. Reseteo de trucos viejos para eliminar el salto y corte de texto */
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    clear: both !important;

    /* 2. Diseño de Tarjeta Flotante Moderna */
    background-color: #ff0000 !important; /* El mismo rojo brillante puro uniforme */
    max-width: 1050px !important;         /* Ya no ocupa toda la pantalla de lado a lado, se encajona elegante */
    margin: 60px auto !important;         /* Le da una separación limpia de la foto y lo centra */
    padding: 35px 24px !important;        /* Espacio interno amplio para que el texto respire */
    border-radius: 16px !important;       /* Esquinas redondeadas que hacen juego con la tarjeta de arriba */
    text-align: center !important;        /* Centra todo el letrero a la perfección */
    
    /* 3. Sombra premium con un sutil destello rojo */
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.2) !important; 
}

/* 4. Ajustar los textos de adentro para que sean legibles y fluidos */
.apartado p, .apartado span {
    color: #ffffff !important;            /* Texto blanco brillante de alta definición */
    font-size: 22pt !important;           /* Tamaño imponente pero estilizado */
    font-weight: 700 !important;          /* Letra gruesa de impacto */
    line-height: 1.4 !important;          /* Evita que los renglones se encimen */
    margin: 0 !important;
}
/* ==========================================================================
   REDISEÑO DE ALTA GAMA PARA LA CABECERA (AZUL CORPORATIVO + DETALLES ROJOS)
   ========================================================================== */

/* 1. Unificar la barra superior a un Azul Industrial Profundo */
.cabecera {
    background-color: #0f1d3a !important; /* Azul medianoche premium, imponente y serio */
    border-bottom: 3px solid #ff0000 !important; /* Línea divisoria láser en rojo brillante puro */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important; /* Sombra tridimensional */
    position: relative !important;
    z-index: 99999 !important;
}

/* Limpiar cualquier fondo raro que haya dejado el diseño anterior en los lados */
.cabecera .info {
    background-color: transparent !important; 
    padding: 6px 0 !important;
}

/* 2. Estilizar los textos superiores (Correo, Teléfono, Nosotros, Cotización, Galería) */
.cabecera a, .info a, .info li {
    color: #ffffff !important;           /* Texto blanco ultra nítido */
    font-weight: 600 !important;          /* Grosor elegante */
    font-size: 10pt !important;           /* Tamaño estilizado para que no se vea tosco */
    text-transform: uppercase !important; /* Todo en mayúsculas (estilo corporativo premium) */
    letter-spacing: 1.2px !important;     /* Espaciado de letras de alta gama */
    transition: all 0.3s ease !important; /* Transición suave de color */
}

/* Efecto de encendido láser rojo al pasar el mouse por los links de arriba */
.cabecera a:hover, .info a:hover {
    color: #ff0000 !important; /* Cambia al rojo brillante de la empresa */
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6) !important; /* Sutil efecto neón de iluminación */
}

/* 3. Suavizar la barra blanca del menú principal (Efecto Cristal Traslúcido) */
/* Esto hace que la barra blanca no corte la foto de forma tan rígida */
.nav-main {
    background-color: rgba(255, 255, 255, 0.94) !important; /* Blanco premium ligeramente transparente */
    backdrop-filter: blur(12px) !important;                  /* Efecto de desenfoque estilo Apple */
    padding: 12px 0 !important;
}

/* Color por defecto de las letras del menú principal */
.nav-main ul li a {
    color: #0f1d3a !important; /* Azul profundo corporativo para máxima elegancia */
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* Al pasar el mouse por el menú principal, se enciende en rojo y despliega la línea */
.nav-main ul li a:hover {
    color: #ff0000 !important;
}

.nav-main ul li a::after {
    background-color: #ff0000 !important; /* Asegura que la línea deslizable sea de color rojo puro */
    height: 3px !important;
}
/* ==========================================================================
   ALINEACIÓN HORIZONTAL PREMIUM PARA EL MENÚ SUPERIOR DERECHO
   ========================================================================== */

/* 1. Forzar al contenedor principal a no enrollarse y expandirse limpio */
.cabecera .info {
    display: block !important;
    float: right !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important; /* Truco maestro: prohíbe terminantemente los saltos de línea */
    padding: 10px 0 !important;
}

/* 2. Forzar a la lista (ul) a comportarse como una sola fila centrada */
.cabecera .info ul {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    list-style: none !important;
}

/* 3. Forzar a cada opción (li) a ponerse una al lado de la otra de forma horizontal */
.cabecera .info li {
    display: inline-block !important; /* Cambia de vertical a horizontal instantáneamente */
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 14px !important;       /* Espaciado perfecto y elegante entre palabras */
    white-space: nowrap !important;
}

/* 4. Estilizar los enlaces y los separadores texto para que queden finos y alineados */
.cabecera .info a {
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}
/* ==========================================================================
   OPTIMIZACIÓN ULTRA-PROFESIONAL PARA CELULARES (DISEÑO RESPONSIVO)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Reparar la foto de fondo (Quita el zoom distorsionado y borroso en celulares) */
    header.showcase {
        background-attachment: scroll !important; /* Desactiva el parallax solo en celular para quitar el bug */
        min-height: 75vh !important;              /* Una altura más estética y cómoda para pantallas verticales */
        background-position: center center !important; /* Centra la maquinaria en la pantalla del teléfono */
    }

    /* 2. Ajustar la tarjeta negra del centro para que quepa perfecta */
    header.showcase p {
        font-size: 11pt !important;   /* Letra un poco más compacta para pantallas chicas */
        padding: 22px 15px !important; /* Menos espacio interno para ganar pantalla */
        margin: 0 10px !important;    /* Evita que toque los bordes del celular */
    }

    /* 3. Reparar el recuadro rojo (.apartado) para que no se corte el texto */
    .apartado {
        margin: 40px 15px !important;  /* Lo separa limpiamente de la foto de arriba sin encimarse */
        padding: 25px 15px !important;  /* Espacio interno compacto */
        border-radius: 12px !important; /* Bordes suaves móviles */
    }

    /* Reducir la letra roja en el celular para que se lea fluido de corrido */
    .apartado p, .apartado span {
        font-size: 14pt !important;    /* Tamaño ideal para celulares */
        line-height: 1.4 !important;   /* Espaciado perfecto entre renglones */
    }
}
/* ==========================================================================
   REDISEÑO DEL MENÚ DESPLEGABLE MÓVIL (ADIÓS AL CUADRO NEGRO FEO)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Asegurar que la barra blanca sea la base del despliegue */
    .nav-main {
        position: relative !important;
        background-color: #ffffff !important;
        z-index: 999999 !important;
    }

    /* 2. Transformar el cuadro negro feo en una persiana drop-down premium */
    .nav-main ul {
        background-color: #ffffff !important;     /* ¡Adiós al negro! Ahora es blanco limpio */
        position: absolute !important;
        top: 100% !important;                     /* Despliega exactamente abajo de la barra, jamás sobre el logo */
        left: 0 !important;
        width: 100% !important;                    /* Ocupa el 100% del ancho del celular de forma simétrica */
        box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important; /* Sombra flotante elegante */
        padding: 10px 0 !important;
        margin: 0 !important;
        list-style: none !important;
        
        /* Detalles de identidad MAQ-SAI */
        border-top: 3px solid #ff0000 !important;   /* Fina línea superior rojo láser */
        border-bottom: 5px solid #0f1d3a !important;/* Cierre inferior en azul industrial profundo */
    }

    /* 3. Acomodar las opciones una abajo de la otra para que se puedan tocar fácil con el dedo */
    .nav-main ul li {
        display: block !important;                /* Formación vertical perfecta */
        text-align: center !important;            /* Centrar los textos */
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #f0f2f5 !important; /* Línea divisoria muy sutil entre botones */
    }

    /* Quitar la línea divisoria al último elemento para que se vea limpio */
    .nav-main ul li:last-child {
        border-bottom: none !important;
    }

    /* 4. Estilizar las letras del menú dentro del celular */
    .nav-main ul li a {
        color: #0f1d3a !important;               /* Azul profundo corporativo, ultra legible */
        font-size: 12pt !important;               /* Tamaño óptimo para pantallas táctiles */
        font-weight: 700 !important;
        display: block !important;
        padding: 14px 0 !important;               /* Área de clic amplia y cómoda */
        text-transform: uppercase !important;     /* Mayúsculas elegantes */
        letter-spacing: 1px !important;
        transition: all 0.2s ease !important;
    }

    /* 5. Efecto cuando el cliente presiona una opción con el dedo */
    .nav-main ul li a:active, .nav-main ul li a:hover {
        color: #ff0000 !important;               /* Enciende en rojo brillante al tocar */
        background-color: #f9fafb !important;     /* Sutil cambio de fondo gris para dar respuesta táctil */
    }
}
/* ==========================================================================
   BLOQUE MAESTRO RESPONSIVO GLOBAL (A PRUEBA DE TODO)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Ajuste forzado de la foto principal y tarjeta de texto en el celular */
    header.showcase {
        background-attachment: scroll !important;
        min-height: 75vh !important;
        background-position: center center !important;
    }
    header.showcase p {
        font-size: 11pt !important;
        padding: 22px 15px !important;
        margin: 0 10px !important;
    }

    /* 2. Ajuste forzado del recuadro rojo abajo de la foto */
    .apartado {
        margin: 40px 15px !important;
        padding: 25px 15px !important;
    }
    .apartado p, .apartado span {
        font-size: 14pt !important;
    }

    /* 3. FUERZA BRUTA GLOBAL PARA REVIVIR LAS 3 BARRITAS (COLOR OSCURO) 
       Pintamos cualquier icono, botón o enlace de menú en toda la página */
    .slicknav_btn, 
    .menu-toggle, 
    .hamburger, 
    .navbar-toggle, 
    .nav-toggle,
    .fa-bars,
    [class*="toggle"], 
    [class*="menu-btn"],
    [class*="hamburger"],
    .nav-main a {
        color: #0f1d3a !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Si las 3 barritas son líneas físicas pintadas con código (spans), 
       les pintamos obligatoriamente el fondo de azul oscuro para que aparezcan */
    .slicknav_icon-bar, 
    .icon-bar, 
    .hamburger span, 
    .menu-toggle span,
    [class*="bar"],
    [class*="toggle"] span,
    .nav-main a span {
        background-color: #0f1d3a !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 4. Cambiar el menú desplegable tosco de negro a blanco limpio */
    .nav-main ul,
    .nav-main-menu,
    [class*="menu"] ul,
    .slicknav_nav {
        background-color: #ffffff !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
        border-top: 3px solid #ff0000 !important;
    }
    .nav-main ul li a,
    .nav-main li a,
    .slicknav_nav a {
        color: #0f1d3a !important; 
        font-weight: 700 !important;
    }
}