/* ===== NAVBAR MEJORADO - JYS COMPUTER ===== */
/*
 * Estructura de este archivo:
 * - Variables CSS
 * - Skip link (accesibilidad)
 * - Contenedor y header (logo, búsqueda, usuario, carrito)
 * - Navegación principal (menú, dropdown catálogo, botón Configura tu PC)
 * - Estilos móvil (navbar, sidebar, overlay)
 * - Responsive (breakpoints: 1200, 1024, 768)
 * - Accesibilidad y prefers-reduced-motion
 */

/* Variables CSS actualizadas */
:root {
    --primary-color: #FFD700;
    --secondary-color: #FFC107;
    --nav-bg: #000000;
    --dark-bg: #000000;
    --darker-bg: #000000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #666666;
    --border-radius: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 32px rgba(0,0,0,0.2);
}

/* ===== SKIP LINK (accesibilidad) ===== */
.skip-link {
    position: absolute;
    top: -80px;
    left: 24px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--dark-bg);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 10001;
    transition: top 0.2s ease;
    box-shadow: var(--shadow-medium);
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--dark-bg);
    outline-offset: 2px;
}

/* ===== CONTENEDOR PRINCIPAL DEL NAVBAR ===== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: var(--nav-bg);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transform: translateZ(0);
    will-change: transform;
    height: auto;
    overflow: visible;
}

/* ===== HEADER PRINCIPAL MEJORADO ===== */
.main-header {
    background: transparent;
    padding: 12px 0;
    position: relative;
    width: 100%;
    display: block;
    visibility: visible;
    opacity: 1;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ===== LOGO MEJORADO ===== */
.logo-section {
    flex-shrink: 0;
    background: transparent !important;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    background: transparent !important;
    padding: 8px;
    border-radius: var(--border-radius);
}

.logo:hover {
    transform: scale(1.05);
    background: rgba(255, 215, 0, 0.1) !important;
}

.logo-image {
    height: 62px;
    width: auto;
    max-width: 300px;
    background: transparent !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.mobile-logo-image {
    height: 48px;
    width: auto;
    max-width: 220px;
    background: transparent !important;
}

.sidebar-logo-image {
    height: 56px;
    width: auto;
    max-width: 280px;
    background: transparent !important;
}

/* ===== BARRA DE BÚSQUEDA - DISEÑO PROFESIONAL ===== */
.search-section {
    flex: 1;
    max-width: 650px;
    margin: 0 24px;
}

.search-form {
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.search-container:focus-within {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 215, 0, 0.12);
}

/* Especificidad alta para que no lo pisen input-fixes ni otros CSS de página */
.navbar-wrapper .search-section .search-input {
    flex: 1;
    border: none;
    padding: 16px 24px 16px 24px;
    font-size: 0.95rem;
    outline: none;
    background: transparent !important;
    color: #1a1a1a !important;
    letter-spacing: 0.02em;
}

.navbar-wrapper .search-section .search-input::placeholder {
    color: #8e8e93 !important;
    font-weight: 400;
}

.search-button {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin: 6px;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 1.1rem;
}

.search-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
}

.search-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--nav-bg), 0 0 0 4px var(--primary-color);
}

/* ===== SECCIÓN DE USUARIO MEJORADA ===== */
.user-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Menú de Usuario */
.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition);
    background: transparent;
    border: none;
}

.user-info:hover {
    color: var(--primary-color);
    opacity: 0.9;
}

.user-icon {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.user-name {
    font-weight: 600;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.chevron-icon {
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--primary-color);
}

/* Hover behavior removed - only click to open */

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    border: 1px solid rgba(0,0,0,0.1);
    margin-top: 8px;
}

/* Hover behavior removed - only click to open */

/* Click behavior for user menu */
.user-menu.active .chevron-icon {
    transform: rotate(180deg);
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--dark-bg);
    padding-left: 22px;
}

.dropdown-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ===== ICONO ÚNICO DE ACCESO (Login / Entrar) ===== */
.auth-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    padding: 8px;
    transition: var(--transition);
    background: transparent;
    border: none;
}

.auth-icon-link:hover {
    color: var(--primary-color);
    opacity: 0.9;
}

.auth-icon-link i {
    font-size: 1.75rem;
    color: var(--white);
}

.auth-icon-link:hover i {
    color: var(--white);
    opacity: 1;
}

/* ===== CARRITO MEJORADO ===== */
.cart-section {
    display: flex;
    align-items: center;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    padding: 8px;
    transition: var(--transition);
    background: transparent;
    border: none;
    position: relative;
}

.cart-link:hover {
    color: var(--primary-color);
    opacity: 0.9;
}

.cart-icon {
    font-size: 1.75rem;
    color: var(--white);
}

/* Badge del carrito en desktop */
.cart-badge-desktop {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    line-height: 18px;
    text-align: center;
}

/* ===== SEPARADOR MEJORADO ===== */
.header-separator {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* ===== NAVEGACIÓN PRINCIPAL MEJORADA ===== */
.main-navigation {
    background: var(--nav-bg);
    padding: 0;
    position: relative;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: block;
    visibility: visible;
    opacity: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 6px 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Página activa: barra amarilla subrayando el enlace */
.nav-item.active .nav-link,
.nav-item.current-page .nav-link {
    color: var(--primary-color);
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--primary-color);
    border-radius: 0;
    padding-bottom: 13px;
    margin-bottom: 3px;
}

.nav-link i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-link:hover i {
    transform: scale(1.1);
}

.dropdown-arrow {
    font-size: 0.9rem;
    margin-left: 6px;
    transition: var(--transition);
    color: var(--primary-color);
}

.nav-item.dropdown:hover .dropdown-arrow,
.nav-item.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== DROPDOWN DEL CATÁLOGO MEJORADO ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    border: 1px solid rgba(0,0,0,0.1);
    margin-top: 8px;
    overflow: hidden;
}

