/* Estilos personalizados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Logo styles */
header img[alt="Lebo Servicios"] {
    transition: opacity 0.3s ease;
}

header a:hover img[alt="Lebo Servicios"] {
    opacity: 0.8;
}

/* Footer logo - white version */
footer img[alt="Lebo Servicios"] {
    filter: brightness(0) invert(1);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s;
    animation-fill-mode: backwards;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Smooth scroll offset for fixed header */
section {
    scroll-margin-top: 80px;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading animation for form submission */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    width: 20px;
    height: 20px;
    animation: spin 0.6s linear infinite;
}

/* Responsive menu animation */
#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button ripple effect */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after {
    width: 300px;
    height: 300px;
}

/* Card shine effect */
.service-card::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;
}

.service-card:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Success and error message styles */
.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Brands Carousel Styles */
.brands-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brands-carousel {
    display: flex;
    gap: 2rem;
    animation: scroll-infinite 30s linear infinite;
    width: fit-content;
}

/* Pause animation on hover */
.brands-carousel-wrapper:hover .brands-carousel {
    animation-play-state: paused;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    flex: 0 0 auto;
    width: 180px;
}

.brand-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.brand-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

.brand-card:hover .brand-logo {
    filter: none;
    transform: scale(1.1);
}

/* Logo specific adjustments */
.seagate-logo {
    width: 120px;
    height: 70px;
}

.zebra-logo {
    width: 70px;
    height: 55px;
}

.msi-logo {
    width: 70px;
    height: 55px;
}

.cisco-logo {
    width: 70px;
    height: 45px;
}

.microsoft-logo {
    width: 100px;
    height: 45px;
}

.honeywell-logo {
    width: 90px;
    height: 45px;
}

.kingston-logo {
    width: 85px;
    height: 45px;
}

.logitech-logo {
    width: 85px;
    height: 50px;
}

.crucial-logo {
    width: 75px;
    height: 50px;
}

/* Barpos logo specific adjustments */
.barpos-logo {
    width: 100px;
    height: 40px;
}

/* Bixolon logo specific adjustments */
.bixolon-logo {
    width: 90px;
    height: 35px;
}

.brand-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Gradient overlay for fade effect on edges */
.brands-carousel-wrapper::before,
.brands-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(31, 41, 55, 1) 0%, rgba(31, 41, 55, 0) 100%);
}

.brands-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(31, 41, 55, 1) 0%, rgba(31, 41, 55, 0) 100%);
}

/* Responsive adjustments for brands carousel */
@media (max-width: 768px) {
    .brand-item {
        width: 150px;
    }
    
    .brand-card {
        padding: 1.5rem 1rem;
        height: 120px;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .seagate-logo {
        width: 100px;
        height: 60px;
    }
    
    .zebra-logo {
        width: 60px;
        height: 45px;
    }
    
    .msi-logo {
        width: 60px;
        height: 45px;
    }
    
    .cisco-logo {
        width: 60px;
        height: 35px;
    }
    
    .microsoft-logo {
        width: 85px;
        height: 35px;
    }
    
    .honeywell-logo {
        width: 75px;
        height: 35px;
    }
    
    .kingston-logo {
        width: 70px;
        height: 35px;
    }
    
    .logitech-logo {
        width: 70px;
        height: 40px;
    }
    
    .crucial-logo {
        width: 65px;
        height: 40px;
    }
    
    .barpos-logo {
        width: 80px;
        height: 30px;
    }
    
    .bixolon-logo {
        width: 75px;
        height: 28px;
    }
    
    .brand-name {
        font-size: 0.75rem;
    }
    
    .brands-carousel {
        animation: scroll-infinite 20s linear infinite;
    }
}