
    /* ===== ESTILOS GENERALES ===== */

  
    body {
      margin: 0;
      font-family: 'Helvetica Neue', Arial, sans-serif;
      background: #121212;
      color: #e0e0e0;
    }

    a {
      text-decoration: none;
    }

    /* ===== TOP BAR ===== */
    .top-bar {
      background: #1f1f1f;
      text-align: center;
      padding: 8px;
      font-size: 14px;
      color: #ccc;
      letter-spacing: 0.5px;
    }

    /* ===== NAVBAR ===== */
    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 50px;
      background: #1c1c1c;
      border-bottom: 1px solid #333;
     /* position: sticky;*/
            top: 0;
      z-index: 100;
    }

    .logo {
      font-size: 24px;
      font-weight: bold;
      color: #fff;
      
    }
    .logo img{
      width: 75px;
    }

    .menu a {
      margin: 0 18px;
      color: #ccc;
      font-size: 16px;
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .menu a:hover {
      color: #fff;
    }

    .actions button {
      margin-left: 15px;
      background: none;
      border: none;
      font-size: 16px;
      cursor: pointer;
      color: #ccc;
      transition: color 0.3s ease;
    }

    .actions button:hover {
      color: #fff;
    }

    /* ===== HERO ===== */
.banner {
  width: 100%;
  height: 60vh; /* Altura del banner (ajústala: 60vh = 60% de la pantalla) */
  background: url('../banner.png') no-repeat center center;
  background-size: cover; /* Clave: que se adapte sin deformarse */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;

}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner h1 {
  font-size: 3rem;
  margin: 0;
}

.banner p {
  font-size: 1.5rem;
  margin: 10px 0 20px;
}

.btn-banner {
  background: red;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-banner:hover {
  background: darkred;
}


    /* ===== CONTENEDOR DE PRODUCTOS ===== */
    .contenedor-productos {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 35px;
      padding: 60px;
    }

    .producto {
      position: relative;
      overflow: hidden;
      border-radius: 14px;
      background: #1c1c1c;
      box-shadow: 0 3px 15px rgba(0,0,0,0.4);
      transition: all 0.4s ease;
    }

    .producto img {
      width: 100%;
      height: 420px;
      object-fit: cover;
       
      transition: all 0.5s ease;
    }

    .producto:hover img {
      filter: grayscale(0%);
      transform: scale(1.08);
    }

    /* ===== OVERLAY ===== */
    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 15px;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .producto:hover .overlay {
      opacity: 1;
    }

    .overlay a {
      padding: 10px 20px;
      border-radius: 25px;
      background: #fff;
      color: #000;
      font-size: 14px;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .overlay a:hover {
      background: #e63946;
      color: #fff;
    }

    /* ===== INFORMACIÓN DEL PRODUCTO ===== */
    .info {
      text-align: center;
      padding: 15px 10px;
    }

    .info h3 {
      font-size: 17px;
      font-weight: 500;
      margin: 6px 0 4px;
      color: #f5f5f5;
    }

    .precio {
      font-size: 15px;
      font-weight: bold;
      color: #e63946;
    }

    /* ===== FOOTER ===== */
    footer {
      background: #111;
      color: #ccc;
      padding: 60px 50px 30px;
    }

    .footer-contenido {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 40px;
      margin-bottom: 40px;
    }

    footer h3 {
      font-size: 16px;
      margin-bottom: 15px;
      color: #fff;
    }

    footer ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    footer ul li {
      margin-bottom: 10px;
    }

    footer ul li a {
      color: #ccc;
      font-size: 14px;
      transition: color 0.3s ease;
    }

    footer ul li a:hover {
      color: #fff;
    }

    .newsletter input[type="email"] {
      padding: 10px;
      border-radius: 25px;
      border: none;
      outline: none;
      width: 70%;
      margin-right: 5px;
    }

    .newsletter button {
      padding: 10px 20px;
      border: none;
      border-radius: 25px;
      background: #e63946;
      color: #fff;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .newsletter button:hover {
      background: #fff;
      color: #000;
    }

    .social {
      margin-top: 15px;
    }

    .social a {
      margin-right: 15px;
      font-size: 18px;
      color: #ccc;
      transition: color 0.3s ease;
    }

    .social a:hover {
      color: #fff;
    }

    .footer-bottom {
      text-align: center;
      font-size: 13px;
      color: #777;
      border-top: 1px solid #333;
      padding-top: 15px;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1024px) {
      .contenedor-productos {
        grid-template-columns: repeat(2, 1fr);
      }
      .footer-contenido {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .contenedor-productos {
        grid-template-columns: 1fr;
        padding: 30px;
      }
      .hero-banner {
        height: 300px;
      }
      .hero-banner h1 {
        font-size: 32px;
      }
      .footer-contenido {
        grid-template-columns: 1fr;
      }
    }

/* ===== LOADER DE IMÁGENES ===== */
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
/* transition: opacity 0.6s ease; */
}


.img-wrapper {
  position: relative;
  width: 100%;
  height: 420px; /* mismo alto que antes */
  overflow: hidden;
}

/* Loader como overlay */
.loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1c;
  z-index: 2;
}

.loader::after {
  content: "";
  border: 4px solid #2c2c2c;
  border-top: 4px solid #e63946; /* rojo de tu tema */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*para productods-------------------------------------------------*/
  
    .loading {
      text-align: center;
      padding: 20px;
      font-size: 18px;
      display: none;
    }
.producto-detalle {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* 👈 dos columnas iguales */
  gap: 25px; /* menos separación */
  padding: 40px 20px;
  background: #111;
  color: #fff;
  align-items: flex-start;
}

.galeria {
  display: flex;
  flex-direction: column;
  align-items: center;
}




.imagen-principal {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
   max-width: 420px; /* 👈 más pequeña */
}

.miniaturas {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}




.miniaturas img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, border 0.3s;
  border: 2px solid transparent;
}

.miniaturas img:hover {
  transform: scale(1.1);
}

.miniaturas img.activa {
  border: 2px solid #ff3b3b;
}



.miniaturas img:hover {
  transform: scale(1.08);
}

.producto-info {
  max-width: 100%;
}

.producto-info h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.precio {
  font-size: 1.5rem;
  color: #ff3b3b;
  margin-bottom: 15px;
}

.descripcion {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .producto-detalle {
    grid-template-columns: 1fr; /* 👈 en móviles se apila */
    gap: 25px;
  }

  .imagen-principal {
    max-width: 100%;
    margin: 0 auto;
  }
}

.tallas {
  margin-bottom: 25px;
}

.tallas button {
  margin: 5px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.tallas button:hover {
  background: #444;
}

.acciones button {
  padding: 12px 25px;
  margin-right: 15px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-comprar {
  background: #ff3b3b;
  color: #fff;
}

.btn-comprar:hover {
  background: darkred;
}

.btn-carrito {
  background: #fff;
  color: #111;
}

.btn-carrito:hover {
  background: #ddd;
}


/* ===== Modal ===== */
.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-contenido {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar:hover {
  color: #ff3b3b;
}





/*   --------------  */

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 30px;
  background: #111;
  color: #fff;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff3b3b;
  text-decoration: none;
}

.navbar .menu a {
  margin: 0 15px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.navbar .menu a:hover {
  color: #ff3b3b;
}

/* ===== CATEGORÍAS ===== */
.categorias-menu {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 12px 20px;
    background: #1a1a1a;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    /* overflow-x: auto; */
    flex-wrap: wrap;
}

.categorias-menu a {
  position: relative;
  padding: 5px 10px;
  color: #fff;
  text-decoration: none;
}

.categorias-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #ff3b3b;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.categorias-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}




#rex-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #ff3b35;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
  animation: chatyEffect 5s ease-in-out infinite;
  transition: transform 0.3s;
}

#rex-chat:hover {
  transform: scale(1.1);
}

/* Ícono dentro del botón */
#rex-chat img {
  width: 40px;
  height: 40px;
}
/* Animación tipo Chaty */
@keyframes chatyEffect {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.15);
    opacity: 0.9;
  }
  60% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

/* Tooltip */
.tooltip-chat {
  position: absolute;
  right: 70px;
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Flecha del tooltip */
.tooltip-chat::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
}

/* Mostrar tooltip al pasar el mouse */
#rex-chat:hover .tooltip-chat {
  opacity: 1;
}


.precio2 {
text-decoration: line-through;
    font-weight: 300;
    font-size: 1.2rem;
    color: #828080;
    margin-top:-10px ;
    margin-bottom: 0";
}

.titulocategoria {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
    
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    flex-wrap: wrap;
}


/* ===== CATEGORÍAS PEGADAS SOLO EN PC ===== */
@media (min-width: 1024px) {
  .categorias-menu {
    position: sticky;
    top: 0px; /* altura de tu navbar */
    background: #111; /* color de fondo para que no se mezcle */
    z-index: 1000;
    padding: 10px 0;
  }

  .categorias-menu a {
    padding: 10px 15px;
    display: inline-block;
  }
}
