body {
      background-color: #f9f9f9;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* Pantalla de carga */
    .pantalla-carga {
      position: fixed;
      inset: 0;
      background: rgb(255, 255, 255);
      z-index: 10000;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 1;
      visibility: visible;
      transition: opacity 1s ease, visibility 1s ease;
    }

    .pantalla-carga.fade-out {
      opacity: 0;
      visibility: hidden;
    }

    .loader-contenido {
      position: relative;
      width: 100px;
      height: 100px;
    }

    .loader-img {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 50px;
      transform: translate(-50%, -50%);
      z-index: 2;
    }

    .spinner {
      background-image: linear-gradient(rgb(186, 66, 255) 35%, rgb(0, 225, 255));
      width: 100px;
      height: 100px;
      animation: spinning82341 1.7s linear infinite;
      border-radius: 50%;
      filter: blur(1px);
      box-shadow: 0px -5px 20px rgb(186, 66, 255), 0px 5px 20px rgb(0, 225, 255);
      position: relative;
    }

    .spinner1 {
      background-color: rgb(36, 36, 36);
      width: 100%;
      height: 100%;
      border-radius: 50%;
      filter: blur(10px);
      position: absolute;
      top: 0;
      left: 0;
    }

    @keyframes spinning82341 {
      to {
        transform: rotate(360deg);
      }
    }

    /* HEADER */
    .navbar {
      background-color: #212529;
    }
    .navbar-brand img {
      height: 40px;
    }
    .navbar-nav .nav-link {
      color: white;
      font-weight: 500;
    }
    .navbar-nav .nav-link:hover {
      color: #00e1ff;
    }

    /* Secciones */
    .section-title {
      font-size: 1.8rem;
      font-weight: 600;
      margin-bottom: 1rem;
      border-bottom: 2px solid #dc3545;
      padding-bottom: .5rem;
    }

    .detalle-img {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
    }

    .precio {
      font-size: 1.8rem;
      color: #dc3545;
      font-weight: bold;
    }

    .estado {
      font-size: 1rem;
      margin-top: 10px;
    }

        .transition-nav {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-scrolled {
  background-color: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(5px);
}

   .tabla-cotizacion td, .tabla-cotizacion th {
      vertical-align: middle;
    }

/* Footer */
footer {
      background-color: #111;
      color: white;
      padding: 2rem 0;
    }
footer .logo-footer {
      width: 100px;
    }

        .select2-container--bootstrap5 .select2-selection--single {
      height: 40px;
      padding: 6px 12px;
    }
    .table-img {
      width: 60px;
      height: 60px;
      object-fit: contain;
    }

.banner-seccion {
  width: 100%;
  max-height: 1000px; /* Altura máxima en PC */
  overflow: hidden;
  margin: 0 auto;
  margin-top: 17px;
}

.banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .banner-seccion {
    max-height: 300px;
    
  margin: 0 auto;
  margin-top: 40px;
  }
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp:hover {
  transform: scale(1.1);
}
.seccion-compatibilidad {
  background-color: #1a1a2e;
}

.table-purple {
  background-color: #6f42c1 !important;
  color: #fff;
  font-weight: bold;
  border-color: #6f42c1;
}

.table-dark th,
.table-dark td {
  border-color: rgba(255, 255, 255, 0.1);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}
.alerta-tecnologica {
  background: linear-gradient(135deg, #2b2e4a, #1f2235);
  border: 1px solid #5a189a;
  border-left: 6px solid #9d4edd;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
  font-family: 'Segoe UI', sans-serif;
  transition: transform 0.3s ease;
}

.alerta-tecnologica:hover {
  transform: scale(1.01);
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.4);
}
/* Buscador superpuesto centrado sobre el navbar */
.buscador-superpuesto-custom {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  z-index: 1050;
  padding: 0 15px;
}

/* Estilo elegante del input */
.search-label {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #464444;
  padding: 9px;
  cursor: text;
}

.search-label:hover {
  border-color: gray;
}

.search-label:focus-within {
  background: #464646;
  border-color: gray;
}

.search-label input {
  outline: none;
  width: 100%;
  border: none;
  background: none;
  color: rgb(210, 210, 210);
}

.search-label input:focus + .slash-icon,
.search-label input:valid + .slash-icon {
  display: none;
}

.search-label input:valid ~ .search-icon {
  display: block;
}

.search-label input:valid {
  width: calc(100% - 22px);
  transform: translateX(20px);
}

.search-label svg,
.slash-icon {
  position: absolute;
  color: #7e7e7e;
}

.search-icon {
  display: none;
  width: 14px;
  height: auto;
  right: 10px;
}

.slash-icon {
  right: 7px;
  border: 1px solid #fff2f2;
  background: linear-gradient(-225deg, #343434, #6d6d6d);
  border-radius: 3px;
  text-align: center;
  box-shadow: inset 0 -2px 0 0 #3f3f3f, inset 0 0 1px 1px rgb(94, 93, 93), 0 1px 2px 1px rgba(28, 28, 29, 0.4);
  cursor: pointer;
  font-size: 12px;
  width: 15px;
}

.slash-icon:active {
  box-shadow: inset 0 1px 0 0 #3f3f3f, inset 0 0 1px 1px rgb(94, 93, 93), 0 1px 2px 0 rgba(28, 28, 29, 0.4);
  text-shadow: 0 1px 0 #7e7e7e;
  color: transparent;
}

/* RESPONSIVE: El buscador nunca baja, solo se adapta */
@media (max-width: 1200px) {
  .buscador-superpuesto-custom {
    top: 10px;
    padding: 0 0.5rem;
    max-width: 30%;
  }
}
@media (max-width: 990px) {
  .buscador-superpuesto-custom {
    top: 10px;
    padding: 0 0.5rem;
    max-width: 50%;
  }
}
@media (max-width: 768px) {
  .buscador-superpuesto-custom {
    top: 10px;
    padding: 0 0.5rem;
    max-width: 50%;
  }
}

#resultadosBusqueda {
  position: absolute;
  top: 7%; /* Justo debajo del input */
  left: 50%;
  transform: translateX(-50%);
  max-width: 450px;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: fadeSlide 0.25s ease-in-out;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 1055; /* Debe ser mayor que el nav o productos */
}

#resultadosBusqueda a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

#resultadosBusqueda a:hover {
  background-color: #f0f0f0;
}

#resultadosBusqueda img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

/* Animación personalizada */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-5px) translateX(-50%);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
}

/* Responsive: se adapta en móviles */
@media (max-width: 576px) {
  #resultadosBusqueda {
    max-width: 90%;
  }
}
