/* ========================================
   ESTILOS GENERALES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ========================================
   HEADER (estilos adicionales)
   ======================================== */
.header {
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #000;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
    padding-left: 2rem;
}

#search-bar {
    border-top: 1px solid #eee;
}

#search-bar input {
    border-radius: 25px;
    border: 1px solid #ddd;
}

#search-bar .btn {
    border-radius: 25px;
    padding-left: 25px;
    padding-right: 25px;
}

/* ========================================
   SLIDER PRINCIPAL - ANCHO 100% SIN FORZAR ALTO
   ======================================== */
.hero-slider .carousel-item {
    height: auto; /* Altura automática */
}

.hero-slider .carousel-item img {
    width: 100%;  /* Siempre 100% de ancho */
    height: auto; /* Alto automático proporcional */
    object-fit: contain; /* Mantiene la proporción */
}

/* Para que el contenedor no tenga padding */
.hero-slider .carousel-inner {
    width: 100%;
}

/* En móvil, si quieres limitar un poco el alto */
@media (max-width: 768px) {
    .hero-slider .carousel-item img {
        max-height: 300px; /* Límite en móvil */
        width: 100%;
        object-fit: cover; /* En móvil sí cubre */
    }
}

/* Texto del slider - solo visible desde tablet */
@media (min-width: 768px) {
    .hero-slider .carousel-caption {
        display: block !important;
        background: rgba(0,0,0,0.5);
        border-radius: 10px;
        padding: 20px;
        bottom: 50px;
    }
}

@media (max-width: 767px) {
    .hero-slider .carousel-caption {
        display: none !important;
    }
}
/* ========================================
   CATEGORÍAS DESTACADAS
   ======================================== */
.categorias-destacadas {
    background: white;
}

.categoria-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 250px;
}

.categoria-card:hover {
    transform: translateY(-5px);
}

.categoria-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.categoria-card:hover img {
    transform: scale(1.1);
}

.categoria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.categoria-card:hover .categoria-overlay {
    background: rgba(0,0,0,0.5);
}

.categoria-overlay h3 {
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ========================================
   TARJETAS DE PRODUCTOS
   ======================================== */
.producto-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.producto-imagen {
    height: 200px;  /* Reducido de 250px a 200px */
    overflow: hidden;
    position: relative;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

.producto-imagen img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.05);
}

.badge-agotado {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.badge-popular {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.producto-info {
    padding: 15px;
    text-align: center;
}

.producto-titulo {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.producto-marca {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.producto-precio {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.btn-outline-dark {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-dark:hover {
    background: #000;
    color: white;
}
/* ========================================
   BANNERS PROMOCIONALES - ANCHO 100% RESPONSIVE
   ======================================== */
.banner-promo {
    background: white;
    width: 100%;
    overflow: hidden;
}

.banner-promo .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}

.banner-promo .container a {
    display: block;
    width: 100%;
}

.banner-promo img {
    width: 100%;
    height: auto; /* Altura automática proporcional */
    display: block;
    transition: opacity 0.3s;
    object-fit: contain; /* Mantiene la proporción */
}

.banner-promo img:hover {
    opacity: 0.9;
}

/* En móvil, si quieres que ocupen todo el ancho sin bordes */
@media (max-width: 768px) {
    .banner-promo .container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .banner-promo img {
        border-radius: 0; /* Sin bordes redondeados en móvil */
    }
}
/* ========================================
   BANNERS PROMOCIONALES
   ======================================== */
.banner-promo {
    background: white;
}

.banner-promo img {
    width: 100%;
    border-radius: 10px;
    transition: opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-promo img:hover {
    opacity: 0.9;
}

/* ========================================
   MARCAS DESTACADAS
   ======================================== */
.marcas-destacadas {
    background: white;
    padding: 40px 0;
}

.marca-logo {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
    margin: 0 auto;
    display: block;
}

.marca-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */
.wsp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.wsp-flotante a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.wsp-flotante a:hover {
    transform: scale(1.1);
    background: #128C7E;
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .dropdown-menu {
        box-shadow: none;
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 400px;
    }
    
    .hero-slider .carousel-caption {
        display: block !important;
        bottom: 20px;
        padding: 15px;
    }
    
    .hero-slider .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .hero-slider .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .categoria-card {
        height: 200px;
    }
    
    .categoria-overlay h3 {
        font-size: 1.3rem;
    }
    
    .producto-imagen {
        height: 200px;
        padding: 10px;
    }
    
    .marca-logo {
        max-height: 60px;
    }
    
    .wsp-flotante {
        bottom: 20px;
        right: 20px;
    }
    
    .wsp-flotante a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .hero-slider .carousel-item {
        height: 300px;
    }
    
    .categoria-card {
        height: 150px;
    }
    
    .categoria-overlay h3 {
        font-size: 1rem;
    }
    
    .producto-imagen {
        height: 180px;
    }
}

/* Utilidades */
.text-success {
    color: #28a745 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* ========================================
   TOP BAR DE MENSAJES
   ======================================== */
.top-bar {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .carousel-item p {
    margin: 0;
    line-height: 1.5;
}

.top-bar .carousel-item i {
    color: #25D366; /* El verde de tu marca */
    width: 20px;
}

.top-bar .carousel-inner {
    min-height: 40px; /* Altura fija para evitar saltos */
}

.top-bar .carousel-control-prev,
.top-bar .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5%;
    opacity: 0.5;
    filter: invert(1); /* Hace las flechas blancas */
}

.top-bar .carousel-control-prev {
    left: 0;
}

.top-bar .carousel-control-next {
    right: 0;
}

/* Responsive: Ocultar flechas en móvil si prefieres */
@media (max-width: 768px) {
    .top-bar .carousel-control-prev,
    .top-bar .carousel-control-next {
        display: none;
    }
}

/* ========================================
   TOP BAR MÁS ANGOSTA
   ======================================== */
.top-bar {
    font-size: 0.85rem; /* Texto un poco más pequeño */
    line-height: 1.2;    /* Reducir altura de línea */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .carousel-item p {
    margin: 0;
    line-height: 1.2;    /* Texto más compacto */
    padding: 2px 0;       /* Espaciado mínimo */
}

.top-bar .carousel-inner {
    min-height: 10px;     /* Reducido de 40px a 30px */
}

.top-bar i {
    color: #25D366;
    width: 16px;          /* Íconos un poco más pequeños */
    font-size: 0.85rem;
}


