@import url(font.css);
@import url(fontawesome/all.css);
@import url(colors.css);



body {
  overflow-x: hidden;
}

/* ===== Dropdown Menús ===== */

.dropdown-menu li {
  position: relative;
}

.dropdown-menu .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
}

.dropdown-menu > li:hover > .submenu {
  display: block;
}

.dropdown-menu .submenu-left {
  right: 100%;
  left: auto;
}

/* ===== Responsive para móviles ===== */
@media screen and (max-width: 768px) {
  .navbar-collapse {
    position: static;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 56px);
  }

  .dropdown-menu .submenu {
    position: static;
    width: auto;
    display: none;
  }

  .dropdown-menu .submenu.show {
    display: block;
  }
}

/* ===== Fondo azul personalizado para navbar y dropdowns ===== */
.bg-wsam,
.dropdown-menu,
.submenu {
  background-color: var(--bs-blue-800);
}

/* ===== Navbar Principal ===== */
.nav-underline {
  --bs-nav-underline-gap: 1rem;
  --bs-nav-underline-border-width: 0.125rem;
  --bs-nav-underline-link-active-color: white;
  gap: var(--bs-nav-underline-gap);
}

.nav-underline .nav-link {
  padding-right: 0;
  padding-left: 0;
  border-bottom: var(--bs-nav-underline-border-width) solid transparent;
  color: white !important;
  font-weight: bold !important;
  text-decoration: none;
  transition: border-bottom-color 0.3s ease;
}

.nav-underline .nav-link:hover,
.nav-underline .nav-link:focus {
  border-bottom-color: white !important;
}

.nav-underline .nav-link.active,
.nav-underline .show > .nav-link {
  color: white;
  font-weight: bold;
  border-bottom-color: white;
}

/* ===== Dropdown items (sin subrayado) ===== */
.dropdown-menu .dropdown-item {
  color: white !important;
  font-weight: normal;
  text-decoration: none !important;
  border-bottom: none !important;
  padding-left: 1rem;
}

/* Elimina cualquier pseudo-elemento decorativo accidental */
.dropdown-menu .dropdown-item::after {
  content: none !important;
  display: none !important;
}

/* ===== Hover en dropdown con fondo más oscuro ===== */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #000066 !important;
  color: white !important;
  font-weight: bold;
  text-decoration: none;
}

/* ===== Dropdown item seleccionado (activo) con fondo más oscuro ===== */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: #000066 !important;
  color: white !important;
  font-weight: bold;
}

/* ===== Video Principal ===== */
.video-section {
    position: relative;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 0;
    opacity: 0.85;
    display: block;
    position: relative;
}

/* ===== Pantallas grandes (desktop) ===== */
@media screen and (min-width: 768px) {
    .video-section {
        height: 80vh;
    }

    .bg-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%);
        height: auto;
    }
}

/* Franja azul (ancho fijo ~45% pantalla, centrada vertical) */
.bg-wsam-overlay {
  background-color: rgba(3, 32, 85, 0.65);  /* azul oscuro con opacidad */

  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 45%;      /* <- aquí el 45% */
  height: 25%;     /* deja tu alto preferido (25% o el que uses) */
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  box-sizing: border-box;   /* padding no aumenta el ancho */
  border-radius: 10px 0 0 10px;
}

/* Contenido interno: no se estira aunque crezca la franja */
.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 520px;         /* controla el ancho del contenido */
  width: 100%;
}

.bg-wsam-overlay .overlay-content p {
  line-height: 1;
}

.extra-space {
  margin-left: 9rem !important;
}

.logo-franja-azul {
  width: 70%;
}

/* ===== Responsive para móviles ===== */
@media screen and (max-width: 768px) {
  .logo-franja-azul {
    width: 70%;
  }
  .extra-space {
    margin-left: 3rem !important; /* elimina el margen extra */
  }
  .bg-wsam-overlay {
    width: 60%;
    height: 40%;  

}
}

