/* Variables principales */
:root {
    --primary-color: #00C896;
    --primary-dark: #00A67D;
    --primary-light: #4dc5be;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b35;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e9ecef;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenido principal para evitar overlap con navbar */
main {
    margin-top: 70px;
    padding: 0;
    min-height: calc(100vh - 70px);
}

/* Sección del banner mejorada */

/* Sección Por qué elegir */
.why-choose-section {
    padding: 50px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23f0f0f0" opacity="0.1"><polygon points="0,0 1000,100 1000,0"/></svg>') no-repeat;
    background-size: cover;
    pointer-events: none;
}

.why-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.why-title {
    font-size: 3rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight-text {
    background: linear-gradient(135deg, #00C896, #00A67D);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #00C896, #00A67D);
    border-radius: 2px;
}

.why-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #00C896, #00A67D);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 200, 150, 0.15);
    border-color: rgba(0, 200, 150, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00C896, #00A67D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #00C896, #00A67D);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon::before {
    opacity: 0.2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #00C896;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .why-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .why-title {
        font-size: 2rem;
    }

    .why-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .feature-card {
        padding: 30px 25px;
        margin: 0 15px;
    }

    .why-header {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .why-title {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }

    .feature-title {
        font-size: 1.2rem;
    }
}

/* Sección de productos mejorada */
.products-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-light) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.products-container {
    display: flex;
    gap: 40px;
}

/* Filtros mejorados y responsive */
.filters-wrapper {
    width: 280px;
    flex-shrink: 0;
}

.filters-toggle {
    display: none;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    transition: var(--transition);
}

.filters-toggle:hover {
    background-color: var(--primary-dark);
}

.toggle-icon {
    transition: var(--transition);
}

.filters-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.filters-sidebar {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.filters-header h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 0;
}

.clear-filters {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

.clear-filters:hover {
    background-color: var(--gray-light);
    color: var(--text-dark);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-medium);
    position: relative;
}

.filter-group h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 2px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Para Firefox */
.filter-options {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-light);
}

.filter-options label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.filter-options label:hover {
    background-color: rgba(32, 178, 170, 0.05);
    border-color: rgba(32, 178, 170, 0.2);
}

.filter-options input[type="checkbox"] {
    margin-right: 12px;
    accent-color: var(--primary-color);
    transform: scale(1.1);
}

.count {
    color: var(--text-light);
    font-size: 0.85rem;
    background-color: var(--gray-light);
    padding: 2px 8px;
    border-radius: 12px;
}

.price-filter {
    margin-top: 15px;
}

#price-range {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--gray-medium) 0%, var(--primary-color) 100%);
    outline: none;
    border-radius: 4px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.price-display {
    margin-top: 12px;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--gray-light);
    padding: 8px 12px;
    border-radius: var(--border-radius);
}


/* Select de ordenamiento */
.sort-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Grid de productos */
.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-content: start;
    align-items: start;
}
.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(32, 178, 170, 0.2);
}

.product-image {
    width: 100%;
    height: 260px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 20px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--gray-light);
}

.product-image img {
    /* SOLUCIÓN: Limitar el tamaño máximo para imágenes verticales */
    max-width: 80%; /* Achicar imagen si es muy ancha */
    max-height: 90%; /* Achicar imagen si es muy alta */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
    background: transparent;
}

.product-card:hover .product-image img {
    transform: scale(1.05); /* Reducir el zoom en hover */
}


.product-image img.cover-style {
    object-fit: cover;
    object-position: center;
}

/* Si prefieres que las imágenes llenen todo el espacio */
.product-image img.cover-style {
    object-fit: cover;
    object-position: center;
}


/* Tablet */
@media (max-width: 1024px) {
    .product-image img {
        max-width: 70%; /* Era 85% */
        max-height: 80%; /* Era 90% */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .product-image img {
        max-width: 60%; /* Era 85% */
        max-height: 70%; /* Era 88% */
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .product-image img {
        max-width: 55%; /* Era 90% */
        max-height: 65%; /* Era 85% */
    }
}


.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-color), #ff8a65);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    z-index: 1;
}

.product-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
}

.product-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
    height: 1.2em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 20px;
    margin-top: auto;
}

.price-discounted {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    order: -1;
}

