    header {
      background-color: #1a3365;
    }

    header .navbar-brand img {
      height: 100px;
    }
    .navbar-brand img {
      max-height: 100px;
    }
    
    @media (max-width: 768px) {
        header .navbar-brand img {
          height: 60px;
        }
        .navbar-brand img {
          max-height: 60px;
        }
            
    }
    
    header .nav-link {
      font-weight: 100 !important;
    }
  /* === Navbar dinámico según fondo === */
    .navbar .nav-link {
      transition: color 0.3s ease;
    }

    .navbar .nav-link:hover {
      color: #0a58ca; /* Azul más fuerte al pasar el mouse */
    }

    .navbar-nav .nav-link {
      position: relative;
      color: #0d6efd;
      transition: color 0.3s ease;
    }

    .navbar-nav .nav-link.active {
      font-weight: 600 !important;
      color: #0a58ca !important;
    }

    .navbar-nav .nav-link.active::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -5px;
      width: 100%;
      height: 2px;
      background-color: #0a58ca;
      border-radius: 2px;
      font-weight: 600 !important;
    }

    /* Estilo base */
    .navbar-nav .nav-link {
      position: relative;
      color: #0d6efd;
      transition: color 0.3s ease;
    }

    /* Ítem activo */
    .navbar-nav .nav-link.active {
      font-weight: 600 !important;
      color: #0a58ca !important;
    }

    /* Línea inferior para ítem activo o al hacer hover */
    .navbar-nav .nav-link::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -5px;
      width: 0%;
      height: 2px;
      background-color: #0a58ca;
      border-radius: 2px;
      transition: width 0.3s ease;
      font-weight: 600 !important;
    }

    /* Al pasar el mouse */
    .navbar-nav .nav-link:hover::after {
      width: 100%;
    }

    /* Línea completa si es activo */
    .navbar-nav .nav-link.active::after {
      width: 100%;
    }

  /* ==== HERO + CARRUSEL ==== */
    .hero {
      position: relative;
      z-index: 2;
    }

    .hero-overlay {
      background: linear-gradient(120deg, #001f3f, #0074D9);
      z-index: 1;
      animation: fadeOutHero 1.5s ease-in-out 2s forwards;
      opacity: 1;
    }

    @keyframes fadeOutHero {
      to {
        opacity: 0;
        visibility: hidden;
      }
    }

    #heroCarousel .carousel-item {
      position: relative;
      height: 90vh;
      overflow: hidden;
    }

    .parallax-img {
      position: absolute;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      background-attachment: fixed !important; /* ⬅️ Esto es lo importante */
      z-index: 0;
    }

    .parallax-fixed {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 100%;
      background-image: url('../img/slide1.png') !important; /* Fondo inicial */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      z-index: -1;
    }



  /* ==== CTA EXEL ==== */
    .cta-exel {
      background-color: #1e1f5e;
    }
    .cta-exel h2 {
      font-family: 'Poppins', sans-serif;
      font-size: 2rem;
    }
    .cta-exel p {
      font-family: 'Poppins', sans-serif;
      font-size: 1.125rem;
    }
    .cta-exel img {
      max-width: 100%;
      height: auto;
    }
    .logo-glow {
      max-height: 150px;
      border-radius: 15px;
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
      transition: box-shadow 0.3s ease;
    }
    .text-shadow {
      text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.2);
    }
    @media (max-width: 768px) {
      .cta-exel h2 {
        font-size: 1.5rem;
      }
    }

  /* ==== CONTACTO ==== */
    #contacto input,
    #contacto textarea {
      border-radius: 8px;
      font-size: 14px;
    }
    #contacto .btn-primary {
      background-color: #1e1f5e;
      border: none;
      transition: 0.3s;
      font-size: 14px;
    }
    #contacto .btn-primary:hover {
      background-color: #273c75;
    }
    #contacto iframe {
      border-radius: 12px;
    }



/*----------------------------------------------*/

