/* ==========================================================================
   Adhequim Industrias que Impulsamos Stylesheet
   ========================================================================== */

/* Wrapper Principal */
.adhequim-iqi-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Cabecera de la Sección */
.adhequim-iqi-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 48px;
    width: 100%;
}

.adhequim-iqi-header-left {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.adhequim-iqi-header-title {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.22;
    color: #060a17;
    margin: 0 0 16px 0;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.adhequim-iqi-header-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.625;
    color: #64748b;
    margin: 0;
    text-wrap: balance;
}

.adhequim-iqi-header-right {
    flex-shrink: 0;
    margin-bottom: 6px;
}

/* Botón Explorar */
.adhequim-iqi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid #060a17;
}

/* Iconos de Botón */
.adhequim-iqi-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.adhequim-iqi-btn-icon i,
.adhequim-iqi-btn-icon svg {
    font-size: 13px;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.adhequim-iqi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

.adhequim-iqi-btn:hover .adhequim-iqi-btn-icon {
    transform: translateX(4px);
}


/* ==========================================================================
   Cuadrícula CSS Grid
   ========================================================================== */
.adhequim-iqi-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 24px !important;
    width: 100% !important;
}

.adhequim-iqi-grid .adhequim-iqi-card {
    flex: 0 0 calc(33.333% - 16px) !important;
    max-width: calc(33.333% - 16px) !important;
}

/* Tarjeta Base */
.adhequim-iqi-card {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none !important;
    box-sizing: border-box;
    z-index: 1;
    overflow: hidden;
    /* transition: transform se define por controles de Elementor */
}

/* Contenedor de la Imagen */
.adhequim-iqi-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Imagen de Fondo con Efecto Zoom */
.adhequim-iqi-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Capa Gradiente para asegurar legibilidad del texto blanco */
.adhequim-iqi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: background 0.4s ease;
}

/* Contenido de la Tarjeta */
.adhequim-iqi-card-content {
    position: relative;
    z-index: 3;
    padding: 36px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.adhequim-iqi-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Contenedor del Texto de Bajada (Animado) */
.adhequim-iqi-card-desc-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.adhequim-iqi-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Comportamiento Hover (Pasar el Cursor)
   ========================================================================== */

/* Zoom y Oscurecimiento se aplican sobre la tarjeta al hacer hover */
.adhequim-iqi-card:hover {
    cursor: pointer;
}

/* Revelado del Texto de Bajada */
.adhequim-iqi-card:hover .adhequim-iqi-card-desc-wrapper {
    max-height: 100px;
    opacity: 1;
    margin-top: 10px;
}


/* ==========================================================================
   Diseño Responsivo (Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .adhequim-iqi-header-title {
        font-size: 32px;
    }
    
    /* En tabletas cambiamos a 2 columnas */
    .adhequim-iqi-grid {
        gap: 20px !important;
    }
    
    .adhequim-iqi-grid .adhequim-iqi-card {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

@media (max-width: 767px) {
    .adhequim-iqi-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 32px;
    }
    
    .adhequim-iqi-header-right {
        margin-bottom: 0;
    }
    
    .adhequim-iqi-header-title {
        font-size: 28px;
    }
    
    .adhequim-iqi-header-desc {
        font-size: 14.5px;
    }

    /* En móviles se apilan en 1 sola columna vertical */
    .adhequim-iqi-grid {
        gap: 16px !important;
    }
    
    .adhequim-iqi-grid .adhequim-iqi-card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .adhequim-iqi-card-content {
        padding: 24px;
    }
}
