/* ====== GENERAL ====== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5; /* Gris muy claro para un fondo limpio */
    color: #333;
    scroll-behavior: smooth;
}

.container-xl {
    /* Mantiene el contenido centrado y no demasiado ancho */
    max-width: 1300px; 
}

/* Paleta de colores:
   - Primario (Gamer/Énfasis): #007bff o un color neón como #00bcd4
   - Éxito/Acción: #28a745 (Verde original, funciona bien para 'comprar')
   - Fondo oscuro: #1e2125
*/

/* Header */
.tienda-header {
    background: #fff;
    padding: 15px 0;
    z-index: 1050;
}

/* Nav links desktop y mobile */
.nav-link {
    color: #555;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: #007bff;
    text-decoration: underline;
}

/* Espaciado entre links desktop */
.left-nav, .right-nav {
    gap: 25px;
}

/* Logo */
.logo-img {
    height: 60px;
    object-fit: contain;
}

/* Botón carrito */
.btn-cart {
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: 0.3s;
}

.btn-cart:hover {
    background-color: #0056b3;
}

/* Menú hamburguesa móvil */
.btn > i.bi-list {
    font-size: 1.8rem;
    color: #007bff;
}

/* ====== BANNERS ====== */
.banner-section {
    padding-top: 0;
}

.banner-img {
    width: 100%;
    height: 450px; /* Altura por defecto para escritorio */
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ====== Ajustes responsivos ====== */
@media (max-width: 992px) { /* Tablets */
    .banner-img {
        height: 350px;
    }
}

@media (max-width: 768px) { /* Móviles grandes */
    .banner-img {
        height: 280px;
    }
}

@media (max-width: 576px) { /* Móviles pequeños */
    .banner-img {
        height: 220px;
        object-position: center; /* centra la parte visible */
    }
}


/* Eliminar el hover de escala si se ve inestable en algunos navegadores */
/* .carousel-item:hover .banner-img {
    transform: none; 
} */ 

/* ====== PRODUCTOS DESTACADOS ====== */
.section-title {
    font-family: 'Montserrat', sans-serif; /* Tipografía más de "titular" */
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e2125; /* Oscuro y fuerte */
    border-bottom: 3px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 3rem !important;
}

.producto-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px; /* Ligeramente más redondeado */
    background: #fff;
    border: 1px solid #eee;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.producto-img {
    height: 250px; /* Un poco ms alto para mejor vista */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 10px; /* Espacio para que no toque los bordes */
}

.producto-nombre {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    min-height: 48px; /* Altura mínima para títulos de 2 líneas */
    overflow: hidden;
}

.producto-precio {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #007bff; /* Usar el color primario para el precio */
    font-weight: 700;
}

/* Botón "Añadir al Carrito" (Principal) */
.producto-card .btn-add-cart {
   /* background-color: #28a745;  Verde para la acción de compra */
    /*color: #fff;*/
    background-color: #fff;
    color: #0000cc;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
}

.producto-card .btn-add-cart:hover {
    background-color: #218838;
}

/* Botón "Ver Detalle" (Secundario) */
.producto-card .btn-ver {
    background-color: #fff;
    color: #0000cc;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid #0000cc;
}

.producto-card .btn-ver:hover {
    background-color: #333;
    color: #fff;
}


/* ====== FOOTER ====== */
.footer {
    background-color: #1e2125; /* Negro/Gris muy oscuro para un look sólido */
    color: #f0f2f5;
}

.footer a {
    color: #f0f2f5;
}

.footer a:hover {
    color: #007bff;
}



/* Header general */
.tienda-header {
    background: #fff;
    padding: 10px 0;
    z-index: 1050;
}

/* Nav links */
.nav-link {
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: #007bff;
    text-decoration: underline;
}

/* Espaciado entre links */
.left-nav, .right-nav {
    gap: 20px;
}

/* Logo centrado y proporcional */
.logo {
    max-width: 90px; /* Limita el ancho total del logo */
}
.logo-img {
    height: 40px; /* Tamaño compacto */
    width: auto; /* Mantiene proporción */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Botón carrito */
.btn-cart {
    background-color: #fff;
    color: #0000cc;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: 0.3s;
}

.btn-cart:hover {
    background-color: #0056b3;
}

/* Botón hamburguesa móvil */
.btn > i.bi-list {
    font-size: 1.5rem;
    color: #007bff;
}


/* ====== HEADER CATEGORÍAS ====== */
.tienda-header .dropdown-menu {
    min-width: 220px;
    transition: all 0.2s ease-in-out;
}

.tienda-header .dropdown-item:hover {
    background-color: #f1f3f9;
    color: #0d6efd;
}

.tienda-header .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tienda-header .nav-link:hover {
    color: #0d6efd;
}

.logo-img {
    max-height: 60px;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}






  .whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 28px;
    z-index: 9999;
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    animation: waFloat 3.8s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .whatsapp-float:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
  }

  .wa-btn {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    color: white;
    text-decoration: none;
  }

  .wa-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
  }

  @keyframes waFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
  }

  @media (max-width: 420px) {
    .wa-btn { width: 56px; height: 56px; }
    .wa-btn svg { width: 26px; height: 26px; }
    .whatsapp-float { right: 14px; bottom: 18px; }
  }
  
  /* Transición suave entre banners */
.carousel-item img {
  transition: transform 2.5s ease;
}

.carousel-item.active img {
  transform: scale(1.05) translateY(-2%);
}


/* Caja buscador */
/* Caja buscador */
.search-box {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    transition: all .3s ease;
}
.search-box:focus-within {
    border-color: #0d6efd;
    transform: scale(1.02);
}

/* Resultados */
#resultadoBusqueda {
    background: #fff;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
}

.resultado-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: .2s;
}
.resultado-item:hover {
    background: #f6f9ff;
}

.resultado-item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 10px;
}

/* --- Móviles --- */
@media (max-width: 600px) {
    /* **IMPORTANTE:** Cambiado de .result-item a .resultado-item */
    .resultado-item {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* **IMPORTANTE:** Corregido el selector y reducido el tamaño */
    .resultado-item img {
        width: 40px; /* **¡Tamaño más pequeño en móvil!** */
        height: 40px; /* Es mejor mantener width y height iguales para object-fit: cover */
    }
}



header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.25s ease;
    z-index: 999;
}

.hidden-header {
    transform: translateY(-100%);
}





