/* ========================= */
/* VARIABLES */
/* ========================= */
:root{
  --azul:#1C355E;
  --amarillo:#f2b61a;
}

/* ========================= */
/* BASE */
/* ========================= */
body{
  margin:0;
  font-family:'Poppins', sans-serif;
}

/* ========================= */
/* TOPBAR */
/* ========================= */
.topbar{
  background:var(--azul);
  padding:8px 40px; /* 👈 agrega espacio lateral */
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-variant-numeric: tabular-nums;
}

.topbar a{
  font-weight:300;
  font-size:14px;
  letter-spacing:0.5px;
  color:#fff;
  text-decoration:none;
  white-space:nowrap; /* 👈 clave */
}

.topbar a:hover{
  color:var(--amarillo);
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap; /* 👈 clave */
}

.divider{
  width:2px;
  height:14px;
  background:rgba(255,255,255,0.45);
}

.social-icons{
  display:flex;
  align-items:center;
  gap:14px;
}

.social-icons a:hover{
  color:var(--amarillo);
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar{
  background:#fff; /* 👈 clave */
  padding:14px 0;
  border-bottom:1px solid rgba(0,0,0,0.05);
}

.navbar .nav-item{
  margin-left:18px;
}

.navbar .nav-link{
  font-family:'Poppins', sans-serif;
  font-weight:400; /* 👈 más delgado */
  font-size:15px;
  color:var(--azul);
  letter-spacing:0.3px;
  position:relative;
  padding:8px 0;
  opacity: 0.95;
}

/* HOVER */
.navbar .nav-link:hover{
  color:var(--amarillo);
}

/* ACTIVO */
.navbar .nav-link.active{
  font-weight:400;
  color:var(--azul);
  opacity: 1;
}

/* 👇 solo cambia el color de la línea, no el tamaño */
.navbar .nav-link.active::after{
  background:var(--amarillo);
}

/* LINEA */
.nav-link::after{
  content:"";
  position:absolute;
  width:0;
  height:2px;
  background:var(--amarillo);
  bottom:-5px;
  left:0;
  transition:0.3s;
}

.nav-link:hover::after{
  width:100%;
}

/* ========================= */
/* MEGA MENU ANIMADO */
/* ========================= */

.mega-content{
  position:absolute;
  top:100%;
  left:0;
  width:100%;
  background:#fff;
  padding:18px 22px;
  box-shadow:0 20px 50px rgba(0,0,0,0.12);
  z-index:999;

  /* 🔥 ANIMACIÓN */
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity 0.25s ease, transform 0.25s ease;
}

.mega-menu{
  position:static;
}

.mega-menu:hover > .mega-content{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.mega-content.active{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* DESKTOP */
@media(min-width:992px){
  .mega-content{
    margin-top:-8px;
  }

  .mega-menu{
    padding-bottom:8px;
  }
}

/* MOBILE */
@media(max-width:991px){

  .navbar-collapse{
    overflow:visible;
  }

  .navbar .nav-link{
    font-size:16px;
    padding:10px 0;
  }

  .mega-content{
    position:static;
    display:none;
    box-shadow:none;
    padding:15px 10px;
  }

  .mega-content.show{
    display:block;
  }

  .mega-content .row{
    flex-direction:column;
    align-items:flex-start;
  }

  .mega-content .col-md-4{
    width:100%;
    margin-bottom:15px;
    display:flex;
    flex-direction:column;
    gap:4px;
  }
  
  .mega-content .container{
    max-width:1150px;
  }
}

@media(max-width:768px){

  .topbar{
    padding:8px 15px;
  }

  .topbar a{
    font-size:12px;
  }

  .divider{
    height:12px;
  }

}

@media(max-width:768px){

  .hero-content{
    padding:0 20px;
  }

  .hero-content h1{
    font-size:24px;
  }

  .hero-content .btn{
    padding:10px 20px;
    font-size:13px;
  }

}

@media(max-width:768px){

  .hero-content .btn{
    background:rgba(255,255,255,0.2);
    border:1px solid rgba(255,255,255,0.4);
  }

}

/* ESTILOS MEGA MENU */
.mega-content h6{
  font-weight:700;
  font-size:15px;
  margin-bottom:6px;
  color:var(--azul);
  text-transform:uppercase;
}

.mega-content h6::after{
  content:"";
  display:block;
  width:30px;
  height:3px;
  background:var(--amarillo);
  margin-top:5px;
}

.mega-content a{
  display:inline-block;
  color:#333;
  text-decoration:none;
  margin-bottom:4px;
  transition:0.3s;
}

.mega-content a:hover{
  color:var(--amarillo);
  transform:none;
  opacity:1;
}

/* ========================= */
/* MEGA MENU MÁS PREMIUM */
/* ========================= */

.mega-content{
  border-top:2px solid var(--amarillo);
}

/* LINKS MÁS FINOS */
.mega-content a{
  font-size:14px;
  opacity:0.85;
}

.mega-content a:hover{
  opacity:1;
}

/* TITULOS MÁS MARCADOS */
.mega-content h6{
  font-size:14px;
  letter-spacing:0.5px;
}

.btn-ver-todos{
  display:inline-block;
  padding:10px 22px;
  border-radius:10px;
  background:rgba(28,53,94,0.12);
  border:1px solid rgba(28,53,94,0.3);
  color:var(--azul) !important;
  margin-top:8px;

  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);

  font-size:13px;
  letter-spacing:0.4px;
  text-decoration:none;

  transition:all 0.35s cubic-bezier(.22,.61,.36,1);
}

.btn-ver-todos:hover{
  background:rgba(28,53,94,0.12);
  border:1px solid var(--amarillo);
  color:var(--azul) !important;
  transform:translateY(-1px);
}

/* ========================= */
/* SUBMENU HOVER FINO */
/* ========================= */

.mega-content a{
  position:relative;
}

/* línea */
.mega-content a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:0;
  height:1px; /* 👈 más delgada */
  background:var(--amarillo);
  transition:width 0.25s ease;
}

/* animación */
.mega-content a:hover::after{
  width:100%;
}

/* ========================= */
/* ANIMACIÓN MÁS PREMIUM */
/* ========================= */

.nav-link::after,
.mega-content a::after{
  left:50%;
  transform:translateX(-50%);
}

.nav-link:hover::after,
.mega-content a:hover::after{
  width:100%;
}

/* ========================= */
/* BOTONES GLOBALES */
/* ========================= */

.btn-primary-custom{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:16px 30px;

  border-radius:14px;

  background:var(--amarillo);
  color:#081833 !important;

  font-weight:600;
  font-size:15px;

  text-decoration:none;

  border:none;

  transition:all 0.35s cubic-bezier(.22,.61,.36,1);

  box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

.btn-primary-custom:hover{
  transform:translateY(-3px);

  background:#ffd147;

  color:#081833 !important;
}

.btn-glass-custom{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:16px 30px;

  border-radius:14px;

  background:rgba(255,255,255,0.12);

  border:1px solid rgba(255,255,255,0.18);

  color:#fff !important;

  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);

  font-weight:500;
  font-size:15px;

  text-decoration:none;

  transition:all 0.35s cubic-bezier(.22,.61,.36,1);
}

.btn-glass-custom:hover{
  transform:translateY(-3px);

  background:rgba(255,255,255,0.18);

  color:#fff !important;
}

/* ========================= */
/* WHATSAPP TOOLTIP */
/* ========================= */

.wa-tooltip{
  position:absolute;

  right:75px;
  bottom:10px;

  background:#fff;
  color:#081833;

  padding:10px 14px;

  border-radius:14px;

  font-size:13px;
  font-weight:500;

  box-shadow:0 10px 25px rgba(0,0,0,0.12);

  white-space:nowrap;

  opacity:0;
  visibility:hidden;

  transform:translateY(10px);

  transition:all 0.35s cubic-bezier(.22,.61,.36,1);
}

.wa-tooltip.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* flecha */

.wa-tooltip::after{
  content:"";

  position:absolute;

  right:-6px;
  bottom:16px;

  width:12px;
  height:12px;

  background:#fff;

  transform:rotate(45deg);
}

.whatsapp-container{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:999;
}

.whatsapp-btn{
  width:58px;
  height:58px;

  background:#25D366;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#fff;

  text-decoration:none;

  box-shadow:0 10px 30px rgba(0,0,0,0.18);

  transition:all 0.35s cubic-bezier(.22,.61,.36,1);

  position:relative;
  z-index:2;
}

.whatsapp-btn:hover{
  transform:translateY(-4px) scale(1.04);
}

.whatsapp-btn i{
  font-size:30px;
}

/* ========================= */
/* FOOTER */
/* ========================= */

/* títulos */
.footer-title{
  font-size:14px;
  font-weight:600;
  margin-bottom:15px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

/* texto */
.footer-text{
  font-size:14px;
  opacity:1;
  line-height:1.6;
  max-width:400px;
}

/* enlaces */

.footer-copy{
  margin-top:15px;
  font-size:12px;
  opacity:0.6;
}

.footer-bottom{
  opacity:0.8;
  color:rgba(255,255,255,0.7);
}

.footer-text{
  color:rgba(255,255,255,0.85);
}

.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:50px;
}

.footer-col{
  position:relative;
}

@media(max-width:768px){

  .footer-grid{
    grid-template-columns:1fr;
    gap:35px;
  }

  @media(max-width:768px){

  .footer-premium{
    background-attachment:scroll;
  }

}

}

.footer-logo{
  width:145px;
  max-width:100%;
  margin-bottom:22px;
  filter:brightness(0) invert(1);
  opacity: 0.92;
}

.footer-description{
  color:rgba(255,255,255,0.68);
  line-height:1.8;
  font-size:14px;
  max-width:260px;
}

.footer-heading{
  font-size:16px;
  font-weight:600;
  margin-bottom:22px;
  color:#fff;
  letter-spacing:0.5px;
}

.footer-contact p{
  color:rgba(255,255,255,0.8);
  margin-bottom:16px;
  font-size:14px;
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.footer-contact i{
  color:var(--amarillo);
  font-size:13px;
  margin-top:4px;
  opacity:0.9;
}

.footer-contact p:last-child{
  margin-top:22px;
}

.footer-contact a{
  color:rgba(255,255,255,0.82);
  text-decoration:none;
  transition:0.3s ease;
}

.footer-contact a:hover{
  color:var(--amarillo);
}

.footer-socials{
  display:flex;
  gap:14px;
}

.footer-socials a{
  width:42px;
  height:42px;

  border:1px solid rgba(255,255,255,0.18);
  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#fff;
  text-decoration:none;

  transition:all 0.3s ease;
}

.footer-socials a:hover{
  background:var(--amarillo);
  border-color:var(--amarillo);

  transform:translateY(-3px);
}

.footer-socials i{
  font-size:16px;
}

.footer-bottom{
  margin-top:45px;
  padding-top:22px;

  border-top:1px solid rgba(255,255,255,0.12);

  text-align:center;
}

.footer-bottom p{
  margin:0;

  color:rgba(255,255,255,0.55);

  font-size:13px;
  letter-spacing:0.3px;
}

/* ========================= */
/* FOOTER */
/* ========================= */

/* texto general */

/* títulos (ligeramente más firmes) */
.footer-title{
  color:rgba(255,255,255,0.9);
}

/* links */
.footer a{
  color:rgba(255,255,255,0.75);
  font-weight:400;
}

/* texto descriptivo */
.footer-text{
  color:rgba(255,255,255,0.7);
}

/* copy final */
.footer-bottom{
  color:rgba(255,255,255,0.5);
}

.footer::before{
  background:rgba(255,255,255,0.2);
}

/* PARTNER LOGO */

.footer-partner{
  margin-top:22px;
}

.footer-partner span{
  display:block;

  font-size:11px;

  letter-spacing:1px;

  text-transform:uppercase;

  color:rgba(255,255,255,0.55);

  margin-bottom:10px;
}

.footer-partner img{
  height:28px;

  opacity:0.9;

  transition:0.3s ease;
}

.footer-partner img:hover{
  opacity:1;
}

/* ========================= */
/* SCROLL*/
/* ========================= */

.fade-up{
  opacity:0;
  transform:translateY(30px);
  transition:all 0.8s cubic-bezier(.22,.61,.36,1);
}

.fade-up.show{
  opacity:1;
  transform:translateY(0);
}

/* ========================= */
/* FOOTER PREMIUM */
/* ========================= */

.footer-premium{
  position:relative;

  background:
  url('../img/backgrounds/footer-industrial.jpg');

  background-size:cover;
  background-position:center center;
  background-attachment:scroll;

  overflow:hidden;
  color:#fff;
  padding:55px 0 20px;
}

.footer-overlay{
  position:absolute;
  inset:0;

  background:rgba(8,24,51,0.90);
}

.footer-content{
  position:relative;
  z-index:2;

  padding:25px 0 10px;
}

/* ========================= */
/* MEGA MENU ACTIVE */
/* ========================= */

.mega-content a.active{

  background:var(--azul);

  color:#fff !important;

  border-left:3px solid var(--amarillo);

  padding-left:14px;

  opacity:1;

}

.mega-content a.active:hover{

  background:var(--azul);

  color:#fff !important;

}



.footer-link{

  display:inline-block;

  margin-top:8px;
  margin-bottom:10px;

  font-size:13px;

  color:rgba(255,255,255,.55);

  text-decoration:none;

  border-bottom:1px solid rgba(255,255,255,.35);

  padding-bottom:2px;

  transition:.3s ease;
}

.footer-link:hover{

    color:#ffffff;

    text-decoration-color:var(--amarillo);

}

.footer-divider{
    width:1px;
    height:14px;

    background:rgba(255,255,255,.25);

    display:inline-block;
}

.footer-link{

  display:inline-block;

  margin-top:8px;
  margin-bottom:10px;

  color:rgba(255,255,255,.55);

  text-decoration:none;

  border-bottom:1px solid rgba(255,255,255,.35);

  padding-bottom:2px;

  transition:.3s ease;
}

.footer-link:hover{

  color:#fff;

  border-bottom-color:var(--amarillo);
}

@media(max-width:768px){

  .footer-divider{
    display:none;
  }

}


/* ========================= */
/* PIXITZ */
/* ========================= */

.footer-credit{
    display:flex;
    align-items:center;
    justify-content:center;

    gap:12px;

    margin-top:10px;

    font-size:14px;

    color:rgba(255,255,255,0.55);
}

.footer-credit img{
    height:28px;
    width:auto;
}