/* Tailwind CSS Configuration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Custom Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

.active {
    color: #0284c7;
    font-weight: 600;
}

/* Primary Color Palette */
:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
}

/* Accessibility improvements */
:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Logos Carousel Animation */
.logos-carousel {
    animation: scroll 25s linear infinite;
    display: flex;
    width: fit-content;
    will-change: transform;
}

.logos-carousel:hover {
    animation-play-state: paused;
}

.logo-item {
    width: 250px;
    min-width: 250px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    flex-shrink: 0;
}

.logo-item img {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Ajustar imágenes para que se escalen entre el tamaño de serviciosEstin (mínimo) y grupo-cepas (máximo) */
.logo-item img[src*="serviciosEstin"] {
    width: 174px;
    height: auto;
    max-width: 174px;
    max-height: 118px;
}

.logo-item img[src*="grupo-cepas"] {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
}

/* Otras imágenes se ajustan proporcionalmente entre estos tamaños */
.logo-item img[src*="branca"],
.logo-item img[src*="metalcris"],
.logo-item img[src*="Servipumps"] {
    max-width: 200px;
    max-height: 80px;
    min-width: 174px;
    width: auto;
    height: auto;
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 5 - 4rem * 5)); /* Mueve exactamente 5 logos con su padding */
    }
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .logo-item {
        width: 200px;
        min-width: 200px;
        height: 120px;
        padding: 0 1.5rem;
    }
    
    .logo-item img {
        max-width: 160px;
        max-height: 70px;
        min-width: 140px;
        min-height: 50px;
        width: auto;
        height: auto;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-200px * 5 - 3rem * 5));
        }
    }
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    
    .logos-carousel {
        animation: none;
    }
}

