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

/* ===== SECCIÓN PRINCIPAL ===== */
.trusted-companies-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    background: white;
}

@keyframes gentleFloat {
    0%, 100% { opacity: 1; transform: translateY(0px); }
    50% { opacity: 0.8; transform: translateY(-10px); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== ENCABEZADO ===== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Usando la misma tipografía de tu plantilla */
.section-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: slideInUp 0.8s ease-out 0.2s both;
    /* Aplicando la misma clase de tu plantilla */
    font-family: inherit;
}

.highlight {
    color: #ED8438 !important;
    font-weight: 600;
    display: inline-block;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

/* ===== GRID DE LOGOS - TAMAÑO EXACTO ===== */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.company-card {
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.03) 0%, transparent 50%),
        rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentleFloat 12s ease-in-out infinite;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 132, 56, 0.1), rgba(255, 107, 53, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.company-card:hover::before {
    opacity: 1;
}

.company-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(237, 132, 56, 0.2);
    border-color: rgba(237, 132, 56, 0.4);
}

.company-logo {
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.company-card:hover .company-logo {
    transform: scale(1.1);
}

.company-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.company-card:hover .company-logo img {
    filter: grayscale(0);
}

/* ===== CARRUSEL CON LOGOS REALES ===== */
.companies-carousel {
    margin-top: 60px;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    cursor: grab;
    user-select: none;
}

.companies-carousel:active {
    cursor: grabbing;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: calc(200% + 40px);
    transition: transform 0.1s ease;
}

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

.carousel-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(237, 132, 56, 0.2);
    flex-shrink: 0;
}

.carousel-logo:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    border-color: rgba(237, 132, 56, 0.4);
}

.carousel-logo img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.carousel-logo:hover img {
    filter: grayscale(0);
}

/* ===== EFECTOS DE CARGA ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .trusted-companies-section {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 20px;
    }
    
    .company-card {
        padding: 8px;
        height: 110px;
    }
    
    .company-logo img {
        width: 90px;
        height: 90px;
    }
    
    .companies-carousel {
        margin-top: 30px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .trusted-companies-section {
        padding: 25px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    
    .company-card {
        padding: 6px;
        height: 95px;
    }
    
    .company-logo img {
        width: 75px;
        height: 75px;
    }
    
    .companies-carousel {
        margin-top: 25px;
        padding: 10px 0;
    }
}