/* Variables de color tecnológico */
:root {
    --primary: #0a0e29;
    --secondary: #1a237e;
    --accent: #00b8ff;
    --accent-glow: rgba(0, 184, 255, 0.6);
    --accent2: #ff3e80;
    --accent2-glow: rgba(255, 62, 128, 0.6);
    --light: #f8f9ff;
    --dark: #070a1f;
    --gray: #8a92b3;
    --light-gray: #f0f2ff;
    --border: #d1d6ff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 30px rgba(0, 184, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-tech: linear-gradient(135deg, #0a0e29 0%, #1a237e 50%, #283593 100%);
    --gradient-accent: linear-gradient(90deg, #00b8ff 0%, #0066ff 100%);
    --gradient-accent2: linear-gradient(90deg, #ff3e80 0%, #ff1a5e 100%);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--light);
    font-weight: 300;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header con logo, búsqueda y carrito */
.main-header {
    background: rgba(10, 14, 41, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 55px;
    margin-right: 30px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.asesoria {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-left: 30px;
    text-align: right;
}

.asesoria-main {
    font-size: 1.3rem;
    background: var(--gradient-accent2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.asesoria-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.asesoria-link i {
    font-size: 2.2rem;
    color: var(--accent2);
}

.logo-main {
    font-size: 1.8rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.asesoria-sub {
    font-size: 0.8rem;
    color: var(--accent2);
    font-weight: 400;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 2px;
}

.search-cart-container {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    max-width: 800px;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
    font-weight: 300;
    backdrop-filter: blur(10px);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
    z-index: 2;

}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent2);
    color: white;
    font-size: 0.7rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 62, 128, 0.5);
}

/* Sección de anuncios principales */
.ads-section {
    padding: 40px 0 200px;
    background: rgba(10, 14, 41, 0.95);
    position: relative;
    overflow: hidden;
}

.ads-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1650px;
    background: linear-gradient(to bottom,
            rgba(10, 14, 41, 0) 0%,
            rgba(10, 14, 41, 0.4) 25%,
            rgba(10, 14, 41, 0.7) 50%,
            rgba(10, 14, 41, 0.9) 75%,
            rgba(10, 14, 41, 1) 90%,
            var(--light) 100%);
    z-index: 1;
    pointer-events: none;
    animation: fadeInOut 2s ease-in-out;
}

.ads-container {
    position: relative;
    z-index: 2;
}

.ads-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.ad-square {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    position: relative;
}

.ad-square:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 184, 255, 0.4);
}

/* Carrusel de imágenes */
.ad-carousel {
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--accent);
}

/* Imagen animada */
.ad-animated {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ad-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(0, 184, 255, 0.1) 50%,
            transparent 70%);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.animated-content {
    padding: 0;
}

.animated-content video {
    height: 400px;
    width: 100%;
    object-fit: cover;
    /* 👈 se ajusta sin recortar */
    display: block;
}


.animated-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 184, 255, 0.3);
}

.animated-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.animated-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 184, 255, 0.4);
}

.animated-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 184, 255, 0.6);
}

.ad-square {
    position: relative;
    overflow: hidden;
}

.ad-animated {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Banner animado */
.ad-banner {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-glow);
}

.banner-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    max-width: 600px;
    color: white;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Sección de catálogo con transición */
.catalog-section {
    background: var(--light);
    padding: 0 0 60px;
    position: relative;
    z-index: 3;
}

.catalog-header {
    text-align: center;
    margin-bottom: 50px;
}

.catalog-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.catalog-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.catalog-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout principal con filtros y productos */
.main-content {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
}

/* Panel de filtros */
.filters-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
    border: 1px solid var(--border);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.filters-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-title i {
    color: var(--accent);
}

.clear-filters {
    background: none;
    border: none;
    color: var(--accent2);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.clear-filters:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
}

.filter-group-title span {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 400;
}

.price-slider {
    width: 100%;
    margin: 20px 0;
    -webkit-appearance: none;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    outline: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-accent);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 184, 255, 0.5);
}

.price-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 25px;
}

.filter-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 184, 255, 0.3);
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 184, 255, 0.5);
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.filter-option:hover {
    background: var(--light-gray);
}

.filter-option input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.filter-option label {
    cursor: pointer;
    font-weight: 400;
    font-size: 0.95rem;
    flex: 1;
}

.filter-option-count {
    color: var(--gray);
    font-size: 0.85rem;
    background: var(--light-gray);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Sección de productos */
.products-content {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.products-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-count {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--light-gray);
    padding: 8px 20px;
    border-radius: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border);
}

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

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-accent2);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 15px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(255, 62, 128, 0.3);
}

.product-image {
    height: 220px;
    padding: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 184, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite linear;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

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

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--primary);
    min-height: 60px;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.old-price {
    color: var(--gray);
    font-size: 0.95rem;
    text-decoration: line-through;
    font-weight: 400;
}

.new-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-cart {
    flex: 1;
    padding: 12px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart:hover {
    background: linear-gradient(90deg, #0066ff 0%, #0044cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 255, 0.4);
}

.btn-details {
    padding: 12px 25px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
}

.btn-details:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--gradient-tech);
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Marca más ancha que contacto */
    gap: 80px;
    align-items: start;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--accent);
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-column p,
.footer-column li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

.footer-column ul {
    list-style-type: none;
}

