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;
    }


    /* Contenedor */
.cantidad-control {
  border: 1px solid #ccc;
  border-radius: 30px;
  overflow: hidden;
  background-color: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: fit-content;
}

/* Botones + y - */
.btn-cantidad {
  background-color: #ffffff;
  border: none;
  color: #0d6efd;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-cantidad:hover {
  background-color: #e9ecef;
}

/* Input */
.input-cantidad {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 1rem;
  background: transparent;
  outline: none;
}


        .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);
}

.relacionados-wrapper {
  position: relative;
}

.relacionados-container {
  scroll-behavior: smooth;
  gap: 1rem;
  padding-bottom: 10px;
}

.relacionado-item {
  width: 200px;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.relacionado-item:hover {
  transform: scale(1.03);
}

.relacionados-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  z-index: 10;
  cursor: pointer;
  transition: background 0.3s;
}

.relacionados-btn:hover {
  background: rgba(0,0,0,0.7);
}

.relacionados-btn.prev {
  left: 0;
}

.relacionados-btn.next {
  right: 0;
}

/* Estilo sombra y borde a las cards */
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Scroll oculto para navegadores con barra */
.relacionados-container::-webkit-scrollbar {
  height: 6px;
}
.relacionados-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}


/*Boton de precio prducto*/
.btnprecio {
  outline: none;
  cursor: pointer;
  border: none;
  padding:  0.2rem 1rem;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
border: 2px solid red; /* contorno rojo */
  position: relative;
  display: inline-block;
  letter-spacing: 0.05rem;
  font-weight: 700;
  font-size: 17px;
  border-radius: 500px;
  overflow: hidden;
  background:rgb(255, 255, 255);
  color: ghostwhite;
}

.btnprecio span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
}

.btnprecio:hover span {
  color: black;
}

.btnprecio::before,
.btnprecio::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.btnprecio::before {
  content: "";
  background: red;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.btnprecio:hover::before {
  transform: translate3d(100%, 0, 0);
}
/* Footer */
footer {
      background-color: #111;
      color: white;
      padding: 2rem 0;
    }
footer .logo-footer {
      width: 100px;
    }

    .btn {
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.agotado {
  opacity: 0.6;
  filter: grayscale(20%);
  pointer-events: none;
}

.marca-agua-stock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255, 0, 0, 0.2);
  z-index: 5;
  pointer-events: none;
  user-select: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.modal-content img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(150, 0, 200, 0.6);
}
.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.85);
}
.modal-content {
  background: transparent;
  border: none;
}


.btn-close {
  filter: none;
  background-color: white;
}
