/* 🌐 Global */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f6f7f8;
}
.logo-text{
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: 1.5px;
}
/* 📍 NAVBAR */
.navbar {
    background: linear-gradient(90deg, #4facfe, #00f2fe); /* celeste gradiente */
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
    color: #fff !important;
}
.navbar-nav .nav-link {
    color: white !important;
    margin: 0 8px;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #d1ecff !important; /* celeste claro en hover */
}

/* 🖼️ HERO */
.hero {
    position: relative;
    margin-top: 0;
    background: linear-gradient(to right, #cf1414ff, #5a1a1dff), 
                url("/images/marketplace-bg.jpg") no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 📌 FOOTER */
footer {
    background: #212529;
    color: #bbb;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}
footer a {
    color: #00f2fe;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* =====================
   Tarjetas de producto
   ===================== */
.product-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.product-img {
    height: 220px;
    object-fit: contain;
    background: #faf9f9;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.producto-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* 👈 máximo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
    }
    
/*categoria sub*/ 

.card-titl1 {
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* 👈 máximo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
}

/* ⭐ Estrellas */
.estrella.llena { color: #ffc107; font-size: 1.2rem; }
.estrella.vacia { color: #ddd; font-size: 1.2rem; }
.estrellas-link:hover { opacity: 0.8; }

/* 💲 Precio */
.precio-producto { margin-top: 10px; }
.precio-producto .text-danger { color: #e63946 !important; }

/* Contenedor premium */
   .precio-box {
    padding: 0.2rem 0;
   }

/* Precio anterior tachado */
.precio-anterior {
    margin-top: -10px !important;
    font-size: 0.75rem;
    color: #7a7a7a;
    text-decoration: line-through;
    margin-bottom: -1px;
}

/* Precio final ULTRA premium */
.precio-oferta {
    margin-top: -5px !important;
    font-size: 1.25rem;
    font-weight: 800;
    color: #e60023;
    line-height: 1.1;
    margin-top: -2px;
}

/* Price normal */
.precio-normal {
    margin-top: -5px !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
}

/* Badge Oferta premium */
.badge-oferta {
    background: #ff2d2d;
    color: white;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
    margin-top: -5px !important;
}
/* 🛒 Botón estilo Amazon */
.btn-warning {
    background-color: #FFD814;
    border-color: #FFD814;
}
.btn-warning:hover {
    background-color: #F7CA00;
    border-color: #F7CA00;
}

/* Estilo para el formulario de reseña */
/* ===========================
   Estrellas de calificación ⭐
   =========================== */
.rating {
    direction: rtl; /* Estrellas de derecha a izquierda */
    unicode-bidi: bidi-override;
    font-size: 1.8rem;
    cursor: pointer;
}

.rating input {
    display: none;
}

.rating label {
    color: #ccc;
    cursor: pointer;
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
    color: gold;
}

/* =======================
   Mega Dropdown Categorías
   ======================= */

/* Contenedor principal */
.mega-dropdown .dropdown-menu {
    width: 800px; /* ancho grande tipo Amazon */
    max-width: 95vw;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #fff;
}

/* Columna de categorías */
.mega-dropdown .col-4 {
    background: #f8f9fa;
    border-radius: 10px 0 0 10px;
    padding: 15px;
}

/* Ítems de categorías */
.mega-item {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: all 0.25s ease;
}
.mega-item:hover {
    background: #e9f3ff;
    color: #0d6efd;
    transform: translateX(4px);
}

/* Ícono de carpeta */
.mega-item i {
    margin-right: 6px;
    color: #f7b731; /* amarillo */
    transition: transform 0.2s;
}
.mega-item:hover i {
    transform: rotate(-10deg) scale(1.1);
}

/* Columna de subcategorías */
.mega-dropdown .col-8 {
    background: #ffffff;
    padding: 15px 20px;
}

/* Títulos de subcategorías */
.subcats h6 {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0d6efd;
    margin-bottom: 10px;
}

/* Lista de subcategorías */
.subcats ul li {
    margin-bottom: 8px;
}
.subcats ul li a {
    color: #444;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 5px 8px;
    border-radius: 6px;
    display: inline-block;
}
.subcats ul li a:hover {
    background: #f1f5ff;
    color: #0d6efd;
    transform: translateX(3px);
}

/* Animación de entrada */
.subcats {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.subcats.active {
    display: block !important;
    opacity: 1;
}

/* 🔹 Estilos para la vista de productos por subcategoría */

/* Botón tipo Amazon */
.boton-amazon {
    background-color: #ffd814;
    border: 1px solid #fcd200;
    transition: all 0.3s ease;
}

.boton-amazon:hover {
    background-color: #f0c14b;
    border-color: #a88734;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

/* Tarjetas con efecto hover */
.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Contenedor de imágenes */
.producto-imagen {
    overflow: hidden;
    border-radius: 10px;
}

/* Efecto zoom en imagen */
.imagen-zoom {
    transition: transform 0.5s ease;
}

.producto-imagen:hover .imagen-zoom {
    transform: scale(1.1);
}

/* 🌟 Tarjeta del producto */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #d1d1d1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 🖼 Imagen del producto */
.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-bottom: 1px solid #ccc;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* 🟡 Botón contactar */
.contactar-btn {
    background-color: #ffc107;
    border: none;
    color: #212529;
    transition: all 0.3s ease;
}

.contactar-btn:hover {
    background-color: #ffb300;
    color: #000;
    transform: scale(1.05);
}
/* mega menu de navegacion */
.mega-item:hover {
    background: #f4f4f5;
    cursor: pointer;
    border-radius: 6px;
}

.hover-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.mega-menu {
    border-radius: 12px;
}

.nav-link.active {
    font-weight: bold;
    background: #0d6efd !important;
    color: white !important;
    border-radius: 8px;
}
/* ===========================
   WELCOME WRAPPER – SOLO PC
=========================== */

    .welcome-wrapper {
        width: 100%;
        padding: 0;
    }

    /* Asegura que todas las columnas crezcan igual */
    .productos-destacados .col {
        display: flex;
    }

    /* Tarjeta completa */
    .producto-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    /* Hover elegante */
    .producto-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
    }

    /* Imagen o carrusel altura fija */
    .producto-card .carousel,
    .producto-card img.product-img {
        height: 230px;
        object-fit: cover;
    }

    .producto-card .carousel-inner,
    .producto-card .carousel-item,
    .producto-card .carousel-item img {
        height: 230px;
        object-fit: cover;
    }

    /* Contenido interno crece parejo */
    .welcome-page {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 12px 14px;
    }

    /* Título mismo alto */
    .product-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;     /* 👈 máximo 2 líneas */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.35;
        min-height: calc(1.35em * 2);
    }

    /* Precio siempre abajo */
    .precio-box {
        margin-top: auto;
    }

    
/* 📱 FIX COMPLETO PARA MÓVIL (compatible con tu HTML) */
@media (max-width: 768px) {

    /* 🔥 Tarjeta estilo Mercado Libre + AliExpress */
    .product-card {
        display: flex !important;
        flex-direction: row !important;
        padding: 8px !important;
        height: 135px !important;
        max-height: 135px !important;
        overflow: hidden;
        border-radius: 10px !important;
        background: #fff !important;
        border: 1px solid #f1f1f1 !important;
        gap: 8px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
    .product-card .carousel-inner {
    overflow: hidden !important;
    border-radius: 10px !important;
}

    /* 📸 Carrusel compacto con efecto suavizado */
    .product-card .carousel {
        width: 35% !important;
        height: 120px !important;
        min-height: 120px !important;
        overflow: hidden !important;
        background: #fafafa;
        border-radius: 10px !important;
        border: 1px solid #eee !important;
        margin-right: 10px !important;
        overflow: hidden !important; /* OBLIGATORIO */
    }

    /* 🖼 Imágenes dentro del carrusel */
    /* CONTENEDOR DEL CARRUSEL */
    .product-card .carousel-item,
    .product-img {
        height: 118px !important;
        width: 100% !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0px !important;        
    }
    

    /* ❌ Ocultar flechas del carrusel */
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }

    /* 📝 Cuerpo compacto */
    .card-body {
        padding: 0 !important;
        width: 65% !important;
        height: 120px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* 🔹 Espaciado general super compacto */
    .card-body > * {
        margin-bottom: 2px !important;
        line-height: 1.2rem !important;
    }

    /* 🛒 Título (controlado en 2 líneas) */
    .producto-title {
        font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;   /* SOLO 2 LÍNEAS */
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;
   
    }

    /* ⭐ Reseñas */
    .estrellas-link {
        font-size: 0.8rem !important;
        margin: 0 !important;
        transform: translateY(-2px);
    }

    /* 🧱 Precio normal + oferta */
    .precio-normal,
    .precio-oferta {
        color: #e60023 !important;
        font-size: 14px !important;
        font-weight: bold !important;
        margin-top: 4px !important;
    }

    /* 📦 Stock (visible pero más pequeño) */
    .card-body p
     {
        font-size: 12px !important;
        color: #666 !important;
        margin: 0!important;
        margin-top: -5px !important;
        
    }

    /* ❌ Footer oculto */
    .card-footer {
        display: none !important;
    }
}


/* Ajustes especiales para móvil */
@media (max-width: 576px) {

    .precio-oferta {
        font-size: 1.35rem;
    }

    .precio-anterior {
        font-size: 0.7rem;
    }

    .badge-oferta {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
}
    

@media (max-width: 576px) {

    /* 🔥 Eliminar fondo, borde y sombra del carrusel completo */
    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item.active,
    .carousel-item img {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* 🔥 Forzar que el carrusel NO tenga altura fantasma */
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* 🔥 Eliminar espacio interno que genera la barra gris */
    .carousel-inner {
        padding: 0 !important;
    }

    /* 🔥 Ocultar completamente flechas e íconos */
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .welcome-wrapper .carousel-inner {
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
    }

    .welcome-wrapper .carousel-item {
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
    }

    /* 🔥 Tarjeta estilo AliExpress SOLO en welcome */
    .welcome-wrapper .producto-card {
        border: 1px solid #eee !important;
        border-radius: 6px !important;
        padding: 4px !important;
        background: #fff !important;
        overflow: hidden;
    }

    /* ⚠️ Ocultar controles del carrusel SOLO en welcome */
    .welcome-wrapper .carousel-control-prev,
    .welcome-wrapper .carousel-control-next {
        display: none !important;
    }

    /* 🔥 Mostrar solo primera imagen SOLO en welcome */
    .welcome-wrapper .carousel-item:not(.active) {
        display: none !important;
    }

    .welcome-wrapper .carousel-item.active img {
        display: block;
        width: 100% !important;
        height: 140px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 🔥 Nombre compacto SOLO en welcome */
    .welcome-wrapper .product-title {
        font-size: 14px;
        line-height: 1.3;
        height: 2.6em; /* 2 líneas */
        overflow: hidden;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        text-overflow: ellipsis;
        
    }
       
    }

    /* 🔥 Precio SOLO en welcome */
    .welcome-wrapper .precio-normal,
    .welcome-wrapper .precio-oferta {
        font-size: 0.8rem !important;
        color: #f70202 !important;
        font-weight: bold !important;
        
    }
     /* Ocultar reseñas SOLO en welcome */
    .welcome-wrapper .card-text.mb-2 {
        display: none !important;
    }

    /* Ajustes solo para pantallas móviles */
    @media (max-width: 576px) { 
    .hero { padding: 35px 0 !important; 
        text-align: center; } 
        
    .hero h1 { font-size: 20px !important; 
        margin-bottom: 13px; } 
        
    .hero p { font-size: 14px !important; 
        margin-bottom: 15px; } 
    
        .hero .btn-lg { padding: 4px 16px !important; 
            font-size: 12px !important; } 
        }
        
        
    /* Buscador estilo Amazon */ 
    .buscador-amazon { 
        border-radius: 30px; 
        padding: 10px 18px; 
        font-size: 16px; 
        border: 2px solid #0d6efd; 
        box-shadow: 0 0 4px rgba(0,0,0,0.1); 
    } 
    /* Estilos del menú lateral */ 
    .menu-link { 
        display: block; 
        padding: 12px 5px; 
        font-size: 17px; 
        color: #333; 
        text-decoration: none; 
        border-bottom: 1px solid #f1f1f1; 
    } 
    .menu-link i { 
        margin-right: 10px; 
        color: #0d6efd; 
    } 
    .menu-link:hover { 
        background: #f8f9fa; 
    }
/* Buscador estilo Amazon */ /* Links del menú lateral */ 
 .menu-link { display: block; 
    padding: 12px 8px; 
    font-size: 17px; color: #333; 
    border-bottom: 1px solid #f1f1f1; 
    text-decoration: none;
} 
.menu-link i { 
    margin-right: 10px; 
    color: #0d6efd; 
} 
.menu-link:hover { 
    background: #f8f9fa; 
} 
/* Links navbar PC */ 
.navbar-nav .nav-link { 
    font-size: 16px; 
    font-weight: 500; 
} 
.navbar-nav .nav-link:hover { 
    color: #0d6efd; 
} 
/* =============================== 
FIX DEFINITIVO PARA EL LOGIN 
=============================== */ 
.login-container { 
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
} 
.login-card { 
    padding: 20px !important; 
    max-width: 380px; 
    width: 100%; 
    margin: 0 auto !important; 
}
 /* Evita que las reglas globales de tarjetas lo afecten */ 
 .login-card, 
 .login-card .card-body { 
    display: block !important; 
    height: auto !important; 
    max-height: none !important; 
    overflow: visible !important; 
}
    /* =============================== efecto toque móvil =============================== */ 
    .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:active {
    transform: scale(0.97); /* efecto toque móvil */
}

    
/* vista movil show*/
/* ==============================
   PRODUCTOS SIMILARES - MÓVIL PRO
   ============================== */

@media (max-width: 576px) {

    /* ====== GRID 2 COLUMNAS PERFECTAS ====== */
   
    /* ====== CARD ====== */
    .card {
        border-radius: 14px;
        box-shadow: 0 3px 10px rgba(0,0,0,.08);
        background: #ffffff;
        transition: transform .15s ease, box-shadow .15s ease;
        will-change: transform;
    }

    /* Animación táctil */
    .card:active {
        transform: scale(0.96);
        box-shadow: 0 2px 6px rgba(0,0,0,.06);
        
    }

    /* ====== IMAGEN ====== */
    .producto-similar
    .carousel-inner {
        border-radius: 14px 14px 0 0;
        overflow: hidden;
        height: 130px !important;
         
    }

    .producto-similar
    .carousel-item img {
    
        height: 130px !important;
        width: 100%;
        object-fit: cover;
        display: block;
    }
    
    /* ====== BODY ====== */
    .card-bod1 {
        padding: 6px 8px 8px;
        text-align: left;
    }

    /* Nombre */
    .card-titl1 {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
        color: #1f2937; /* gris oscuro elegante */
        margin-bottom: 2px;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Precio (PEGADO AL NOMBRE) */
    .card-bod1 p {
        margin: 0 0 2px 0;
        font-size: 14px;
        font-weight: 700;
        color: #e53935; /* rojo precio marketplace */
    }

    /* ====== ESTRELLAS ====== */
    .card-bod1 i {
        font-size: 12px;
       color: #ff9800;
    }

    .card-bod1 small {
        font-size: 11px;
        color: #6b7280;
    }

    .card-bod1 .mb-2 {
        margin-bottom: 4px !important;
    }
    .card-bod1 .btn {
        display: none;
    }
}
/* ===============================
   📱 MODO MÓVIL - MENÚ CATEGORÍAS
   =============================== */
.menu-section .menu-link {
    display: block;
    padding: 10px 12px;
    font-size: 1.1rem;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 6px;
}

.cat-app-btn {
    width: 100%;
    border: none;
    background: #f8f9fa;
    padding: 8px 10px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-app-body {
    padding: 6px 10px;
}

.sub-app-item {
    display: block;
    padding: 4px 6px;
    font-size: 0.8rem;
    color: #333;
    text-decoration: none;
}

.sub-app-item:hover {
    background: #e0ecff;
    border-radius: 6px;
}

/* Quitar borde negro del botón Categorías */
.menu-section .menu-link {
    border: none;
    outline: none;
    box-shadow: none;
}

/* Estados de foco (CLAVE) */
.menu-section .menu-link:focus,
.menu-section .menu-link:active,
.menu-section .menu-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ===============================
   📱 MODO MÓVIL - PRODUCTOS OFERTA
   =============================== */
   .producto-oferta
   .carousel-inner {
    height: 220px;          /* altura fija */
    object-fit: contain;
    background: #f8f9fa;   /* fondo claro para mejor visibilidad */
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
   }
   .producto-oferta
   .producto-item img
   {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgb(0, 0, 0, 0,08);
    transition: transform 0.3s ease, box-shadow 0.3s

   }
   .producto-oferta .card-bod2 {
    padding: 12px 14px;
    text-align: left;

   }
   .producto-oferta .card-text {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.1;
    }
    .card-titl2 {
        font-size: 0.99rem;
        font-weight: 600;
        line-height: 1.3;
        color: #1f2937; /* gris oscuro elegante */
        margin-bottom: 4px;

        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
@media (max-width: 576px) {
     /* Imagen */
     .producto-oferta
    .carousel-inner {
        border-radius: 14px 14px 0 0;
        overflow: hidden;
        height: 130px !important;
         
    }

    .producto-oferta
    .carousel-item img {
    
        height: 130px !important;
        width: 100%;
        object-fit: cover;
        display: block;
    }
    
    /* Cuerpo tarjeta */
    .producto-oferta .card-bod2 {
        
        padding-top: 4px !important;
        padding-bottom: 6px !important;
    }
    

    /* Nombre producto */
    .producto-oferta .card-titl2 {
        font-size: 0.75rem;
        line-height: 1.1;
        margin: 0 !important;
        padding: 0 !important;
        height: 2.2em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* Precio */
    .producto-oferta .card-text {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.1;
    }

    .producto-oferta .text-decoration-line-through {
        font-size: 0.6rem;
        margin-right: 4px;
    }

    .producto-oferta .text-danger.fs-4 {
        font-size: 0.9rem !important;
        line-height: 1;
    }
    /* Countdown */
    
    .producto-oferta [id^="countdown"] {
        background: #f1f1f1;           /* gris claro */
        color: #444;                   /* texto gris oscuro */
        font-size: 0.6rem;
        padding: 2px 5px;
        border-radius: 4px;
        border: 1px solid #e0e0e0;
        display: inline-block;
        margin-top: 2px !important;
        line-height: 1;
        font-weight: 600;
    }
     .producto-oferta .btn {
        display: none;
    }
     /* Quitar espacios innecesarios */
    .producto-oferta .mb-3,
    .producto-oferta .mb-2,
    .producto-oferta .mb-1 {
        margin-bottom: 0 !important;
    }
    /* Quitar espacio debajo de la imagen */
    .producto-oferta .carousel,
    .producto-oferta .carousel-inner,
    .producto-oferta img {
        margin-bottom: 0 !important;
    }
    /* Reducir padding superior del body */
    .producto-oferta .card-bod2 {
        padding: 6px 8px 8px;
        text-align: left;
        
    }

    /* Botón ultra compacto */
    .producto-oferta .btn {
        font-size: 0.65rem;
        padding: 4px 8px;
        margin-top: 4px !important;
    }
    /* precio del provedor */ 
    .precio-old {
    color: #0a0a0a;
    font-weight: 400;
    font-size: 12px;
    }

}
/* ===============================
   🌟 ESTILOS RESEÑAS DE PRODUCTO 
   =============================== */
.btn-ver-mas {
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 500;
}
/* CONTENEDOR */
.reseñas-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* TARJETA */
.reseña-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* HEADER */
.reseña-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* USUARIO */
.usuario-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 42px;
    height: 42px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usuario-nombre {
    font-size: 15px;
}

/* ESTRELLAS */
.estrellas {
    line-height: 1;
}

.estrella-activa {
    color: #ffc107;
    font-size: 14px;
}

.estrella-inactiva {
    color: #ddd;
    font-size: 14px;
}

/* FECHA */
.fecha {
    font-size: 12px;
    color: #888;
}

/* COMENTARIO */
.comentario {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
}

/* FOTO */
.foto-reseña img {
    width: 100%;
    max-width: 240px;
    border-radius: 10px;
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 576px) {
    .reseña-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .foto-reseña img {
        max-width: 100px;
    }

    /*titulo del provedor*/
    .card-body .card-title {
         
        font-size: 0.75rem;
        line-height: 1.1;
        margin: 0 !important;
        padding: 0 !important;
        height: 2.em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

    }
}

/* BOTÓN CONTACTAR WHATSAPP */
.btn-contactar {
    background-color: #ffc107;   /* amarillo */
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 50px;
    border-radius: 10px;
    border: none;
}

/* Hover suave */
.btn-contactar:hover {
    background-color: #ffb300;
    color: #000;
}

/* === RANKING CON IMÁGENES SEMANAL=== */
/* CONTENEDOR SCROLL */
@media (max-width: 576px) {
    .producto-img-wrapper {
        height: 130px;
    }

    .producto-precio {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .contactos-hoy {
        font-size: 7px;
        padding: 3px 6px;
    }
}

a {
    text-decoration: none;
}


.ranking-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scroll-behavior: smooth;
}

/* TARJETA */
.ranking-card {
    
    position: relative;
    min-width: 260px;
    max-width: 260px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
    color: #000
}

.ranking-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

/* BADGE */
.ranking-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f18c06, #fb8f03);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 20px;
    z-index: 2;
}

/* IMAGEN */
.ranking-img {
    height: 180px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.ranking-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.ranking-card:hover img {
    transform: scale(1.06);
}

/* CUERPO */
.ranking-body {
    padding: 14px;
}

/* TITULO */
.ranking-title {
    font-size: 0.99rem;
        font-weight: 600;
        line-height: 1.3;
        color: #1f2937; /* gris oscuro elegante */
        margin-bottom: 4px;

        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    
}

/* META */
.ranking-meta {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 6px;
}

/* PRECIO */
.ranking-price {
    font-size: 17px;
    font-weight: 700;
    color: #575252;
    margin-bottom: 10px;
}

/* BOTÓN */
.btn-ranking5 {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #00b4d8;
    color: #00b4d8;
    font-weight: 600;
    transition: all .25s ease;
}

.btn-ranking:hover {
    background: #00b4d8;
    color: #fff;
}


/* TABLET → 2 COLUMNAS */
@media (max-width: 992px) {
    .ranking-scroll {
        grid-auto-columns: 50%;
    }
}

/* MÓVIL → TARJETA GRANDE */
@media (max-width: 576px) {
    .ranking-scroll {
        grid-auto-columns: 80%;
    }

    .ranking-img-wrapper {
        height: 160px;
    }
    
}

.img-producto{
    height: 450px;
    object-fit: cover; /* o cover si prefieres */
}


.producto-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.producto-img-wrapper{
    position:relative;
    border-radius:16px;
    overflow:hidden;
    background:#f8f9fa;
    transition:transform .25s ease, box-shadow .25s ease;
}

.producto-img-wrapper img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

/* Precio */
.producto-precio{
    position:absolute;
    bottom:10px;
    left:10px;
    background:rgb(226, 225, 225);
    padding:6px 12px;
    border-radius:20px;
    font-weight:bold;
    color:#e53935;
    box-shadow:0 4px 10px rgba(154, 152, 152, 0.15);
}

/* Hover PC */
.producto-img-wrapper:hover{
    position:relative;
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.contactos-hoy{
    position:absolute;
    top:6px;
    left:6px;
    background:linear-gradient(135deg, #f7c948, #f59e0b);
    color:#333;
    padding:3px 8px;
    font-size:11px;
    font-weight:600;
    border-radius:12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display:flex;
    align-items:center;
    gap:3px;
    
}

.oferta-oferta{
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    letter-spacing: 1px;
}
.precio-rojo{
    color: #dc3545;
    font-weight: bold;
}

.btn-regalos{
    display: inline-flex;
    align-items: center;
    gap: 8px;            /* Espacio entre el icono y el texto */
    text-decoration: none; /* Quita el subrayado azul */
    color: white;        /* Color del texto e icono */
    font-size: 16px;     /* Ajusta al tamaño de tu menú */
    font-weight: bold;
    padding: 5px 10px;
    border: none;        /* Quita cualquier borde negro */
    background: transparent; /* Quita fondos extraños */
}

.btn-regalos i {
    font-size: 1.5rem;   /* Tamaño del icono */
}