.footer-column li i {
    margin-right: 12px;
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 184, 255, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .ads-row {
        flex-direction: column;
    }

    .ad-square {
        height: 350px;
    }

    .main-content {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .search-cart-container {
        width: 100%;
        gap: 15px;
    }

    .search-box {
        max-width: 100%;
    }

    .ads-section {
        padding: 30px 0 50px;
    }

    .ad-square {
        height: 300px;
    }

    .ad-banner {
        height: 150px;
    }

    .banner-slide {
        padding: 0 20px;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .catalog-title {
        font-size: 2.5rem;
    }

    .products-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-info {
        padding: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .ad-square {
        height: 250px;
    }

    .animated-title {
        font-size: 2rem;
    }

    .ad-banner {
        height: 120px;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .catalog-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 200px;
    }
}

.brands-section {
    margin-top: 15px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contenedor del carrusel con gradiente de desvanecimiento */
.brands-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.brands-slider-container::before,
.brands-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-slider-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--light) 0%, transparent 100%);
}

.brands-slider-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--light) 0%, transparent 100%);
}

.brands-slider {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Carrusel con gradiente en movimiento */
.brands-track {
    display: flex;
    gap: 40px;
    animation: slideBrands 30s linear infinite;
    padding: 20px 0;
    will-change: transform;
}

.brand-logo {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 255, 0.95) 100%);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(10, 14, 41, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(0, 184, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite linear;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(0, 184, 255, 0.2),
        0 0 0 2px rgba(0, 184, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-logo:hover::before {
    opacity: 1;
}

.brand-logo:hover::after {
    opacity: 1;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9);
}

.brand-logo:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1);
}

/* Animación del carrusel */
@keyframes slideBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-180px * 8 - 40px * 7));
        /* Ancho total de 8 logos + gaps */
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .brands-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .brand-logo {
        width: 160px;
        height: 90px;
        padding: 20px;
    }

    @keyframes slideBrands {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-160px * 8 - 40px * 7));
        }
    }
}

@media (max-width: 768px) {
    .brands-section {
        padding: 40px 0;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .brands-slider-container::before,
    .brands-slider-container::after {
        width: 80px;
    }

    .brand-logo {
        width: 140px;
        height: 80px;
        padding: 15px;
        border-radius: 12px;
    }

    .brands-track {
        gap: 30px;
    }

    @keyframes slideBrands {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-140px * 8 - 30px * 7));
        }
    }

    .brands-indicator {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .brand-logo {
        width: 120px;
        height: 70px;
        padding: 12px;
    }

    .brands-track {
        gap: 20px;
    }

    @keyframes slideBrands {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-120px * 8 - 20px * 7));
        }
    }
}

/* ===== ESTILOS DEL CARRITO MEJORADOS ===== */

/* Contador del carrito mejorado */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--accent2), #ff6b35);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cart-icon:hover .cart-count {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Preview del carrito mejorado */
.cart-preview-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.61);
    z-index: 1000;
    margin-top: 15px;
    margin-right: 155px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.cart-preview-container::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 25px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.1));
}

.cart-preview-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.cart-preview-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
}

.clear-cart-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-cart-btn:hover {
    background: #ffebee;
    transform: translateY(-1px);
}

.cart-preview-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    position: relative;
}

.cart-preview-item:hover {
    background: #f9f9f9;
    transform: translateX(5px);
}

.cart-preview-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    border: 2px solid #f0f0f0;
}

.cart-preview-info {
    flex: 1;
    min-width: 0;
}

.cart-preview-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
}

.cart-preview-info p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--accent2);
    font-weight: bold;
}

.cart-preview-info small {
    font-size: 11px;
    color: var(--gray);
    display: block;
}

.cart-preview-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: var(--dark);
}

.quantity-btn:hover {
    background: var(--accent2);
    color: white;
    border-color: var(--accent2);
    transform: scale(1.1);
}

.cart-preview-quantity span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.remove-item {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    background: #ffebee;
    transform: rotate(90deg);
}

.cart-preview-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
    padding-bottom: 15px;
    border-bottom: 2px dashed #ddd;
}

.cart-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-view-cart, .btn-checkout {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-cart {
    background: var(--dark);
    color: white;
}

.btn-view-cart:hover {
    background: #2d3436;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-checkout {
    background: linear-gradient(135deg, var(--accent2), #ff6b35);
    color: white;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #e74c3c, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Animación mejorada */
.cart-animation {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 18px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(120px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--accent2);
}

.cart-animation.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-animation-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-animation-content i {
    color: var(--accent2);
    font-size: 22px;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-animation-content span {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

/* Botón de carrito en producto mejorado */
.btn-cart[data-in-cart="true"] {
    background: var(--accent2) !important;
    color: white !important;
}

.btn-cart.active-animation {
    animation: buttonPop 0.5s ease;
    background: linear-gradient(135deg, var(--accent2), #ff6b35) !important;
    color: white !important;
}

@keyframes buttonPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Efecto de pulso en el ícono del carrito cuando se agrega algo */
.cart-icon.pulse {
    animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive para preview del carrito */
@media (max-width: 768px) {
    .cart-preview-container {
        width: 320px;
        right: -50px;
    }
    
    .cart-preview-container::before {
        right: 70px;
    }
    
    .cart-preview-item {
        padding: 12px;
    }
    
    .cart-preview-item img {
        width: 50px;
        height: 50px;
    }
}
/* ===== CARRITO VACÍO ===== */
.empty-cart {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #eef1f4);
    border-radius: 12px;
}

.empty-cart i {
    font-size: 48px;
    color: var(--accent2);
    margin-bottom: 15px;
    opacity: 0.8;
    animation: emptyCartFloat 2s ease-in-out infinite;
}

.empty-cart p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.empty-cart::after {
    content: "Agrega productos para comenzar tu compra";
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray);
}

/* Animación suave del icono */
@keyframes emptyCartFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 600px) {
    .price-box {
        flex-direction: column;  /* Uno debajo del otro */
        align-items: flex-start; /* Alineados a la izquierda */
        gap: 5px;
    }
}