/* Tarjetas de servicio (efecto elevación) */
  .card:hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

  /* Botones (expansión ligera y brillo) */
  .btn:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
  }

  /* Logo brillante animado al pasar el mouse */
  .logo-glow {
    transition: filter 0.3s ease;
  }
  .logo-glow:hover {
    filter: drop-shadow(0 0 10px #fff);
  }

  /* Iconos de redes sociales */
  .footer-bottom .fab:hover {
    transform: scale(1.2);
    color: #0dcaf0 !important;
    transition: transform 0.3s, color 0.3s;
  }

  /* Utilidad para aplicar animate.css en hover */
  .animate__animated-hover:hover {
    animation-duration: 0.8s;
    animation-fill-mode: both;
  }

  .hover-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
  }

  /* Capa azul encima del contenido */
  .hover-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgb(18 69 115 / 59%);; /* azul semitransparente */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
  }

  /* Al pasar el mouse, se activa */
  .hover-card:hover::after {
    opacity: 1;
  }

  /* Aplicar efecto visual sin tapar interactividad */
  .hover-card * {
    position: relative;
    z-index: 1;
  }



  /* Cambiar color del texto a blanco al hacer hover */
  .hover-card:hover h6,
  .hover-card:hover p,
  .hover-card:hover li,
  .hover-card:hover ul {
    color: #fff !important;
    z-index: 3;
    font-size: 15px !important;
  }

  .hover-card:hover a,
  .hover-card:hover button {
    color: #fff !important;
    z-index: 3;
  }

  .hover-card:hover h6{
      font-size: 24px !important;
  }

  #contacto .form-control {
    border-radius: 0.75rem;
  }

  #contacto .form-floating > label {
    color: #6c757d;
  }

  #contacto .btn-dark {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
  }

  #contacto .btn-dark:hover {
    background-color: #000;
  }

/* ==== CATALOGO ==== */
  .card-producto {
    transition: transform 0.2s;
  }
  .card-producto:hover {
    transform: scale(1.02);
  }
  .card-producto .card-img-top {
    height: 250px;
    object-fit: contain;
  }
  .btn-cotizar {
    background-color: #1b3c74;
    color: white;
    border: none;
  }
  .btn-cotizar:hover {
    background-color: #0d2a57;
  }

  .card-producto .carousel-control-prev,
  .card-producto .carousel-control-next {
    width: 10%;
  }
  .card-producto .carousel-inner {
    border-radius: 5px;
  }

  .cursor-pointer {
    cursor: pointer;
  }

/*categorias*/
    .categoria-card {
      background: linear-gradient(to bottom, #ffffff 65%, #f0f0f0 35%);
      border-radius: 0px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .categoria-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .categoria-img-container {
      height: 280px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .categoria-img {
      max-height: 100%;
      /*object-fit: contain;*/
    }

    .btn-categoria-roja {
      background-color: #e60023;
      color: white;
      border-radius: 30px;
      padding: 6px 18px;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }

    .btn-categoria-roja:hover {
      background-color: #c1001d;
    }



    .categoria-img-container {
      position: relative;
      overflow: hidden;
    }

    .categoria-img {
      transition: transform 0.3s ease;
    }

    .categoria-card:hover .categoria-img {
      transform: scale(1.05);
    }

    .categoria-overlay {
      cursor: pointer;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(33, 37, 41, 0.7); /* oscuro semitransparente */
      color: #fff;
      opacity: 0;
      transition: opacity 0.3s ease;
      font-size: 0.9rem;
      padding: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .categoria-card:hover .categoria-overlay {
      opacity: 1;
    }


.categoria-btn-full {
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  position: relative;
  padding-left: 1rem;
  padding-right: 1rem;
}

.categoria-text {
  font-size: 1.3rem;
  text-decoration: none !important;
}
.categoria-btn-full {
  text-decoration: none !important;
  outline: none !important;
}

.categoria-btn-full:focus,
.categoria-btn-full:active {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}


.underline {
  height: 4px;
  width: 30px;
  background-color: #f39c12; /* Naranja por defecto */
  transition: width 0.3s ease, background-color 0.3s ease;
  margin-top: 4px;
  margin-left: 0;
}

/* Efecto hover sobre el botón */
.categoria-btn-full:hover .underline {
  width: 100%;
  background-color: #e74c3c; /* Cambia a rojo en hover, por ejemplo */
}



/*productos nuevos*/
    .producto-nuevo-card {
      background-color: #fff;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .producto-nuevo-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .producto-nuevo-img {
      background: linear-gradient(to bottom, #ffffff 60%, #e9e9e9 40%);
      height: 230px;
    }

    .ver-oferta {
      display: inline-block;
      color: #e60023;
      font-weight: bold;
      text-decoration: none;
      transition: all 0.2s ease;
    }

    .ver-oferta:hover .flecha {
      margin-left: 5px;
      transition: margin-left 0.2s ease;
    }

/*asdidebar*/

/* Contenedor de cada filtro */
  .filtro-item {
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    border: 1px solid #eee;
  }

  .filtro-item:hover {
    background-color: #f0f8ff;
  }

  /* Checkbox mejor alineado */
  .filtro-item .form-check-input {
    cursor: pointer;
    border-radius: 4px;
  }

  /* Etiqueta con más espacio */
  .filtro-item .form-check-label {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
  }

/* Badge moderno */
  .filtro-item .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background-color: #e9ecef;
  }

  .filtro-item {
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    border: 1px solid #eee;
  }

  .filtro-item:hover {
    background-color: #f0f8ff;
  }

  .filtro-item .form-check-input {
    cursor: pointer;
    border-radius: 4px;
  }

  .filtro-item .form-check-label {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
  }

  .filtro-item .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background-color: #e9ecef;
  }


  .filtro-panel {
    background-color: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
  }

  .filtro-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .filtro-body {
    background-color: #fdfdfd;
  }

  .filtro-header h5 i {
    font-size: 1rem;
    vertical-align: middle;
  }

/*tarjeta de producto*/
  .card-producto {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #fff;
  }

  .card-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
  }

  .icon-favorito {
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
  }

  .icon-favorito:hover {
    color: #0d6efd;
  }

  .card-producto .card-body {
    padding-top: 0.75rem;
  }

  .card-producto h6 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .card-producto .btn-cotizar {
    font-size: 0.9rem;
  }


  .card-producto {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #fff;
  }

  .card-producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  }

  .card-producto h5 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .icon-favorito {
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
  }

  .icon-favorito:hover {
    color: #0d6efd;
  }

  .btn-cotizar {
    font-size: 0.9rem;
  }

  .badge.bg-danger {
    background-color: #d70026 !important;
    font-weight: 500;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }


/* Botones de vista */
  #btnVistaLista, #btnVistaGrid {
    transition: all 0.2s ease;
    border-radius: 8px;
  }

  #btnVistaLista:hover, #btnVistaGrid:hover {
    opacity: 0.85;
    transform: scale(1.02);
  }

  #btnVistaGrid.active,
  #btnVistaLista.active {
    background-color: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
  }

  /* Título */
  .col-md-9 h4 {
    font-size: 1.25rem;
  }