.add-to-cart {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.add-to-cart:hover::before {
    left: 100%;
}

.add-to-cart:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .banner-text h1 {
        font-size: 3rem;
    }
    
    .filters-wrapper {
        width: 260px;
    }
    
    .floating-element {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .products-container {
        flex-direction: column;
        gap: 0;
    }
    
    .filters-wrapper {
        width: 100%;
        order: -1;
        margin-bottom: 30px;
    }
    
    .filters-toggle {
        display: flex;
    }
    
    .filters-sidebar {
        display: none;
        position: static;
        top: auto;
        width: 100%;
        margin-top: 0;
        padding: 20px;
        transition: all 0.3s ease;
    }
    
    .filters-sidebar.mobile-open {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        gap: 30px;
    }
    
    .banner-text {
        max-width: 100%;
        margin-bottom: 0;
    }
    
    .banner-text h1 {
        font-size: 2.5rem;
    }
    
    .banner-actions {
        justify-content: center;
    }
    
    .banner-image {
        justify-content: center;
        height: 200px;
    }
    
    .floating-element {
        font-size: 2.5rem;
        padding: 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .banner-section {
        height: 500px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .products-section {
        padding: 60px 0;
    }
    
    .banner-section {
        height: 450px;
    }
    
    main {
        margin-top: 60px;
    }
    
    .banner-text h1 {
        font-size: 2rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
    
    .banner-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .banner-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-image {
        height: 200px;
        font-size: 3.5rem;
    }
    
    .product-info {
        padding: 18px 15px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .price-discounted {
        font-size: 1.1rem;
    }
    
    .add-to-cart {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .floating-element {
        font-size: 2rem;
        padding: 12px;
    }
    
    .element-1 {
        top: 15%;
        left: 15%;
    }
    
    .element-2 {
        top: 45%;
        right: 15%;
    }
    
    .element-3 {
        bottom: 15%;
        left: 35%;
    }
    
    .filters-sidebar {
        padding: 15px;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
    
    .filter-options {
        gap: 8px;
    }
    
    .filter-options label {
        padding: 8px 10px;
    }
    
    .form-group input {
        padding: 10px 12px;
    }
}

/* CSS para Slider Infinito de Logos */

.brands-infinite-slider {
    margin: 60px 0;
    overflow: hidden;
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.brands-infinite-slider::before,
.brands-infinite-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.brands-infinite-slider::before {
    left: 0;
    background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}

.brands-infinite-slider::after {
    right: 0;
    background: linear-gradient(270deg, var(--white) 0%, transparent 100%);
}

.brands-track {
    display: flex;
    will-change: transform;
    transition: none;
    cursor: grab;
}

.brands-track:active {
    cursor: grabbing;
}.brand-logo-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    pointer-events: none; /* Evita interferencia con el arrastre */
}

.brand-logo-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.logo-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gray-light), var(--gray-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-logo-item:hover .logo-icon {
    background: var(--gradient-primary);
    transform: rotate(10deg);
    box-shadow: 0 5px 15px rgba(0, 200, 150, 0.3);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.brand-logo-item:hover .logo-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .brand-logo-item {
        margin: 0 30px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-logo-item {
        margin: 0 25px;
        gap: 12px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
}

/* Stats Cards Modernas - Diseño Diverso y Colorido */
.brands-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 60px 30px;
    padding: 40px 0;
}

/* Card Base - Diseño moderno con variedad */
.stat-card {
    padding: 35px 30px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Efecto de brillo en hover */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Variaciones de color para cada card */

/* Card 1 - Verde Primario (8+ Marcas Premium) */
.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #00C896 0%, #00A67D 100%);
    color: #ffffff;
}

.stat-card:nth-child(1):hover {
    box-shadow: 
        0 20px 60px rgba(0, 200, 150, 0.3),
        0 8px 24px rgba(0, 166, 125, 0.2);
}

/* Card 2 - Azul Moderno (100% Productos Originales) */
.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.stat-card:nth-child(2):hover {
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.3),
        0 8px 24px rgba(118, 75, 162, 0.2);
}

/* Card 3 - Naranja Vibrante (2 Años Garantía) */
.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
}

.stat-card:nth-child(3):hover {
    box-shadow: 
        0 20px 60px rgba(255, 107, 53, 0.3),
        0 8px 24px rgba(247, 147, 30, 0.2);
}

/* Card 4 - Rosa/Púrpura (24h Envío Express) */
.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #e056fd 0%, #f0932b 100%);
    color: #ffffff;
}

.stat-card:nth-child(4):hover {
    box-shadow: 
        0 20px 60px rgba(224, 86, 253, 0.3),
        0 8px 24px rgba(240, 147, 43, 0.2);
}

/* Iconos con diseño moderno */
.stat-icon {
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Información de stats */
.stat-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
}

.stat-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Versión alternativa con fondo claro (opcional) */
.stat-card.light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card.light .stat-icon {
    background: var(--gradient-primary);
    border: none;
    color: #ffffff;
}

.stat-card.light .stat-number {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.stat-card.light .stat-label {
    color: var(--text-light);
}

/* Patrones decorativos sutiles */
.stat-card:nth-child(1)::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:nth-child(2)::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:nth-child(3)::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:nth-child(4)::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -40%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .brands-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 50px 20px;
    }
    
    .stat-card {
        padding: 30px 25px;
        gap: 20px;
    }
    
    .stat-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
        border-radius: 16px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .brands-stats {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 40px 15px;
    }
    
    .stat-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        border-radius: 14px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 480px) {
    .brands-stats {
        margin: 30px 10px;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        border-radius: 18px;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* Animaciones de entrada escalonada */
@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-card {
    animation: slideInScale 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Efectos adicionales */
.stat-card:active {
    transform: translateY(-8px) scale(1.01);
}

/* Efecto de pulso en los números */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.stat-card:hover .stat-number {
    animation: pulse 2s ease-in-out infinite;
}

/* Mejora para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .stat-card,
    .stat-icon,
    .stat-number {
        transition-duration: 0.2s;
        animation: none;
    }
}