﻿
.pagination .page-link {
    border-radius: 50px !important;
    padding: 0.5rem 1.2rem !important;
}
/* =========================================================
   FIX CARRUSEL DE PRODUCTOS (Forzar 5 items)
   ========================================================= */

/* Solo aplica en pantallas medianas hacia arriba (Laptops/PC) */
@media (min-width: 992px) {

    /* Atacamos específicamente la fila dentro del carrusel activo */
    .carousel-item .row {
        /* Desactivamos el comportamiento estándar de filas */
        flex-wrap: nowrap !important;
    }

        /* Forzamos a que cada tarjeta ocupe exactamente el 20% (1/5) del espacio */
        .carousel-item .row > .col {
            flex: 0 0 20% !important;
            width: 20% !important;
            max-width: 20% !important;
        }
}

.pagination .page-item.active .page-link {
    background-color: #6c63ff !important;
    border-color: #6c63ff !important;
    color: white !important;
}

.pagination .page-link:hover {
    background-color: #574fd6 !important;
    color: white !important;
}
/* --- VARIABLES Y RESET --- */
:root {
    --primary-color: #0026a7; /* Azul Tech tipo Apple/BestBuy */
    --secondary-color: #1d1d1f; /* Negro suave */
    --accent-color: #00c7b7; /* Turquesa para ofertas/disponible */
    --bg-color: #f5f5f7; /* Gris muy tenue para el fondo general */
    --card-bg: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-lg: 18px;
    --radius-sm: 8px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.04);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* --- HERO SECTION (CAROUSEL) --- */
.hero-section {
    position: relative;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.modern-carousel .carousel-item {
    height: 450px; /* Altura fija para consistencia */
}

.modern-carousel img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85); /* Oscurece levemente para leer texto */
}

.hero-caption {
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    padding: 3rem;
    border-radius: var(--radius-lg);
    left: 10%;
    bottom: 20%;
    text-align: left;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

/* --- BRANDS SECTION --- */
.brands-section {
    background: white;
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brands-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.7;
}
    .brands-container a {
        width: 130px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
.brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s ease;
}


    .brand-logo:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.1);
    }

/* --- TITULOS DE CATEGORIA --- */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        width: 40px;
        height: 3px;
        background: var(--primary-color);
        bottom: -5px;
        left: 0;
        border-radius: 2px;
    }

/* --- PRODUCT CARDS (REDISEÑO TOTAL) --- */
.tech-card {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-lg);
    padding: 1rem;
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .tech-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
        border-color: transparent;
    }

.card-img-wrapper {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.tech-card img {
    max-height: 85%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.tech-card:hover img {
    transform: scale(1.08);
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px; /* Forzar altura de 2 líneas */
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.bg-success-soft {
    background: #e6f9f5;
    color: #00a896;
}

.bg-danger-soft {
    background: #fef2f2;
    color: #ef4444;
}

/* Botón Añadir (Estilo flotante/moderno) */
.btn-add-cart {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-add-cart:hover {
        background-color: var(--primary-color);
        transform: scale(1.02);
    }

/* Chat Widget Modernizado */
#btnChat button {
    background: var(--primary-color) !important;
    border: none;
    transition: var(--transition);
}

    #btnChat button:hover {
        transform: scale(1.1) rotate(10deg);
    }
/* --- AJUSTE ESPECÍFICO PARA SLIDE APPLE --- */
/* Asegura que la laptop/producto quede centrado verticalmente */
.apple-slide-img {
    object-position: center 60%; /* Ajusta el foco de la imagen un poco más abajo */
}

/* Mejora opcional para el botón del carrusel */
.hero-caption .btn {
    font-weight: 600; /* Un poco más de peso para legibilidad sobre imagen */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Sombra para despegarlo del fondo */
    transition: all 0.3s ease;
}

    .hero-caption .btn:hover {
        transform: translateY(-2px); /* Efecto de elevación moderno */
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }


/* =========================================================
   AJUSTES EXCLUSIVOS PARA MÓVIL
   ========================================================= */
@media (max-width: 576px) {

    /* --- CONTENEDOR HORIZONTAL --- */
    .carousel-item .row {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

        .carousel-item .row::-webkit-scrollbar {
            display: none;
        }

        /* --- CADA CARD (2 GRANDES) --- */
        .carousel-item .row > .col {
            flex: 0 0 48%;
            max-width: 48%;
            scroll-snap-align: start;
        }

    /* --- CARD MÁS GRANDE --- */
    .tech-card {
        padding: 1.2rem;
        border-radius: 20px;
    }

    .card-img-wrapper {
        height: 220px;
        margin-bottom: 1rem;
    }

    .tech-card img {
        max-height: 100%;
    }

    /* --- TEXTO LEGIBLE --- */
    .product-category {
        font-size: 0.75rem;
    }

    .product-title {
        font-size: 1.05rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    .subtle-price {
        font-size: 1.1rem;
        font-weight: 700;
    }

    /* --- BOTÓN GRANDE Y TOCABLE --- */
    .btn-add-cart {
        padding: 12px;
        font-size: 1rem;
        border-radius: 14px;
    }
    /* --- CARD MÁS COMPACTA EN MÓVIL --- */
    .tech-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    /* Imagen un poco más baja */
    .card-img-wrapper {
        height: 160px;
        margin-bottom: 0.75rem;
    }

    /* Título más compacto */
    .product-title {
        font-size: 0.95rem;
        height: 40px;
    }

    /* Precio un poco más discreto */
    .subtle-price {
        font-size: 0.95rem;
    }

    /* Botón más bajo pero aún tocable */
    .btn-add-cart {
        padding: 10px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

}
@media (max-width: 576px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}
@media (max-width: 576px) {

    .modern-carousel .carousel-item {
        height: 260px;
    }

    .hero-caption {
        padding: 1.2rem;
        left: 5%;
        bottom: 10%;
        max-width: 90%;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-caption p {
        font-size: 0.9rem;
    }

    .hero-caption .btn {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}
@media (max-width: 576px) {

    .brands-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 1rem;
        gap: 1.5rem;
    }

        .brands-container::-webkit-scrollbar {
            display: none;
        }

        .brands-container a {
            flex: 0 0 auto;
            width: 90px;
            height: 60px;
        }

    .brand-logo {
        max-height: 50px;
    }
}
@media (max-width: 576px) {

   

    #btnChat {
        bottom: 15px;
        right: 15px;
    }
}