/*detalle del producto*/
  #detalle-producto h4 {
    font-size: 1.6rem;
  }

  #galeriaPrincipal img {
    /*width: 100%;*/
    object-fit: cover;
    border-radius: 12px;
  }

  #galeriaMiniaturas img {
    height: 70px;
    width: auto;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease;
  }

  #galeriaMiniaturas img:hover {
    border-color: #0d6efd;
  }

  .breadcrumb {
    font-size: 0.95rem;
  }
  #galeriaMiniaturas img.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
  }
  /*modal cotizacion*/
  #modalCotizacion .modal-content {
    font-size: 0.95rem;
  }

  #modalCotizacion .form-label {
    font-weight: 600;
    color: #333;
  }

  #modalCotizacion input.form-control,
  #modalCotizacion textarea.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ccc;
  }

  #listaCotizacion {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 0.5rem;
  }




div:where(.swal2-container) h2:where(.swal2-title) {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: var(--swal2-title-padding);
    color: inherit;
    font-size: 1.35em !important;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    word-wrap: break-word;
    cursor: initial;
}


div:where(.swal2-container) div:where(.swal2-html-container) {
    z-index: 1;
    justify-content: center;
    margin: 0;
    padding: var(--swal2-html-container-padding);
    overflow: auto;
    color: inherit;
    font-size: .85em !important;
    font-weight: normal;
    line-height: normal;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    cursor: initial;
}


.py-7 {
    padding-top: 7rem!important;
    padding-bottom: 3rem!important;
}
.is-invalid {
  border-color: #dc3545;
}
.invalid-feedback {
  display: block;
  font-size: 0.875em;
}


.scroll-productos {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.scroll-productos::-webkit-scrollbar {
  width: 6px;
}

.scroll-productos::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.galeria-imagen-principal {
  width: 100%;
  height: 400px; /* Puedes ajustar la altura según el diseño */
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  overflow: hidden;
}

.galeria-imagen-principal img.img-principal {
  /*width: 100%;*/
  height: 100%;
  object-fit: cover;     /* Evita distorsión, recorta si es necesario */
  object-position: center; /* Centra la imagen dentro del contenedor */
  transition: all 0.3s ease;
}

#contenedor-productos .card-producto img{
  cursor: pointer;
}


@media (min-width: 768px) {
  aside .filtro-panel {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}
/* Scroll interno para filtros cuando el aside es sticky */
.filtros-scroll{
  max-height: calc(100vh - 160px); /* ajusta 160px según tu header/top */
  overflow-y: auto;
  padding-right: 6px; /* para que no tape scrollbar */
}

.pagination {
  flex-wrap: wrap;
  gap: 4px;
}

/* Vista lista - contenedor de imagen */
.img-lista-container {
  width: 140px;
  height: 140px;
  min-width: 140px; /* evita que se colapse */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* Imagen normalizada */
.img-lista-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 👈 clave */
}
