/* ===================================================
   TECNOLOGÍA HERO - SECCIÓN PRINCIPAL
   =================================================== */

#tecnologia_hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 100px;
    overflow: hidden;
    
    background-image: url('../../assets/img/mexico-de-noche.jpg');
    background-size: cover;
    background-position: center;
}

/* Overlay oscuro */
.tech-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Desvanecido superior */
.tech-hero-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, #000000, transparent);
    z-index: 2;
}

#tecnologia_hero .container {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Título principal */
.tech-hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #ffffff;
    margin: -200px 0 40px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Subtítulo descriptivo */
.tech-hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 1500px;
    margin: 0 auto 80px;
    text-align: center;
}

/* ===================================================
   GRID DE LOGOS ESCALONADO
   =================================================== */

.tech-logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 40px 10px;
    width: 95%;
    max-width: 1800px; 
    margin: 0 auto;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: transform 0.3s ease;
}

.logo-item img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1); /* Logos en blanco */
    opacity: 0.85;
    transition: all 0.3s ease;
}

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

/* ===================================================
   POSICIONAMIENTO ESCALONADO
   =================================================== */

/* Fila 1: Columnas centrales (3 y 4) a la altura base */
.logo-row1.logo-col3,
.logo-row1.logo-col4 {
    grid-row: 1;
}

/* Fila 1: Columnas 2 y 5 más abajo */
.logo-row1.logo-col2,
.logo-row1.logo-col5 {
    grid-row: 1;
    margin-top: 40px;
}

/* Fila 1: Columnas extremas (1 y 6) aún más abajo */
.logo-row1.logo-col1,
.logo-row1.logo-col6 {
    grid-row: 1;
    margin-top: 80px;
}

/* Fila 2: Columnas centrales (3 y 4) a la altura base */
.logo-row2.logo-col3,
.logo-row2.logo-col4 {
    grid-row: 2;
}

/* Fila 2: Columnas 2 y 5 más abajo */
.logo-row2.logo-col2,
.logo-row2.logo-col5 {
    grid-row: 2;
    margin-top: 40px;
}

/* Fila 2: Columnas extremas (1 y 6) aún más abajo */
.logo-row2.logo-col1,
.logo-row2.logo-col6 {
    grid-row: 2;
    margin-top: 80px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 1024px) {
    .tech-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px 20px;
    }
    
    /* Resetear márgenes en tablet */
    .logo-item {
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .tech-hero-title {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }
    
    .tech-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 60px;
    }
    
    .tech-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 15px;
    }
}

@media (max-width: 480px) {
    .tech-logos-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-item img {
        max-width: 120px;
    }
}