.bg_wsam_img {
  background-image: url("../img/imagenfooter.png");
  background-size: cover;
  background-position: center;
  min-height: 25vh; /* Hace que la sección tome todo el alto de la pantalla */
  display: flex;
  align-items: center;
}
.bg_wsam_img p, h1{
  background-color: rgba(255, 255, 255, 0.6);
  color: #000;
  width: 100%;
  max-width: 100%; /* ancho máximo, para que no quede gigante en pantallas grandes */
  margin: auto; /* centra horizontalmente */
  padding: 15px 30px;
}

hr.bg-wsam {
  height: 6px;              /* O el grosor que quieras */
  border: none;
  background-color: var(--bs-blue-800);
  opacity: 1;
  margin: 0;
}

.proyecto-item {
  position: relative;
  overflow: hidden;
}

.nombre-proyecto {
  transition: opacity 0.3s ease;
  z-index: 2;
}

.overlay-hover {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 123, 255, 0.6); /* azul con opacidad */
  z-index: 3;
  transition: left 0.5s ease;
}

.hover-text {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efecto al hacer hover */
.proyecto-item:hover .overlay-hover {
  left: 0;
}

.proyecto-item:hover .hover-text {
  opacity: 1;
}

.proyecto-item:hover .nombre-proyecto {
  opacity: 0;
}

@media (min-width: 768px) {
  .w-md-25 {
    width: 25% !important;
  }
}


.social-link {
  position: relative; /* padre relativo para detectar hover */
  cursor: pointer;
}

.social-link i.position-relative {
  position: relative; /* para posicionar tooltip respecto al icono */
}

.social-hover-box {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(10px, -50%);
  background-color: white;
  color: #000;
  padding: 4px 8px;
  font-size: 0.85rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

/* Activar tooltip al hacer hover en .social-link (icono o texto) */
.social-link:hover i.position-relative .social-hover-box {
  opacity: 1;
  transform: translate(0, -50%);
}

.fondo {
  background-color: var(--bs-blue-800);
}

.bold-hover:hover {
  font-weight: bold;
}

.input-line-only,
.input-line-only:focus {
  border: none;
  border-bottom: 2px solid #fff; /* O el color que prefieras */
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.input-line-only::placeholder {
  color: #fff; /* Blanco */
  opacity: 1;
  font-weight: bold;
}

.btn-group .btn.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

 .logo-nosotros {
    width: 25vw;
    height: auto;
    max-width: 100%;
  }

  @media (max-width: 768px) {
    .logo-nosotros {
      width: 50vw;
    }
  }

  @media (max-width: 480px) {
    .logo-nosotros {
      width: 80vw;
    }
  }

  .bg-light-responsive, .bg-fondo-responsive {
  background-color: transparent; /* sin fondo por defecto */
}

@media (max-width: 767.98px) {
  .bg-light-responsive {
    background-color: #f8f9fa; /* color bg-light de Bootstrap */
  }
  .bg-fondo-responsive {
  background-color: var(--bs-blue-800);
  }
}

.bg-products {
  background-image: url('../img/fondo1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white; /* Asegura contraste del texto */
  position: relative;
  z-index: 1;
}

.brochure-btn {
  transition: all 0.3s ease;
}

/* Oculta el ícono y texto por defecto al hacer hover */
.brochure-btn:hover .icon-default,
.brochure-btn:hover .text-default {
  display: none !important;
}

/* Muestra el ícono y texto alternativo en hover */
.brochure-btn:hover .icon-hover,
.brochure-btn:hover .text-hover {
  display: inline !important;
}

.carousel-container {
    overflow: hidden;
    max-width: 100%;
}
.carousel-track {
    display: flex;
    transition: none;
}
.card-item {
    flex: 0 0 auto;
    margin-right: 1rem;
    margin-top: 20px; 
    background: #fff;
    border-radius: 8px;
    border: none;
    box-shadow: none;
    width: 220px;
    height: 12rem;
    display: flex;
    flex-direction: column;
    overflow: visible;  /* Importante para que no se corte el zoom */
    position: relative;
    transition: transform 0.3s ease;
}
.card-item:hover {
    transform: scale(1.05);
    z-index: 10;  /* Para que la tarjeta escalada quede sobre las demás */
}
.card-item img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    border: 3px solid transparent; /* Reservar espacio para evitar que se mueva */
    box-sizing: border-box;
    transition: border-color 0.3s ease; /* Transición suave del borde */
}
.card-item:hover img {
    border-color: #032055;
}

/* Responsive */
@media (max-width: 768px) {
    .card-item {
        width: 160px;
        height: 240px;
        margin-right: 0.6rem;
        margin-top: 15px;
    }
    .card-item img {
        height: 110px;
        width: 110px;
    }
}

.btn-outline-wsam {
  color: var(--bs-blue-800);
  border-color: var(--bs-blue-800);
}
.btn-outline-wsam:hover {
  color: #fff;
  background-color: var(--bs-blue-800);
  border-color: var(--bs-blue-800);
}
.btn-wsam {
  color: #fff;
  background-color: var(--bs-blue-800);
  border-color: var(--bs-blue-800);
}
.btn-wsam:hover {
  color: #fff;
  background-color: var(--bs-blue-800);
  border-color: var(--bs-blue-800);
}
.wsam-text {
  color: var(--bs-blue-800);
}
.dropdown-menu .dropdown-item.active {
  color: var(--bs-blue-800) !important;
  background-color: #fff !important;
}
/* Sobrescribir el estado activo del botón WSAM */
.btn-outline-wsam.active,
.btn-outline-wsam:active,
.btn-outline-wsam.show { /* show es usado por Bootstrap en btn-toggle */
  color: var(--bs-white) !important;           /* color del texto */
  background-color: var(--bs-blue-800) !important; /* color de fondo WSAM */
  border-color: var(--bs-blue-800) !important;     /* borde WSAM */
}

/* Opcional: mantener hover en activo */
.btn-outline-wsam.active:hover,
.btn-outline-wsam:active:hover {
  color: var(--bs-white) !important;
  background-color: var(--bs-blue-800) !important;
  border-color: var(--bs-blue-800) !important;
}

.bg-services {
  background-image: url('../img/fondo2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  z-index: 1;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.bg-services + section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hr-services {
  height: 2px !important;              /* O el grosor que quieras */
  border: none;
  background-color: #fff;
  opacity: 1;
  margin: 0;
}

.bg-3d {
  background-image: url('../img/fondo1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  z-index: 1;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Animaciones */
@keyframes entrarIzquierda {
  from {
    opacity: 0;
    transform: translateX(-200px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes entrarDerecha {
  from {
    opacity: 0;
    transform: translateX(200px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes entrarArriba {
  from {
    opacity: 0;
    transform: translateY(-80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes entrarAbajo {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estado inicial */
.entrada_izq, .entrada_der {
  opacity: 0;
  transform: translateX(0); /* reseteado */
  transition: opacity 0.3s ease;
}
.entrada_arriba, .entrada_abajo {
  opacity: 0;
  transform: translateY(0); /* reseteado */
  transition: opacity 0.3s ease;
}

/* Activas cuando entran al viewport */
.entrada_izq.activo {
  animation: entrarIzquierda 1s ease-out forwards;
}

.entrada_der.activo {
  animation: entrarDerecha 1s ease-out forwards;
}

.entrada_arriba.activo {
  animation: entrarArriba 1s ease-out forwards;
}

.entrada_abajo.activo {
  animation: entrarAbajo 1s ease-out forwards;
}

.txt_product_service {
  background-color: rgba(0, 123, 255, 0.6);
  color: #fff;
  width: 100%;
  max-width: 100%; /* ancho máximo, para que no quede gigante en pantallas grandes */
  margin: auto; /* centra horizontalmente */
  padding: 15px 30px;
}

#carouselWebP .carousel-inner {
  position: relative; /* Contenedor relativo */
  overflow: hidden;   /* Evita que se vean bordes extra */
}

#carouselWebP .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out; /* Duración del fade */
}

#carouselWebP .carousel-item.active {
  position: relative;
  opacity: 1;
  z-index: 2;
}