/* Abrir por hover (desktop) o por clase active (click/teclado, táctil) */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== BOTÓN CONFIGURA TU PC - ESTILO PROFESIONAL (PILL) ===== */
.config-pc-section {
    margin-left: 24px;
}

.config-pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease;
    position: relative;
}

.config-pc-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.config-pc-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--nav-bg), 0 0 0 4px rgba(255, 215, 0, 0.5);
}

.config-pc-btn i {
    font-size: 1.05rem;
    color: #1a1a1a;
    animation: configPcGear 5s linear infinite;
}

@keyframes configPcGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.config-pc-btn:hover i {
    animation-play-state: paused;
}

/* ===== RESPONSIVE MEJORADO ===== */
@media (max-width: 1200px) {
    .header-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .nav-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .search-section {
        max-width: 500px;
    }
}

@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .search-section {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        margin: 0;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 14px 18px;
        font-size: 0.85rem;
    }
    
    .config-pc-btn {
        padding: 12px 22px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .user-section {
        gap: 12px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    .config-pc-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
}

/* ===== DISEÑO MÓVIL MEJORADO ===== */
/* Breakpoint 768px: a partir de aquí solo se muestra el navbar móvil (hamburguesa + logo + carrito).
   Si necesitas que tablets en portrait vean el nav desktop, sube este valor (ej. 992px). */
@media (max-width: 768px) {
    .main-header {
        display: none !important;
    }
    
    .main-navigation {
        display: none !important;
    }
    
    .mobile-navbar {
        display: flex !important;
    }
}

/* Navbar móvil mejorado - z-index alto para estar siempre clicable */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 14px 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Botón de menú hamburguesa mejorado - sin fondo, solo icono */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    min-width: 44px;
    min-height: 44px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-btn i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Carrito móvil mejorado */
.mobile-cart {
    position: relative;
    color: var(--white);
    text-decoration: none;
    padding: 8px;
    transition: var(--transition);
    background: transparent;
    border: none;
}

.mobile-cart:hover {
    color: var(--primary-color);
    opacity: 0.9;
}

.mobile-cart i {
    font-size: 1.7rem;
    color: var(--white);
}

/* Badge del carrito mejorado */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--dark-bg);
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

/* Menú lateral mejorado (altura reducida) */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 72vh;
    max-height: 72vh;
    background: var(--nav-bg);
    z-index: 10003;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    border-right: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 16px 0;
}

.mobile-sidebar.active {
    left: 0;
}

/* Overlay del menú mejorado */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Header del sidebar mejorado */
.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
}

.sidebar-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.sidebar-close:hover {
    color: var(--primary-color);
}

/* Menú del sidebar mejorado */
.sidebar-menu {
    padding: 24px 0;
}

.sidebar-menu-item {
    display: block;
    padding: 16px 24px;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.sidebar-menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary-color);
    padding-left: 28px;
    border-left: 4px solid var(--primary-color);
}

.sidebar-menu-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

/* Sección de usuario en sidebar mejorada */
.sidebar-user {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
    background: rgba(255,255,255,0.05);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sidebar-user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-light);
}

.sidebar-user-name {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

/* Botones de autenticación en sidebar mejorados */
.sidebar-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-auth-btn {
    padding: 12px 18px;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
}

.sidebar-login-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.sidebar-login-btn:hover {
    background: var(--white);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.sidebar-register-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--dark-bg);
    border: 2px solid var(--primary-color);
}

.sidebar-register-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFB300 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.sidebar-register-hint {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-align: center;
}

.sidebar-register-hint a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.sidebar-register-hint a:hover {
    text-decoration: underline;
}

/* Ajuste del contenido principal para móvil */
@media (max-width: 768px) {
    main {
        margin-top: 70px !important;
    }
}

/* Optimización para dispositivos con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .config-pc-btn i {
        animation: none;
    }
    
    .nav-link::before {
        transition: none;
    }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
.nav-link:focus,
.nav-link:focus-visible,
.config-pc-btn:focus,
.config-pc-btn:focus-visible,
.mobile-menu-btn:focus,
.mobile-menu-btn:focus-visible,
.mobile-cart:focus,
.mobile-cart:focus-visible,
.sidebar-close:focus,
.sidebar-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== MEJORAS PARA PANTALLAS DE ALTA DENSIDAD ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image,
    .mobile-logo-image,
    .sidebar-logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== BARRA AUTODESLIZANTE DE MARCAS (debajo del slider, logos en negro) ===== */
.brands-strip {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    margin-top: 0;
}

.brands-strip-inner {
    display: flex;
    width: max-content;
    animation: brands-scroll 35s linear infinite;
}

.brands-strip-inner:hover {
    animation-play-state: paused;
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 0 32px;
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.brand-logo:hover {
    opacity: 1;
}

/* Todos los logos mismo tamaño */
.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@keyframes brands-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .brands-strip {
        padding: 10px 0;
    }
    .brands-track {
        gap: 32px;
        padding: 0 24px;
    }
    .brand-logo {
        width: 80px;
        height: 28px;
    }
}
