/* ===== HERO BANNER MODERNO ===== */

.hero-banner {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img,
.banner-slide a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Botón de acción en banners con enlace */
.banner-action-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    z-index: 2;
    animation: pulseButton 2s ease-in-out infinite;
}

.banner-action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
    animation: none;
}

.banner-action-btn svg {
    transition: transform 0.3s ease;
}

.banner-action-btn:hover svg {
    transform: translateX(4px);
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
    }
}

/* Banner por defecto cuando no hay imágenes */
.banner-default {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

.banner-default h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.banner-default p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.banner-default .btn-banner {
    padding: 1rem 2.5rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.banner-default .btn-banner:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.banner-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dots de navegación */
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.banner-dot:hover {
    background: #667eea;
    transform: scale(1.2);
}

.banner-dot.active {
    background: #667eea;
    width: 32px;
    border-radius: 6px;
}

/* ===== TRUST BADGES ===== */

.trust-badges {
    background: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    transition: all 0.3s;
}

.badge-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
}

.badge-text small {
    font-size: 0.85rem;
    color: #718096;
}

/* ===== CATEGORÍAS ===== */
.categorias-section {
    padding: 2rem 0;
    background: #f8f9fa;
}

.categorias-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.categoria-card {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    isolation: isolate;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
    aspect-ratio: 3 / 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

.categoria-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
    animation: categoriaRotate 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.categoria-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.28) 60%, rgba(255,255,255,0.08) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-size: 400% 400%;
    animation: categoriaGlassMove 5s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes categoriaRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes categoriaGlassMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.categoria-card:nth-child(1) {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
}

.categoria-card:nth-child(2) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.categoria-card:nth-child(3) {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}

.categoria-card:nth-child(4) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.categoria-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.categoria-card:nth-child(6) {
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
}

.categoria-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.categoria-card:hover::before {
    animation-duration: 8s;
}

.categoria-card:hover::after {
    animation-duration: 2.5s;
}

.categoria-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
    position: relative;
}

.categoria-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.categoria-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: fit-content;
}

.categoria-icon {
    font-size: 3.5rem;
    z-index: 3;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categoria-icon svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.categoria-card:hover .categoria-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ===== MARCAS ===== */
.marcas-section {
    padding: 1.5rem 0;
    background: white;
}

.marcas-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.marcas-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.marcas-grid::-webkit-scrollbar {
    height: 6px;
}

.marcas-grid::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 10px;
}

.marcas-grid::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
    transition: background 0.3s;
}

.marcas-grid::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.marca-card {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
}

.marca-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.marca-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.marca-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s;
}

.marca-card:hover .marca-icon {
    transform: scale(1.1) rotate(5deg);
}

.marca-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.marca-nombre {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marca-count {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero-banner {
        padding: 1.5rem 0 1rem;
        margin-bottom: 1.5rem;
    }

    .banner-slider {
        height: auto;
        min-height: 180px;
        max-height: 350px;
        border-radius: 16px;
    }

    .banner-default h2 {
        font-size: 2rem;
    }

    .banner-default p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .banner-default .btn-banner {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .banner-dots {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .banner-dot {
        width: 10px;
        height: 10px;
    }

    .banner-dot.active {
        width: 24px;
    }
    
    /* Botón de acción más pequeño en móvil */
    .banner-action-btn {
        bottom: 12px;
        right: 12px;
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .banner-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .badge-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .badge-icon {
        font-size: 2rem;
    }

    .badge-text strong {
        font-size: 0.9rem;
    }

    .badge-text small {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 220px;
        border-radius: 12px;
    }

    .banner-default h2 {
        font-size: 1.5rem;
    }

    .banner-default p {
        font-size: 0.95rem;
    }

    .banner-default .btn-banner {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .badge-item {
        padding: 0.875rem;
    }

    .categorias-grid {
        grid-template-columns: 1fr;
    }

    .categoria-card {
        padding: 1.25rem;
    }

    .categoria-nombre {
        font-size: 1.1rem;
    }

    .categoria-icon {
        font-size: 2.5rem;
    }

    .categoria-icon svg {
        width: 48px;
        height: 48px;
    }

    .marcas-section {
        padding: 1rem 0;
    }

    .marcas-titulo {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .marca-card {
        width: 160px;
    }

    .marca-content {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .marca-icon {
        width: 40px;
        height: 40px;
    }

    .marca-icon svg {
        width: 24px;
        height: 24px;
    }

    .marca-nombre {
        font-size: 0.875rem;
    }

    .marca-count {
        font-size: 0.75rem;
    }
}
