:root {
    --vicon-green: #008000;
    --vicon-green-light: #00a300;
    --vicon-dark: #1a1a1a;
    --vicon-gray: #f8f9fa;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Estructura Base */
.clients-page { 
    font-family: 'Inter', 'Segoe UI', sans-serif; 
    background-color: #ffffff;
    color: var(--vicon-dark);
    overflow-x: hidden; 
}

/* Hero Section */
.clients-hero {
    min-height: 450px; 
    height: 55vh; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,128,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px; 
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 15px;
    text-align: center;
    box-sizing: border-box;
}

.hero-content h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 900; 
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-content p { 
    font-size: clamp(1rem, 2vw, 1.25rem); 
    color: rgba(255,255,255,0.95); 
    margin-top: 15px;
    font-weight: 300;
}

/* Sección de Intro */
.container-vicon { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 60px 20px; 
}

.clients-intro { 
    text-align: center; 
    margin-bottom: 50px; 
}

.clients-intro h2 { 
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
    font-weight: 800;
    color: var(--vicon-dark); 
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.clients-intro h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--vicon-green);
    border-radius: 2px;
}

.clients-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    font-size: clamp(1.1rem, 2vw, 1.3rem); 
    font-weight: 700;
    color: white;
    background: var(--vicon-green);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 128, 0, 0.15);
    max-width: 100%; 
    box-sizing: border-box;
}

.clients-phone:hover { 
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 128, 0, 0.25);
    background: var(--vicon-green-light);
}

/* Grid de Logos original con soporte de Texto Inferior */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 24px;
}

/* Mantiene el recuadro original pero expande hacia abajo en columna */
.logo-item {
    min-height: 180px; /* Incrementado para alojar el texto dentro del recuadro */
    display: flex;
    flex-direction: column; /* Apila imagen arriba, texto abajo */
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 20px; 
    border-radius: 16px;
    border: 1px solid var(--vicon-gray);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    cursor: pointer;
    overflow: hidden; 
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
}

/* Enlace contenedor de imagen */
.logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px; /* Mantiene proporciones estables de imagen */
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
    transition: all 0.3s ease;
}

/* Estilo del texto debajo de la foto */
.client-name {
    margin: 12px 0 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vicon-dark);
    text-align: center;
}

/* Estados de interacción enfocados a Escritorio */
@media (hover: hover) {
    .logo-item:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-strong);
        border-color: var(--vicon-green-light); 
    }

    .logo-item:hover img {
        transform: scale(1.04); 
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .logo-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px;
    }
    .clients-hero {
        background-attachment: scroll; 
        max-width: 100%;
        max-height: 350px; 
    }
}

@media (max-width: 600px) {
    .container-vicon {
        padding: 40px 16px;
    }

    .logo-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
    
    .logo-item { 
        min-height: 140px; 
        padding: 12px; 
        border-radius: 12px;
    }

    .logo-item a {
        height: 75px;
    }
    
    .client-name {
        font-size: 0.8rem;
        margin-top: 8px;
    }

    .hero-content {
        padding: 24px 16px;
    }

    .clients-intro { 
        margin-bottom: 35px; 
    }
}

@media (max-width: 360px) {
    .logo-grid { 
        grid-template-columns: 1fr; 
    }
}